@ ADC_CHANNEL_ATTR
Definition: adc_demo.h:90
struct iio_trigger adc_iio_timer_trig_desc
Definition: iio_adc_demo_trig.c:61
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
Struct describing the scan type.
Definition: iio_types.h:168
char sign
Definition: iio_types.h:153
void * dev
Definition: iio_types.h:227
Structure holding channel attributess.
Definition: iio_types.h:103
uint32_t bytes_per_scan
Definition: iio_types.h:215
Definition: ad9361_util.h:69
int32_t adc_demo_trigger_handler(struct iio_device_data *dev_data)
Handles trigger: reads one data-set and writes it to the buffer.
Definition: iio_adc_demo.c:182
struct iio_trigger adc_iio_sw_trig_desc
Definition: iio_adc_demo_trig.c:55
uint16_t ** ext_buff
Definition: adc_demo.h:71
struct iio_attribute adc_channel_attributes[]
Definition: iio_adc_demo.c:235
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
uint32_t no_os_str_to_uint32(const char *str)
#define TOTAL_ADC_CHANNELS
Definition: adc_demo.h:52
int get_adc_demo_attr(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t attr_id)
get attributes for adc.
Definition: iio_adc_demo.c:76
uint32_t adc_global_attr
Definition: adc_demo.h:63
int32_t close_adc_channels(void *dev)
close all channels
Definition: adc_demo.c:136
@ ADC_GLOBAL_ATTR
Definition: adc_demo.h:91
#define IIO_DEMO_ADC_CHANNEL(_idx)
Definition: iio_adc_demo.c:245
#define ADC_DEMO_ATTR(_name, _priv)
Definition: iio_adc_demo.c:220
uint32_t size
Definition: iio_types.h:213
Header file of ADC Demo Driver.
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
uint32_t adc_ch_attr[MAX_ADC_ADDR]
Definition: adc_demo.h:65
struct iio_device adc_demo_iio_descriptor
Definition: iio_adc_demo.c:275
uint32_t active_ch
Definition: adc_demo.h:67
uint32_t ext_buff_len
Definition: adc_demo.h:69
int32_t adc_demo_reg_read(struct adc_demo_desc *desc, uint8_t reg_index, uint8_t *readval)
read function for the adc demo driver
Definition: adc_demo.c:157
struct iio_buffer * buffer
Definition: iio_types.h:228
int set_adc_demo_attr(void *device, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t attr_id)
set attributes for adc.
Definition: iio_adc_demo.c:107
struct scan_type adc_scan_type
Definition: iio_adc_demo.c:227
struct iio_attribute * attributes
Definition: iio_types.h:186
Header file for iio_types.
uint16_t num_ch
Definition: iio_types.h:252
int32_t update_adc_channels(void *dev, uint32_t mask)
active adc channels
Definition: adc_demo.c:116
Definition: adc_demo.h:59
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
Header file of ADC Demo iio.
int32_t adc_demo_reg_write(struct adc_demo_desc *desc, uint8_t reg_index, uint8_t writeval)
write function for the adc demo driver
Definition: adc_demo.c:175
int32_t adc_submit_samples(struct iio_device_data *dev_data)
function for reading samples from the device.
Definition: iio_adc_demo.c:137
struct iio_attribute iio_adc_global_attributes[]
Definition: iio_adc_demo.c:240
const uint16_t sine_lut[128]
Definition: adc_demo.c:47
Definition: iio_types.h:151
Header file of utility functions.
Definition: iio_types.h:226
struct iio_device adc_demo_iio_descriptor
Definition: iio_adc_demo.c:275
int iio_buffer_push_scan(struct iio_buffer *buffer, void *data)
Definition: iio.c:1434