Definition: iio_ad7746.h:48
bool cin2
Definition: ad7746.h:114
@ TEMP_INT
Definition: iio_ad7746.c:650
#define AD7746_REG_CAP_GAINH
Definition: ad7746.h:64
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
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.
Definition: ad7746.c:333
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
@ IIO_VAL_INT_PLUS_NANO
Definition: iio_types.h:52
int32_t ad7746_init(struct ad7746_dev **device, struct ad7746_init_param *init_param)
Initialize the ad7606 device structure.
Definition: ad7746.c:53
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:120
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.
Definition: ad7746.c:115
@ CIN2_DIFF
Definition: iio_ad7746.c:655
@ IIO_VAL_FRACTIONAL_LOG2
Definition: iio_types.h:56
bool extref
Definition: ad7746.h:129
bool vtshort
Definition: ad7746.h:130
#define AD7746_CAPDAC_DACEN_MSK
Definition: ad7746.h:103
Header file of iio_ad7746.
Structure holding channel attributess.
Definition: iio_types.h:103
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
int32_t ad7746_remove(struct ad7746_dev *dev)
Deinitialize the ad7746 driver and free all allocated resources.
Definition: ad7746.c:181
@ AD7746_VIN_EXT_VIN
Definition: ad7746.h:123
Header file of Delay functions.
int32_t ad7746_iio_init(struct ad7746_iio_dev **iio_dev, struct ad7746_iio_init_param *init_param)
Definition: iio_ad7746.c:741
struct ad7746_setup setup
Definition: ad7746.h:187
struct ad7746_dev * ad7746_dev
Definition: iio_ad7746.h:40
Definition: ad9361_util.h:69
enum iio_chan_type ch_type
Definition: iio_types.h:172
@ AD7746_MODE_GAIN_CALIB
Definition: ad7746.h:161
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
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 da...
Definition: ad7746.c:441
int32_t ad7746_iio_remove(struct ad7746_iio_dev *desc)
Definition: iio_ad7746.c:770
bool capen
Definition: ad7746.h:113
bool
Definition: common.h:48
int32_t ad7746_calibrate(struct ad7746_dev *dev, enum ad7746_md md)
Perform offset/gain calibration.
Definition: ad7746.c:524
@ AD7746_MODE_SINGLE
Definition: ad7746.h:158
@ ID_AD7746
Definition: ad7746.h:108
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
@ AD7746_VTMD_VDD_MON
Definition: ad7746.h:122
Header file of AD7746 Driver.
const char * name
Definition: iio_types.h:131
int32_t ad7746_set_vt(struct ad7746_dev *dev, struct ad7746_vt vt)
Configure the voltage/temperature setup register.
Definition: ad7746.c:235
bool differential
Definition: iio_types.h:111
#define AD7746_CAPDAC_DACP_MSK
Definition: ad7746.h:104
enum ad7746_id id
Definition: ad7746.h:185
int32_t ad7746_set_cap_gain(struct ad7746_dev *dev, uint16_t gain)
Set the capacitive gain.
Definition: ad7746.c:409
int32_t ad7746_set_config(struct ad7746_dev *dev, struct ad7746_config config)
Set the configuration register.
Definition: ad7746.c:301
ad7746_chan
Definition: iio_ad7746.c:647
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
struct ad7746_config config
Definition: ad7746.h:174
#define AD7746_REG_VOLT_GAINH
Definition: ad7746.h:66
struct ad7746_init_param * ad7746_initial
Definition: iio_ad7746.h:49
@ AD7746_VTMD_EXT_TEMP
Definition: ad7746.h:121
#define AD7746_CAPSETUP_CAPDIFF_MSK
Definition: ad7746.h:80
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.
Definition: ad7746.c:357
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
int32_t ad7746_set_volt_gain(struct ad7746_dev *dev, uint16_t gain)
Set the voltage gain.
Definition: ad7746.c:424
@ IIO_VOLTAGE
Definition: iio_types.h:65
@ TEMP_EXT
Definition: iio_ad7746.c:651
@ CIN1_DIFF
Definition: iio_ad7746.c:653
enum ad7746_md md
Definition: ad7746.h:167
int32_t ad7746_set_cap_offset(struct ad7746_dev *dev, uint16_t offset)
Set the capacitive offset.
Definition: ad7746.c:394
struct iio_device * iio_dev
Definition: iio_ad7746.h:41
@ IIO_CAPACITANCE
Definition: iio_types.h:70
uint8_t buf[AD7746_NUM_REGISTERS+1u]
Definition: ad7746.h:186
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.
Definition: ad7746.c:140
int8_t capdac_set
Definition: iio_ad7746.h:45
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
uint32_t address
Definition: iio_types.h:113
bool capchop
Definition: ad7746.h:116
@ VIN_VDD
Definition: iio_ad7746.c:649
struct iio_attribute * attributes
Definition: iio_types.h:186
uint8_t capf
Definition: ad7746.h:166
uint16_t num_ch
Definition: iio_types.h:252
bool capdiff
Definition: ad7746.h:115
struct ad7746_vt vt
Definition: ad7746.h:172
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
bool vten
Definition: ad7746.h:127
@ IIO_TEMP
Definition: iio_types.h:69
enum iio_chan_type type
Definition: iio_types.h:109
uint8_t vtf
Definition: ad7746.h:165
@ CIN2
Definition: iio_ad7746.c:654
#define NULL
Definition: wrapper.h:64
#define AD7746_REG_CAP_OFFH
Definition: ad7746.h:62
@ VIN
Definition: iio_ad7746.c:648
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
int32_t ad7746_set_cap(struct ad7746_dev *dev, struct ad7746_cap cap)
Configure the capacitive setup register.
Definition: ad7746.c:203
int32_t ad7746_iio_remove(struct ad7746_iio_dev *desc)
Definition: iio_ad7746.c:770
struct ad7746_cap cap
Definition: ad7746.h:171
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.
Definition: ad7746.c:483
@ true
Definition: ad5446.h:57
uint8_t capdac[2][2]
Definition: iio_ad7746.h:44
Definition: iio_ad7746.h:39
int32_t ad7746_iio_init(struct ad7746_iio_dev **iio_dev, struct ad7746_iio_init_param *init_param)
Definition: iio_ad7746.c:741
Header file of utility functions.
bool vtchop
Definition: ad7746.h:131
@ AD7746_MODE_OFFSET_CALIB
Definition: ad7746.h:160
#define AD7746_CAPSETUP_CIN2_MSK
Definition: ad7746.h:79
@ AD7746_VTMD_INT_TEMP
Definition: ad7746.h:120
enum ad7746_vtmd vtmd
Definition: ad7746.h:128
@ CIN1
Definition: iio_ad7746.c:652