AD7746 Capacitance-to-digital converter with temperature sensor driver. More...
AD7746 Capacitance-to-digital converter with temperature sensor driver.
Definition in file ad7746.h.
Include dependency graph for ad7746.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | ad7746_params |
| AD7746 params. More... | |
| struct | ad7746 |
| AD7746 device descriptor. More... | |
Macros | |
| #define | AD7746_ZERO_SCALE_CODE (0x800000LL) |
| 0 fF capacitance code | |
| #define | AD7746_INTERNAL_VREF (1170) |
| Interval voltage reference expressed in mV. | |
| #define | AD7746_DAC_MAX (0x7F) |
| Maximum value that can be configured into the DACs. | |
Typedefs | |
| typedef struct ad7746_params | ad7746_params_t |
| AD7746 params. | |
| typedef struct ad7746 | ad7746_t |
| AD7746 device descriptor. | |
Functions | |
| int | ad7746_init (ad7746_t *dev, const ad7746_params_t *params) |
| Initializes an AD7746 device. More... | |
| int | ad7746_read_capacitance_1 (ad7746_t *dev, int *value) |
| Reads the capacitance from the input 1 (CIN1). More... | |
| int | ad7746_read_capacitance_2 (ad7746_t *dev, int *value) |
| Reads the capacitance from the input 2 (CIN2). More... | |
| int | ad7746_read_voltage_in (ad7746_t *dev, int *value) |
| Reads the voltage from the external voltage input (VIN). More... | |
| int | ad7746_read_voltage_vdd (ad7746_t *dev, int *value) |
| Reads the voltage from the VDD pin. More... | |
| int | ad7746_read_temperature_int (ad7746_t *dev, int *value) |
| Reads the temperature from the internal sensor. More... | |
| int | ad7746_read_temperature_ext (ad7746_t *dev, int *value) |
| Reads the temperature from the external sensor (see datasheet). More... | |
| int | ad7746_set_cap_ch_input (const ad7746_t *dev, ad7746_cap_input_t input) |
| Sets the current input for the capacitive measurement.If not configured manually, the driver sets the correct mode within the dedicated read function. More... | |
| int | ad7746_set_vt_ch_mode (ad7746_t *dev, ad7746_vt_mode_t mode) |
| Sets the mode for the voltage / temperature channel and updates the descriptor with the new configuration. More... | |
| int | ad7746_set_vt_sr (const ad7746_t *dev, ad7746_vt_sample_rate_t sr) |
| Sets the sample rate for the voltage / temperature channel. More... | |
| int | ad7746_set_cap_sr (const ad7746_t *dev, ad7746_cap_sample_rate_t sr) |
| Sets the sample rate for the capacitance channel. More... | |