int get_dac_demo_attr(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t attr_id)
get attributes for dac.
Definition: iio_dac_demo.c:76
int32_t dac_demo_reg_write(struct dac_demo_desc *desc, uint8_t reg_index, uint8_t writeval)
write function for the dac demo driver
Definition: dac_demo.c:151
struct iio_attribute dac_channel_attributes[]
Definition: iio_dac_demo.c:244
uint32_t loopback_buffer_len
Definition: dac_demo.h:68
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
int32_t close_dac_channels(void *dev)
close all channels
Definition: dac_demo.c:113
Header file of DAC Demo iio.
Struct describing the scan type.
Definition: iio_types.h:168
char sign
Definition: iio_types.h:153
int iio_buffer_pop_scan(struct iio_buffer *buffer, void *data)
Definition: iio.c:1443
int32_t dac_demo_reg_read(struct dac_demo_desc *desc, uint8_t reg_index, uint8_t *readval)
read function for the dac demo driver
Definition: dac_demo.c:133
void * dev
Definition: iio_types.h:227
uint32_t dac_global_attr
Definition: dac_demo.h:62
int32_t update_dac_channels(void *dev, int32_t mask)
update number of active channels
Definition: dac_demo.c:95
Structure holding channel attributess.
Definition: iio_types.h:103
uint32_t bytes_per_scan
Definition: iio_types.h:215
Definition: dac_demo.h:58
struct iio_device dac_demo_iio_descriptor
Definition: iio_dac_demo.c:273
Definition: ad9361_util.h:69
struct iio_attribute dac_global_attributes[]
Definition: iio_dac_demo.c:249
struct iio_trigger dac_iio_sw_trig_desc
Definition: iio_dac_demo_trig.c:55
int32_t dac_submit_samples(struct iio_device_data *dev_data)
function for writing samples to the device.
Definition: iio_dac_demo.c:104
uint32_t no_os_str_to_uint32(const char *str)
@ DAC_GLOBAL_ATTR
Definition: dac_demo.h:90
struct iio_trigger dac_iio_timer_trig_desc
Definition: iio_dac_demo_trig.c:61
struct iio_device dac_demo_iio_descriptor
Definition: iio_dac_demo.c:273
uint16_t ** loopback_buffers
Definition: dac_demo.h:70
uint32_t dac_ch_attr[MAX_DAC_ADDR]
Definition: dac_demo.h:64
uint32_t size
Definition: iio_types.h:213
uint32_t active_ch
Definition: dac_demo.h:66
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
#define DAC_DEMO_ATTR(_name, _priv)
Definition: iio_dac_demo.c:218
int32_t dac_demo_trigger_handler(struct iio_device_data *dev_data)
Handles trigger: reads one data-set from iio buffer and writes it to the dac buffer.
Definition: iio_dac_demo.c:147
struct iio_buffer * buffer
Definition: iio_types.h:228
struct iio_attribute * attributes
Definition: iio_types.h:186
Header file for iio_types.
int set_dac_demo_attr(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t attr_id)
set attributes for dac.
Definition: iio_dac_demo.c:193
uint16_t num_ch
Definition: iio_types.h:252
@ DAC_CHANNEL_ATTR
Definition: dac_demo.h:89
Definition: iio_types.h:231
#define NULL
Definition: wrapper.h:64
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
#define TOTAL_DAC_CHANNELS
Definition: dac_demo.h:51
Definition: iio_types.h:151
Header file of utility functions.
Definition: iio_types.h:226
#define IIO_DEMO_DAC_CHANNEL(_idx)
Definition: iio_dac_demo.c:225
Header file of DAC Demo Driver.
struct scan_type dac_scan_type
Definition: iio_dac_demo.c:236