#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
struct iio_device const iio_ad5791_device
Definition: iio_ad5791.c:362
#define AD5791_REG_DAC
Definition: ad5791.h:130
Struct describing the scan type.
Definition: iio_types.h:168
int32_t ad5791_iio_remove(struct ad5791_iio_desc *desc)
Free memory allocated by ad5791_iio_init().
Definition: iio_ad5791.c:414
char sign
Definition: iio_types.h:153
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:282
@ AD5791_THREE_STATE
Definition: iio_ad5791.h:49
Structure holding channel attributess.
Definition: iio_types.h:103
Header file of AD5791 Driver.
struct iio_device const iio_ad5791_device
Definition: iio_ad5791.c:362
int32_t ad5791_set_dac_value(struct ad5791_dev *dev, uint32_t value)
Writes to the DAC register.
Definition: ad5791.c:255
#define AD5791_CTRL_DACTRI
Definition: ad5791.h:147
int32_t ad5791_init(struct ad5791_dev **device, struct ad5791_init_param init_param)
Initializes the communication with the device.
Definition: ad5791.c:74
Definition: ad9361_util.h:69
uint32_t vref_neg_mv
Definition: iio_ad5791.h:71
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
#define AD5791_CTRL_OPGND
Definition: ad5791.h:148
AD5791 IIO driver initialization structure.
Definition: iio_ad5791.h:68
uint32_t vref_mv
Definition: iio_ad5791.h:60
uint32_t vref_neg_mv
Definition: iio_ad5791.h:61
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:180
#define AD5791_CH_NO
Definition: iio_ad5791.h:41
D5791 IIO driver handler.
Definition: iio_ad5791.h:56
int32_t ad5791_remove(struct ad5791_dev *dev)
Free the resources allocated by ad5791_init().
Definition: ad5791.c:113
struct ad5791_dev * ad5791_handle
Definition: iio_ad5791.h:57
const char * name
Definition: iio_types.h:131
struct ad5791_init_param * ad5791_initial
Definition: iio_ad5791.h:69
const char * name
Definition: iio_types.h:170
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
@ IIO_VOLTAGE
Definition: iio_types.h:65
ad5791_iio_powerdown_modes
AD5791 channel power down modes.
Definition: iio_ad5791.h:47
uint32_t vref_mv
Definition: iio_ad5791.h:70
#define AD5791_SOFT_CTRL_LDAC
Definition: ad5791.h:155
struct iio_attribute * attributes
Definition: iio_types.h:186
uint16_t num_ch
Definition: iio_types.h:252
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
@ AD5791_6kOHMS_TO_GND
Definition: iio_ad5791.h:48
#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:142
struct iio_device * ad5791_iio_dev
Definition: iio_ad5791.h:58
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
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:381
Definition: iio_types.h:151
Header file of utility functions.
enum ad5791_iio_powerdown_modes curr_mode
Definition: iio_ad5791.h:59
int32_t ad5791_iio_remove(struct ad5791_iio_desc *desc)
Free memory allocated by ad5791_iio_init().
Definition: iio_ad5791.c:414
Header of AD5791 IIO Driver.
#define AD5791_REG_CTRL
Definition: ad5791.h:131
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:381