Go to the documentation of this file.
13 #ifndef _AD738X_IIO_H_
14 #define _AD738X_IIO_H_
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
uint32_t samples
Definition: iio_types.h:217
int ad738x_iio_init(struct ad738x_iio_dev **dev, struct ad738x_init_param *init_param)
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
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
Definition: ad9361_util.h:69
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
int iio_buffer_block_done(struct iio_buffer *buffer)
Definition: iio.c:1422
int ad738x_iio_remove(struct ad738x_iio_dev *dev)
uint32_t ref_voltage_mv
Definition: ad738x.h:161
int32_t ad738x_init(struct ad738x_dev **device, struct ad738x_init_param *init_param)
Definition: ad738x.c:394
Header file for AD738x Driver.
const char * name
Definition: iio_types.h:131
int32_t ad738x_spi_single_conversion(struct ad738x_dev *dev, uint32_t *adc_data)
Definition: ad738x.c:250
struct ad738x_dev * ad738x_dev
Definition: iio_ad738x.h:30
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
Definition: iio_ad738x.h:29
int32_t ad738x_spi_reg_write(struct ad738x_dev *dev, uint8_t reg_addr, uint16_t reg_data)
Definition: ad738x.c:90
Definition: iio_types.h:209
struct iio_buffer * buffer
Definition: iio_types.h:228
struct iio_device * iio_dev
Definition: iio_ad738x.h:31
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
Header file for iio_types.
uint16_t num_ch
Definition: iio_types.h:252
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
int32_t ad738x_read_data(struct ad738x_dev *dev, uint32_t *buf, uint16_t samples)
Read from device. Enter register mode to read/write registers.
Definition: ad738x.c:364
Header file for AD738X IIO interface.
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
int32_t ad738x_spi_reg_read(struct ad738x_dev *dev, uint8_t reg_addr, uint16_t *reg_data)
Definition: ad738x.c:57
Definition: iio_types.h:151
int iio_buffer_get_block(struct iio_buffer *buffer, void **addr)
Definition: iio.c:1409
Header file of utility functions.
Definition: iio_types.h:226