Go to the documentation of this file.
13 #ifndef _AD7616_IIO_H_
14 #define _AD7616_IIO_H_
Header file for AD7616 IIO interface.
@ AD7616_VA7
Definition: ad7616.h:132
int32_t ad7616_set_oversampling_ratio(struct ad7616_dev *dev, enum ad7616_osr osr)
Definition: ad7616.c:581
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
uint32_t samples
Definition: iio_types.h:217
ad7616_osr
Definition: ad7616.h:159
@ AD7616_VB6
Definition: ad7616.h:144
int32_t ad7616_write(struct ad7616_dev *dev, uint8_t reg_addr, uint16_t reg_data)
Definition: ad7616.c:340
Struct describing the scan type.
Definition: iio_types.h:168
char sign
Definition: iio_types.h:153
enum ad7616_range va[8]
Definition: ad7616.h:194
@ AD7616_VA3
Definition: ad7616.h:128
@ AD7616_VA5
Definition: ad7616.h:130
uint16_t channel_a
Definition: ad7616.h:234
void * dev
Definition: iio_types.h:227
int32_t ad7616_setup(struct ad7616_dev **device, struct ad7616_init_param *init_param)
Definition: ad7616.c:941
Structure holding channel attributess.
Definition: iio_types.h:103
uint32_t bytes_per_scan
Definition: iio_types.h:215
enum ad7616_range vb[8]
Definition: ad7616.h:195
#define no_os_max(x, y)
Definition: no_os_util.h:64
Definition: ad9361_util.h:69
@ AD7616_VB_SELF_TEST
Definition: ad7616.h:149
Definition: iio_ad7616.h:29
@ AD7616_VA1
Definition: ad7616.h:126
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
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
@ AD7616_VA0
Definition: ad7616.h:125
int32_t ad7616_set_range(struct ad7616_dev *dev, enum ad7616_ch ch, enum ad7616_range range)
Definition: ad7616.c:497
Header file of AD7616 Driver.
@ OSR_ATTR_ID
Definition: iio_ad7606.c:45
@ AD7616_OSR_128
Definition: ad7616.h:167
@ AD7616_VB7
Definition: ad7616.h:145
struct iio_device * iio_dev
Definition: iio_ad7616.h:31
void iio_ad7616_event_handler(struct iio_desc *desc)
@ AD7616_5V
Definition: ad7616.h:155
@ AD7616_OSR_0
Definition: ad7616.h:160
const char * name
Definition: iio_types.h:131
@ AD7616_VB5
Definition: ad7616.h:143
uint16_t channel_b
Definition: ad7616.h:235
ad7616_range
Definition: ad7616.h:153
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
@ AD7616_2V5
Definition: ad7616.h:154
enum ad7616_ch ch_a
Definition: ad7616.h:239
uint32_t active_mask
Definition: iio_types.h:211
int32_t ad7616_setup_sequencer(struct ad7616_dev *dev, struct ad7616_sequencer_layer *layers, uint32_t layers_nb, uint8_t burst)
Setup the sequencer layers.
Definition: ad7616.c:842
@ AD7616_VA4
Definition: ad7616.h:129
@ AD7616_VB1
Definition: ad7616.h:139
@ AD7616_VA_SELF_TEST
Definition: ad7616.h:136
struct iio_buffer * buffer
Definition: iio_types.h:228
enum ad7616_ch ch_b
Definition: ad7616.h:240
struct iio_attribute * attributes
Definition: iio_types.h:186
Header file for iio_types.
uint16_t num_ch
Definition: iio_types.h:252
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
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
@ AD7616_VB2
Definition: ad7616.h:140
@ AD7616_VB0
Definition: ad7616.h:138
unsigned int no_os_hweight8(uint8_t word)
@ AD7616_10V
Definition: ad7616.h:156
@ OSR_AVAILABLE_ID
Definition: iio_ad7606.c:46
uint8_t crc
Definition: ad7616.h:179
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
int16_t ch_num
Definition: iio_types.h:105
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
enum ad7616_osr osr
Definition: ad7616.h:196
@ AD7616_VB4
Definition: ad7616.h:142
int32_t ad7616_read(struct ad7616_dev *dev, uint8_t reg_addr, uint16_t *reg_data)
Definition: ad7616.c:323
int ad7616_iio_remove(struct ad7616_iio_dev *dev)
@ AD7616_VA2
Definition: ad7616.h:127
@ AD7616_VB3
Definition: ad7616.h:141
int32_t ad7616_read_data_serial(struct ad7616_dev *dev, struct ad7616_conversion_result *results, uint32_t samples)
Read conversion result from device, checking with CRC if enabled.
Definition: ad7616.c:664
uint8_t layers_nb
Definition: ad7616.h:199
Definition: iio_types.h:151
void ad7616_remove(struct ad7616_dev *dev)
Definition: ad7616.c:1063
Header file of utility functions.
Definition: iio_types.h:226
uint32_t no_os_find_first_set_bit(uint32_t word)
ad7616_ch
Definition: ad7616.h:124
@ AD7616_VA6
Definition: ad7616.h:131
int ad7616_iio_init(struct ad7616_iio_dev **dev, struct ad7616_init_param *init_param)
int iio_buffer_push_scan(struct iio_buffer *buffer, void *data)
Definition: iio.c:1434
struct ad7616_dev * ad7616_dev
Definition: iio_ad7616.h:30