|
int | ad719x_init (struct ad719x_dev **device, struct ad719x_init_param init_param) |
| Initializes the communication peripheral and the initial Values for AD719X Board and resets the device. More...
|
|
int | ad719x_remove (struct ad719x_dev *dev) |
| Free the resources allocated by ad719x_init(). More...
|
|
int | ad719x_set_register_value (struct ad719x_dev *dev, uint8_t reg_addr, uint32_t reg_val, uint8_t bytes_number) |
| Writes data into a register. More...
|
|
int | ad719x_get_register_value (struct ad719x_dev *dev, uint8_t reg_addr, uint8_t bytes_number, uint32_t *reg_data) |
| Reads the value of a register. More...
|
|
int | ad719x_set_masked_register_value (struct ad719x_dev *dev, uint8_t reg_addr, uint32_t mask, uint32_t reg_data, uint8_t bytes) |
| Write masked data into device register. More...
|
|
int | ad719x_reset (struct ad719x_dev *dev) |
| Resets the device. More...
|
|
int | ad719x_set_operating_mode (struct ad719x_dev *dev, enum ad719x_adc_modes opt_mode) |
| Sets device into the specified operating mode. More...
|
|
int | ad719x_wait_rdy_go_low (struct ad719x_dev *dev) |
| Waits for RDY pin to go low. More...
|
|
int | ad719x_channels_select (struct ad719x_dev *dev, uint16_t chn_mask) |
| Selects the channels to be enabled. More...
|
|
int | ad719x_calibrate (struct ad719x_dev *dev, uint8_t mode, uint8_t channel) |
| Performs the given calibration to the specified channel. More...
|
|
int | ad719x_config_input_mode (struct ad719x_dev *dev, uint8_t mode) |
| Configures the input mode of the ADC. More...
|
|
int | ad719x_buffer_select (struct ad719x_dev *dev, uint8_t buff_en) |
| Enables or disables the buffer on the ADC input channels. More...
|
|
int | ad719x_output_rate_select (struct ad719x_dev *dev, uint16_t out_rate_code) |
| Selects the filter output data rate of the ADC. More...
|
|
int | ad719x_clock_select (struct ad719x_dev *dev, enum ad719x_adc_clock clk_select) |
| Selects the clock source of the ADC. More...
|
|
int | ad719x_set_bridge_switch (struct ad719x_dev *dev, uint8_t bpdsw_select) |
| Opens or closes the bridge power-down switch of the ADC. More...
|
|
int | ad719x_range_setup (struct ad719x_dev *dev, uint8_t polarity, enum ad719x_adc_gain gain) |
| Selects the polarity of the conversion and the ADC input range. More...
|
|
int | ad719x_single_conversion (struct ad719x_dev *dev, uint32_t *reg_data) |
| Returns the result of a single conversion. More...
|
|
int | ad719x_continuous_read_avg (struct ad719x_dev *dev, uint8_t sample_number, uint32_t *samples_avg) |
| Returns the average of several conversion results. More...
|
|
int | ad719x_temperature_read (struct ad719x_dev *dev, float *temp) |
| Read data from temperature sensor and converts it to Celsius degrees. More...
|
|
float | ad719x_convert_to_volts (struct ad719x_dev *dev, uint32_t raw_data, float v_ref) |
| Converts 24-bit raw data to milivolts. More...
|
|
int | ad719x_sync_control (struct ad719x_dev *dev, uint8_t value) |
| Control SYNC pin for synchronization of multiple devices. More...
|
|
Implementation of AD7190/2/3/4/5 Driver.
- Author
- DNechita (Dan.N.nosp@m.echi.nosp@m.ta@an.nosp@m.alog.nosp@m..com)
Copyright 2012(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.