no-OS
iio_ad3552r.h
Go to the documentation of this file.
1 /**************************************************************************/
35 #ifndef IIO_AD3552R_H
36 #define IIO_AD3552R_H
37 
38 #include "ad3552r.h"
39 #include "iio_types.h"
40 
41 struct iio_ad3552r_desc;
42 
43 int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac,
44  struct ad3552r_init_param *param);
45 
46 int32_t iio_ad3552r_remove(struct iio_ad3552r_desc *iio_dac);
47 
48 void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac,
49  struct iio_device **desc);
50 
51 #endif /* IIO_AD3552R_H */
ad3552r_init
int32_t ad3552r_init(struct ad3552r_desc **desc, struct ad3552r_init_param *param)
Definition: ad3552r.c:1330
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
iio_ad3552r_get_descriptor
void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac, struct iio_device **desc)
Definition: iio_ad3552r.c:277
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:50
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
iio_device::channels
struct iio_channel * channels
Definition: iio_types.h:254
AD3552R_IIO_ATTR_RAW
@ AD3552R_IIO_ATTR_RAW
Definition: iio_ad3552r.c:70
iio_ad3552r_remove
int32_t iio_ad3552r_remove(struct iio_ad3552r_desc *iio_dac)
Definition: iio_ad3552r.c:265
AD3552R_CH_DAC_POWERDOWN
@ AD3552R_CH_DAC_POWERDOWN
Definition: ad3552r.h:291
ad3552r_read_reg
int32_t ad3552r_read_reg(struct ad3552r_desc *desc, uint8_t addr, uint16_t *val)
Definition: ad3552r.c:613
iio_desc
Definition: iio.c:204
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
iio_ad3552r_remove
int32_t iio_ad3552r_remove(struct iio_ad3552r_desc *iio_dac)
Definition: iio_ad3552r.c:265
IIO_VAL_INT_PLUS_MICRO
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
NO_OS_IS_ERR_VALUE
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
AD3552R_IIO_ATTR_OFFSET
@ AD3552R_IIO_ATTR_OFFSET
Definition: iio_ad3552r.c:69
AD3552R_ATTR
#define AD3552R_ATTR(_name, _priv)
Definition: iio_ad3552r.c:51
ad3552r_write_samples
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
device
Definition: ad9361_util.h:69
iio_ad3552r_init
int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac, struct ad3552r_init_param *param)
Definition: iio_ad3552r.c:228
ad3552r_iio_attrs
ad3552r_iio_attrs
Definition: iio_ad3552r.c:67
iio_device::write_dev
int32_t(* write_dev)(void *dev, void *buff, uint32_t nb_samples)
Definition: iio_types.h:270
iio_ad3552r_get_descriptor
void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac, struct iio_device **desc)
Definition: iio_ad3552r.c:277
no_os_calloc
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
no_os_str_to_uint32
uint32_t no_os_str_to_uint32(const char *str)
iio_device::debug_reg_read
int32_t(* debug_reg_read)(void *dev, uint32_t reg, uint32_t *readval)
Definition: iio_types.h:283
iio_ad3552r_desc
Definition: iio_ad3552r.c:74
AD3552R_DAC_CH
#define AD3552R_DAC_CH(_idx)
Definition: iio_ad3552r.c:58
ad3552r_get_ch_value
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
iio_device::pre_enable
int32_t(* pre_enable)(void *dev, uint32_t mask)
Definition: iio_types.h:274
iio.h
Header file of iio.
no_os_error.h
Error codes definition.
iio_ad3552r_desc::dac
struct ad3552r_desc * dac
Definition: iio_ad3552r.c:77
ad3552r_remove
int32_t ad3552r_remove(struct ad3552r_desc *desc)
Definition: ad3552r.c:1437
ad3552r_set_ch_value
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
iio_ad3552r_desc::iio_desc
struct iio_device iio_desc
Definition: iio_ad3552r.c:76
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
ad3552r_channel_init::en
bool en
Definition: ad3552r.h:421
ad3552r_init_param::channels
struct ad3552r_channel_init channels[AD3552R_MAX_NUM_CH]
Definition: ad3552r.h:446
ad3552r_get_offset
int32_t ad3552r_get_offset(struct ad3552r_desc *desc, uint8_t ch, int32_t *integer, int32_t *dec)
Definition: ad3552r.c:1141
AD3552R_MAX_NUM_CH
#define AD3552R_MAX_NUM_CH
Definition: ad3552r.h:169
AD3552R_WRITE_INPUT_REGS_AND_TRIGGER_LDAC
@ AD3552R_WRITE_INPUT_REGS_AND_TRIGGER_LDAC
Definition: ad3552r.h:329
AD3552R_IIO_ATTR_SCALE
@ AD3552R_IIO_ATTR_SCALE
Definition: iio_ad3552r.c:71
iio_ad3552r_desc::mask
uint32_t mask
Definition: iio_ad3552r.c:78
ad3552r_init_param
Definition: ad3552r.h:433
iio_ad3552r_init
int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac, struct ad3552r_init_param *param)
Definition: iio_ad3552r.c:228
iio_format_value
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
iio_types.h
Header file for iio_types.
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:252
no_os_free
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
@ AD3552R_IIO_ATTR_EN
Definition: iio_ad3552r.c:68
ad3552r_write_reg
int32_t ad3552r_write_reg(struct ad3552r_desc *desc, uint8_t addr, uint16_t val)
Definition: ad3552r.c:574
iio_ch_info::ch_num
int16_t ch_num
Definition: iio_types.h:105
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
ad3552r_get_scale
int32_t ad3552r_get_scale(struct ad3552r_desc *desc, uint8_t ch, int32_t *integer, int32_t *dec)
Definition: ad3552r.c:1129
scan_type
Definition: iio_types.h:151
ad3552r.h
Header file of ad3552r Driver.
no_os_get_unaligned_be16
uint16_t no_os_get_unaligned_be16(uint8_t *buf)
no_os_util.h
Header file of utility functions.
no_os_hweight32
unsigned int no_os_hweight32(uint32_t word)
iio_ad3552r_desc::channels
struct iio_channel channels[AD3552R_MAX_NUM_CH]
Definition: iio_ad3552r.c:75
iio_device::debug_reg_write
int32_t(* debug_reg_write)(void *dev, uint32_t reg, uint32_t writeval)
Definition: iio_types.h:285
AD3552R_CH_CODE
@ AD3552R_CH_CODE
Definition: ad3552r.h:320
ad3552r_desc
Definition: ad3552r.h:390
scan_type::realbits
uint8_t realbits
Definition: iio_types.h:155