no-OS
iio_ad738x.h
Go to the documentation of this file.
1 /***************************************************************************/
13 #ifndef _AD738X_IIO_H_
14 #define _AD738X_IIO_H_
15 
16 /******************************************************************************/
17 /***************************** Include Files **********************************/
18 /******************************************************************************/
19 #include <stdint.h>
20 
21 #include "iio.h"
22 #include "iio_types.h"
23 #include "ad738x.h"
24 
25 /******************************************************************************/
26 /********************** Public/Extern Declarations ****************************/
27 /******************************************************************************/
28 
32 };
33 
34 /* Init the IIO interface */
35 int ad738x_iio_init(struct ad738x_iio_dev **dev,
37 int ad738x_iio_remove(struct ad738x_iio_dev *dev);
38 #endif /* __AD738X_IIO_H__ */
ad738x_dev
Definition: ad738x.h:150
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
ad738x_init_param
Definition: ad738x.h:168
iio_buffer::samples
uint32_t samples
Definition: iio_types.h:217
ad738x_iio_init
int ad738x_iio_init(struct ad738x_iio_dev **dev, struct ad738x_init_param *init_param)
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
scan_type::sign
char sign
Definition: iio_types.h:153
iio_device_data::dev
void * dev
Definition: iio_types.h:227
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
IIO_VAL_FRACTIONAL
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
device
Definition: ad9361_util.h:69
no_os_calloc
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
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
iio_buffer_block_done
int iio_buffer_block_done(struct iio_buffer *buffer)
Definition: iio.c:1422
ad738x_iio_remove
int ad738x_iio_remove(struct ad738x_iio_dev *dev)
ad738x_dev::ref_voltage_mv
uint32_t ref_voltage_mv
Definition: ad738x.h:161
ad738x_init
int32_t ad738x_init(struct ad738x_dev **device, struct ad738x_init_param *init_param)
Definition: ad738x.c:394
ad738x.h
Header file for AD738x Driver.
iio.h
Header file of iio.
no_os_error.h
Error codes definition.
iio_attribute::name
const char * name
Definition: iio_types.h:131
ad738x_spi_single_conversion
int32_t ad738x_spi_single_conversion(struct ad738x_dev *dev, uint32_t *adc_data)
Definition: ad738x.c:250
ad738x_iio_dev::ad738x_dev
struct ad738x_dev * ad738x_dev
Definition: iio_ad738x.h:30
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
ad738x_iio_dev
Definition: iio_ad738x.h:29
ad738x_spi_reg_write
int32_t ad738x_spi_reg_write(struct ad738x_dev *dev, uint8_t reg_addr, uint16_t reg_data)
Definition: ad738x.c:90
iio_buffer
Definition: iio_types.h:209
iio_device_data::buffer
struct iio_buffer * buffer
Definition: iio_types.h:228
ad738x_iio_dev::iio_dev
struct iio_device * iio_dev
Definition: iio_ad738x.h:31
iio_format_value
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
iio_types.h
Header file for iio_types.
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:252
no_os_free
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
ad738x_read_data
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
iio_ad738x.h
Header file for AD738X IIO interface.
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
iio_ch_info::ch_num
int16_t ch_num
Definition: iio_types.h:105
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
ad738x_spi_reg_read
int32_t ad738x_spi_reg_read(struct ad738x_dev *dev, uint8_t reg_addr, uint16_t *reg_data)
Definition: ad738x.c:57
scan_type
Definition: iio_types.h:151
iio_buffer_get_block
int iio_buffer_get_block(struct iio_buffer *buffer, void **addr)
Definition: iio.c:1409
no_os_util.h
Header file of utility functions.
iio_device_data
Definition: iio_types.h:226