|
int32_t | ad7746_init (struct ad7746_dev **device, struct ad7746_init_param *init_param) |
| Initialize the ad7606 device structure. More...
|
|
int32_t | ad7746_reg_write (struct ad7746_dev *dev, uint8_t reg, uint8_t *data, uint16_t bytes_number) |
| Writes data into AD7746 registers, starting from the selected register address pointer. More...
|
|
int32_t | ad7746_reg_read (struct ad7746_dev *dev, uint8_t reg, uint8_t *data, uint16_t bytes_number) |
| Reads data from AD7746 registers, starting from the selected register address pointer. More...
|
|
int32_t | ad7746_reset (struct ad7746_dev *dev) |
| Resets the AD7746. More...
|
|
int32_t | ad7746_remove (struct ad7746_dev *dev) |
| Deinitialize the ad7746 driver and free all allocated resources. More...
|
|
int32_t | ad7746_set_cap (struct ad7746_dev *dev, struct ad7746_cap cap) |
| Configure the capacitive setup register. More...
|
|
int32_t | ad7746_set_vt (struct ad7746_dev *dev, struct ad7746_vt vt) |
| Configure the voltage/temperature setup register. More...
|
|
int32_t | ad7746_set_exc (struct ad7746_dev *dev, struct ad7746_exc exc) |
| Configure the excitation setup register. More...
|
|
int32_t | ad7746_set_config (struct ad7746_dev *dev, struct ad7746_config config) |
| Set the configuration register. More...
|
|
int32_t | ad7746_set_cap_dac_a (struct ad7746_dev *dev, bool enable, uint8_t code) |
| Set the DAC code and enable state for EXCA. More...
|
|
int32_t | ad7746_set_cap_dac_b (struct ad7746_dev *dev, bool enable, uint8_t code) |
| Set the DAC code and enable state for EXCB. More...
|
|
int32_t | ad7746_set_cap_offset (struct ad7746_dev *dev, uint16_t offset) |
| Set the capacitive offset. More...
|
|
int32_t | ad7746_set_cap_gain (struct ad7746_dev *dev, uint16_t gain) |
| Set the capacitive gain. More...
|
|
int32_t | ad7746_set_volt_gain (struct ad7746_dev *dev, uint16_t gain) |
| Set the voltage gain. More...
|
|
int32_t | ad7746_get_vt_data (struct ad7746_dev *dev, uint32_t *vt_data) |
| Waits until a conversion on a voltage/temperature channel has been finished and returns the output data. More...
|
|
int32_t | ad7746_get_cap_data (struct ad7746_dev *dev, uint32_t *cap_data) |
| Waits until a conversion on the capacitive channel has been finished and returns the output data. More...
|
|
int32_t | ad7746_calibrate (struct ad7746_dev *dev, enum ad7746_md md) |
| Perform offset/gain calibration. More...
|
|
Implementation of AD7746 Driver.
- Author
- Dragos Bogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)
-
Darius Berghe (dariu.nosp@m.s.be.nosp@m.rghe@.nosp@m.anal.nosp@m.og.co.nosp@m.m)
Copyright 2021(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.