AD717X implementation file. Devices: AD7172-2, AD7172-4, AD7173-8, AD7175-2, AD7175-8, AD7176-2 AD7177-2, AD4111, AD4112, AD4114, AD4115, AD4116.
More...
|
int | ad717x_set_channel_status (ad717x_dev *device, uint8_t channel_id, bool channel_status) |
| Set channel status - Enable/Disable. More...
|
|
int | ad717x_set_adc_mode (ad717x_dev *device, enum ad717x_mode adc_mode) |
| Set ADC Mode. More...
|
|
int | ad717x_connect_analog_input (ad717x_dev *device, uint8_t channel_id, union ad717x_analog_inputs analog_input) |
| Set Analog Inputs to channel. More...
|
|
int | ad717x_assign_setup (ad717x_dev *device, uint8_t channel_id, uint8_t setup) |
| Assign Setup to Channel. More...
|
|
int | ad717x_set_polarity (ad717x_dev *device, bool bipolar, uint8_t setup_id) |
| Set Polarity. More...
|
|
int | ad717x_set_reference_source (ad717x_dev *device, enum ad717x_reference_source ref_source, uint8_t setup_id) |
| Select the reference source. More...
|
|
int | ad717x_enable_input_buffer (ad717x_dev *device, bool inbuf_en, bool refbuf_en, uint8_t setup_id) |
| Enable Input Buffer. More...
|
|
int | ad717x_single_read (ad717x_dev *device, uint8_t id, int32_t *adc_raw_data) |
| Perform Single Conversion. More...
|
|
ad717x_st_reg * | AD717X_GetReg (ad717x_dev *device, uint8_t reg_address) |
| Searches through the list of registers of the driver instance and retrieves a pointer to the register that matches the given address. More...
|
|
int32_t | AD717X_ReadRegister (ad717x_dev *device, uint8_t addr) |
| Reads the value of the specified register. More...
|
|
int32_t | AD717X_WriteRegister (ad717x_dev *device, uint8_t addr) |
| Writes the value of the specified register. More...
|
|
int32_t | AD717X_Reset (ad717x_dev *device) |
| Resets the device. More...
|
|
int32_t | AD717X_WaitForReady (ad717x_dev *device, uint32_t timeout) |
| Waits until a new conversion result is available. More...
|
|
int32_t | AD717X_ReadData (ad717x_dev *device, int32_t *pData) |
| Reads the conversion result from the device. More...
|
|
int32_t | AD717X_ComputeDataregSize (ad717x_dev *device) |
| Computes data register read size to account for bit number and status read. More...
|
|
uint8_t | AD717X_ComputeCRC8 (uint8_t *pBuf, uint8_t bufSize) |
| Computes the CRC checksum for a data buffer. More...
|
|
uint8_t | AD717X_ComputeXOR8 (uint8_t *pBuf, uint8_t bufSize) |
| Computes the XOR checksum for a data buffer. More...
|
|
int32_t | AD717X_UpdateCRCSetting (ad717x_dev *device) |
| Updates the CRC settings. More...
|
|
int32_t | ad717x_configure_device_odr (ad717x_dev *dev, uint8_t filtcon_id, uint8_t odr_sel) |
| Configure ODR for the device. More...
|
|
int32_t | AD717X_Init (ad717x_dev **device, ad717x_init_param init_param) |
| Initializes the AD717X. More...
|
|
int32_t | AD717X_remove (ad717x_dev *dev) |
| Free the resources allocated by AD717X_Init(). More...
|
|
AD717X implementation file. Devices: AD7172-2, AD7172-4, AD7173-8, AD7175-2, AD7175-8, AD7176-2 AD7177-2, AD4111, AD4112, AD4114, AD4115, AD4116.
- Author
- acozma (andre.nosp@m.i.co.nosp@m.zma@a.nosp@m.nalo.nosp@m.g.com) dnechita (dan.n.nosp@m.echi.nosp@m.ta@an.nosp@m.alog.nosp@m..com)
Copyright 2015(c) Analog Devices, Inc.
All rights reserved.
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.
- The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
- Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, 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.