no-OS
iio_ad3552r.h
Go to the documentation of this file.
1 /**************************************************************************/
43 #ifndef IIO_AD3552R_H
44 #define IIO_AD3552R_H
45 
46 #include "ad3552r.h"
47 #include "iio_types.h"
48 
49 struct iio_ad3552r_desc;
50 
51 int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac,
52  struct ad3552r_init_param *param);
53 
54 int32_t iio_ad3552r_remove(struct iio_ad3552r_desc *iio_dac);
55 
56 void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac,
57  struct iio_device **desc);
58 
59 #endif /* IIO_AD3552R_H */
ad3552r_init
int32_t ad3552r_init(struct ad3552r_desc **desc, struct ad3552r_init_param *param)
Definition: ad3552r.c:1066
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:114
iio_ad3552r_get_descriptor
void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac, struct iio_device **desc)
Definition: iio_ad3552r.c:282
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:56
iio_channel
Struct describing the scan type.
Definition: iio_types.h:177
iio_device::channels
struct iio_channel * channels
Definition: iio_types.h:261
AD3552R_IIO_ATTR_RAW
@ AD3552R_IIO_ATTR_RAW
Definition: iio_ad3552r.c:77
iio_ad3552r_remove
int32_t iio_ad3552r_remove(struct iio_ad3552r_desc *iio_dac)
Definition: iio_ad3552r.c:270
AD3552R_CH_DAC_POWERDOWN
@ AD3552R_CH_DAC_POWERDOWN
Definition: ad3552r.h:281
ad3552r_read_reg
int32_t ad3552r_read_reg(struct ad3552r_desc *desc, uint8_t addr, uint16_t *val)
Definition: ad3552r.c:471
iio_desc
Definition: iio.c:202
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:101
iio_ad3552r_remove
int32_t iio_ad3552r_remove(struct iio_ad3552r_desc *iio_dac)
Definition: iio_ad3552r.c:270
iio_ad3552r_desc::channels
struct iio_channel channels[AD3552R_NUM_CH]
Definition: iio_ad3552r.c:82
IIO_VAL_INT_PLUS_MICRO
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:57
NO_OS_IS_ERR_VALUE
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:56
AD3552R_IIO_ATTR_OFFSET
@ AD3552R_IIO_ATTR_OFFSET
Definition: iio_ad3552r.c:76
AD3552R_ATTR
#define AD3552R_ATTR(_name, _priv)
Definition: iio_ad3552r.c:58
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:1272
device
Definition: ad9361_util.h:75
iio_ad3552r_init
int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac, struct ad3552r_init_param *param)
Definition: iio_ad3552r.c:233
ad3552r_iio_attrs
ad3552r_iio_attrs
Definition: iio_ad3552r.c:74
iio_device::write_dev
int32_t(* write_dev)(void *dev, void *buff, uint32_t nb_samples)
Definition: iio_types.h:277
iio_ad3552r_get_descriptor
void iio_ad3552r_get_descriptor(struct iio_ad3552r_desc *iio_dac, struct iio_device **desc)
Definition: iio_ad3552r.c:282
no_os_str_to_uint32
uint32_t no_os_str_to_uint32(const char *str)
AD3552R_NUM_CH
#define AD3552R_NUM_CH
Definition: ad3552r.h:164
iio_device::debug_reg_read
int32_t(* debug_reg_read)(void *dev, uint32_t reg, uint32_t *readval)
Definition: iio_types.h:290
iio_ad3552r_desc
Definition: iio_ad3552r.c:81
AD3552R_DAC_CH
#define AD3552R_DAC_CH(_idx)
Definition: iio_ad3552r.c:65
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:802
iio_device::pre_enable
int32_t(* pre_enable)(void *dev, uint32_t mask)
Definition: iio_types.h:281
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:84
ad3552r_remove
int32_t ad3552r_remove(struct ad3552r_desc *desc)
Definition: ad3552r.c:1156
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:849
iio_ad3552r_desc::iio_desc
struct iio_device iio_desc
Definition: iio_ad3552r.c:83
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:138
ad3552r_channel_init::en
bool en
Definition: ad3552r.h:404
ad3552r_init_param::channels
struct ad3552r_channel_init channels[AD3552R_NUM_CH]
Definition: ad3552r.h:429
ad3552r_get_offset
int32_t ad3552r_get_offset(struct ad3552r_desc *desc, uint8_t ch, int32_t *integer, int32_t *dec)
Definition: ad3552r.c:938
AD3552R_WRITE_INPUT_REGS_AND_TRIGGER_LDAC
@ AD3552R_WRITE_INPUT_REGS_AND_TRIGGER_LDAC
Definition: ad3552r.h:319
AD3552R_IIO_ATTR_SCALE
@ AD3552R_IIO_ATTR_SCALE
Definition: iio_ad3552r.c:78
iio_ad3552r_desc::mask
uint32_t mask
Definition: iio_ad3552r.c:85
ad3552r_init_param
Definition: ad3552r.h:416
iio_ad3552r_init
int32_t iio_ad3552r_init(struct iio_ad3552r_desc **iio_dac, struct ad3552r_init_param *param)
Definition: iio_ad3552r.c:233
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:635
iio_types.h
Header file for iio_types.
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:259
AD3552R_IIO_ATTR_EN
@ AD3552R_IIO_ATTR_EN
Definition: iio_ad3552r.c:75
ad3552r_write_reg
int32_t ad3552r_write_reg(struct ad3552r_desc *desc, uint8_t addr, uint16_t val)
Definition: ad3552r.c:441
iio_ch_info::ch_num
int16_t ch_num
Definition: iio_types.h:103
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:254
ad3552r_get_scale
int32_t ad3552r_get_scale(struct ad3552r_desc *desc, uint8_t ch, int32_t *integer, int32_t *dec)
Definition: ad3552r.c:926
scan_type
Definition: iio_types.h:160
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_device::debug_reg_write
int32_t(* debug_reg_write)(void *dev, uint32_t reg, uint32_t writeval)
Definition: iio_types.h:292
AD3552R_CH_CODE
@ AD3552R_CH_CODE
Definition: ad3552r.h:310
ad3552r_desc
Definition: ad3552r.h:380
scan_type::realbits
uint8_t realbits
Definition: iio_types.h:164