42 extern struct adc_t adc0;
46 extern struct adc_t adc1;
int adc_read(struct adc_t *adc, uint16_t *buf, uint16_t size)
Read the ADC buffer from the driver.
uint16_t buf_length
ADC buffer length.
uint8_t * channels
Channels used in the iio device.
uint8_t dev_id
The iio device ID.
void adc_enable(struct adc_t *adc, uint8_t value)
Start or stop the ADC readings.
uint8_t channels_cnt
Amount of channels.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.