#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:121
struct iio_device const iio_ad5791_device
Definition: iio_ad5791.c:368
#define AD5791_REG_DAC
Definition: ad5791.h:134
Struct describing the scan type.
Definition: iio_types.h:173
int32_t ad5791_iio_remove(struct ad5791_iio_desc *desc)
Free memory allocated by ad5791_iio_init().
Definition: iio_ad5791.c:420
char sign
Definition: iio_types.h:158
int32_t ad5791_soft_instruction(struct ad5791_dev *dev, uint8_t instruction_bit)
Asserts RESET, CLR or LDAC in a software manner.
Definition: ad5791.c:287
@ AD5791_THREE_STATE
Definition: iio_ad5791.h:55
Structure holding channel attributess.
Definition: iio_types.h:108
Header file of AD5791 Driver.
struct iio_device const iio_ad5791_device
Definition: iio_ad5791.c:368
int32_t ad5791_set_dac_value(struct ad5791_dev *dev, uint32_t value)
Writes to the DAC register.
Definition: ad5791.c:260
#define AD5791_CTRL_DACTRI
Definition: ad5791.h:151
int32_t ad5791_init(struct ad5791_dev **device, struct ad5791_init_param init_param)
Initializes the communication with the device.
Definition: ad5791.c:80
Definition: ad9361_util.h:75
uint32_t vref_neg_mv
Definition: iio_ad5791.h:77
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:60
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:53
#define AD5791_CTRL_OPGND
Definition: ad5791.h:152
AD5791 IIO driver initialization structure.
Definition: iio_ad5791.h:74
uint32_t vref_mv
Definition: iio_ad5791.h:66
uint32_t vref_neg_mv
Definition: iio_ad5791.h:67
int32_t ad5791_get_register_value(struct ad5791_dev *dev, uint8_t register_address, uint32_t *value)
Reads the value of a register.
Definition: ad5791.c:185
#define AD5791_CH_NO
Definition: iio_ad5791.h:47
D5791 IIO driver handler.
Definition: iio_ad5791.h:62
int32_t ad5791_remove(struct ad5791_dev *dev)
Free the resources allocated by ad5791_init().
Definition: ad5791.c:118
struct ad5791_dev * ad5791_handle
Definition: iio_ad5791.h:63
const char * name
Definition: iio_types.h:136
struct ad5791_init_param * ad5791_initial
Definition: iio_ad5791.h:75
const char * name
Definition: iio_types.h:175
Structure holding pointers to show and store functions.
Definition: iio_types.h:134
@ IIO_VOLTAGE
Definition: iio_types.h:71
ad5791_iio_powerdown_modes
AD5791 channel power down modes.
Definition: iio_ad5791.h:53
uint32_t vref_mv
Definition: iio_ad5791.h:76
#define AD5791_SOFT_CTRL_LDAC
Definition: ad5791.h:159
struct iio_attribute * attributes
Definition: iio_types.h:191
uint16_t num_ch
Definition: iio_types.h:257
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:75
@ AD5791_6kOHMS_TO_GND
Definition: iio_ad5791.h:54
#define NULL
Definition: wrapper.h:64
int32_t ad5791_set_register_value(struct ad5791_dev *dev, uint8_t register_address, uint32_t register_value)
Writes data into a register.
Definition: ad5791.c:147
struct iio_device * ad5791_iio_dev
Definition: iio_ad5791.h:64
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
Structure holding channels and attributes of a device.
Definition: iio_types.h:252
int32_t ad5791_iio_init(struct ad5791_iio_desc **iio_dev, struct ad5791_iio_init_param *init_param)
Initialize the AD5791 IIO driver.
Definition: iio_ad5791.c:387
Definition: iio_types.h:156
Header file of utility functions.
enum ad5791_iio_powerdown_modes curr_mode
Definition: iio_ad5791.h:65
int32_t ad5791_iio_remove(struct ad5791_iio_desc *desc)
Free memory allocated by ad5791_iio_init().
Definition: iio_ad5791.c:420
Header of AD5791 IIO Driver.
#define AD5791_REG_CTRL
Definition: ad5791.h:135
int32_t ad5791_iio_init(struct ad5791_iio_desc **iio_dev, struct ad5791_iio_init_param *init_param)
Initialize the AD5791 IIO driver.
Definition: iio_ad5791.c:387