int32_t ad3552r_init(struct ad3552r_desc **desc, struct ad3552r_init_param *param)
Definition: ad3552r.c:1330
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac, struct iio_device **desc)
Definition: iio_ad3552r.c:277
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
struct iio_channel * channels
Definition: iio_types.h:254
@ AD3552R_IIO_ATTR_RAW
Definition: iio_ad3552r.c:70
int32_t iio_ad3552r_remove(struct iio_ad3552r_desc *iio_dac)
Definition: iio_ad3552r.c:265
@ AD3552R_CH_DAC_POWERDOWN
Definition: ad3552r.h:291
int32_t ad3552r_read_reg(struct ad3552r_desc *desc, uint8_t addr, uint16_t *val)
Definition: ad3552r.c:613
Structure holding channel attributess.
Definition: iio_types.h:103
int32_t iio_ad3552r_remove(struct iio_ad3552r_desc *iio_dac)
Definition: iio_ad3552r.c:265
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
@ AD3552R_IIO_ATTR_OFFSET
Definition: iio_ad3552r.c:69
#define AD3552R_ATTR(_name, _priv)
Definition: iio_ad3552r.c:51
int32_t ad3552r_write_samples(struct ad3552r_desc *desc, uint16_t *data, uint32_t samples, uint32_t ch_mask, enum ad3552r_write_mode mode)
Definition: ad3552r.c:1702
Definition: ad9361_util.h:69
int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac, struct ad3552r_init_param *param)
Definition: iio_ad3552r.c:228
ad3552r_iio_attrs
Definition: iio_ad3552r.c:67
int32_t(* write_dev)(void *dev, void *buff, uint32_t nb_samples)
Definition: iio_types.h:270
void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac, struct iio_device **desc)
Definition: iio_ad3552r.c:277
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
uint32_t no_os_str_to_uint32(const char *str)
int32_t(* debug_reg_read)(void *dev, uint32_t reg, uint32_t *readval)
Definition: iio_types.h:283
Definition: iio_ad3552r.c:74
#define AD3552R_DAC_CH(_idx)
Definition: iio_ad3552r.c:58
int32_t ad3552r_get_ch_value(struct ad3552r_desc *desc, enum ad3552r_ch_attributes attr, uint8_t ch, uint16_t *val)
Definition: ad3552r.c:991
int32_t(* pre_enable)(void *dev, uint32_t mask)
Definition: iio_types.h:274
struct ad3552r_desc * dac
Definition: iio_ad3552r.c:77
int32_t ad3552r_remove(struct ad3552r_desc *desc)
Definition: ad3552r.c:1437
int32_t ad3552r_set_ch_value(struct ad3552r_desc *desc, enum ad3552r_ch_attributes attr, uint8_t ch, uint16_t val)
Definition: ad3552r.c:1043
struct iio_device iio_desc
Definition: iio_ad3552r.c:76
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
bool en
Definition: ad3552r.h:421
struct ad3552r_channel_init channels[AD3552R_MAX_NUM_CH]
Definition: ad3552r.h:446
int32_t ad3552r_get_offset(struct ad3552r_desc *desc, uint8_t ch, int32_t *integer, int32_t *dec)
Definition: ad3552r.c:1141
#define AD3552R_MAX_NUM_CH
Definition: ad3552r.h:169
@ AD3552R_WRITE_INPUT_REGS_AND_TRIGGER_LDAC
Definition: ad3552r.h:329
@ AD3552R_IIO_ATTR_SCALE
Definition: iio_ad3552r.c:71
uint32_t mask
Definition: iio_ad3552r.c:78
Definition: ad3552r.h:433
int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac, struct ad3552r_init_param *param)
Definition: iio_ad3552r.c:228
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
Header file for iio_types.
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
@ AD3552R_IIO_ATTR_EN
Definition: iio_ad3552r.c:68
int32_t ad3552r_write_reg(struct ad3552r_desc *desc, uint8_t addr, uint16_t val)
Definition: ad3552r.c:574
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
int32_t ad3552r_get_scale(struct ad3552r_desc *desc, uint8_t ch, int32_t *integer, int32_t *dec)
Definition: ad3552r.c:1129
Definition: iio_types.h:151
Header file of ad3552r Driver.
uint16_t no_os_get_unaligned_be16(uint8_t *buf)
Header file of utility functions.
unsigned int no_os_hweight32(uint32_t word)
struct iio_channel channels[AD3552R_MAX_NUM_CH]
Definition: iio_ad3552r.c:75
int32_t(* debug_reg_write)(void *dev, uint32_t reg, uint32_t writeval)
Definition: iio_types.h:285
@ AD3552R_CH_CODE
Definition: ad3552r.h:320
Definition: ad3552r.h:390
uint8_t realbits
Definition: iio_types.h:155