|
int32_t | ad738x_spi_reg_read (struct ad738x_dev *dev, uint8_t reg_addr, uint16_t *reg_data) |
|
int32_t | ad738x_spi_reg_write (struct ad738x_dev *dev, uint8_t reg_addr, uint16_t reg_data) |
|
int32_t | ad738x_spi_write_mask (struct ad738x_dev *dev, uint8_t reg_addr, uint32_t mask, uint16_t data) |
|
int32_t | ad738x_set_conversion_mode (struct ad738x_dev *dev, enum ad738x_conv_mode mode) |
|
int32_t | ad738x_reset (struct ad738x_dev *dev, enum ad738x_reset_type reset) |
|
int32_t | ad738x_oversampling_config (struct ad738x_dev *dev, enum ad738x_os_mode os_mode, enum ad738x_os_ratio os_ratio, enum ad738x_resolution res) |
|
int32_t | ad738x_power_down_mode (struct ad738x_dev *dev, enum ad738x_pwd_mode pmode) |
|
int32_t | ad738x_reference_sel (struct ad738x_dev *dev, enum ad738x_ref_sel ref_sel) |
|
int32_t | ad738x_spi_single_conversion (struct ad738x_dev *dev, uint32_t *adc_data) |
|
int32_t | ad738x_read_data (struct ad738x_dev *dev, uint32_t *buf, uint16_t samples) |
| Read from device. Enter register mode to read/write registers. More...
|
|
int32_t | ad738x_init (struct ad738x_dev **device, struct ad738x_init_param *init_param) |
|
int32_t | ad738x_remove (struct ad738x_dev *dev) |
| Free the resources allocated by ad738x_init(). More...
|
|
Implementation of AD738x Driver.
- Author
- SPopa (stefa.nosp@m.n.po.nosp@m.pa@an.nosp@m.alog.nosp@m..com)
-
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)
Copyright 2020(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.