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:155
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:121
ad738x_init_param
Definition: ad738x.h:171
iio_buffer::samples
uint32_t samples
Definition: iio_types.h:222
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:173
scan_type::sign
char sign
Definition: iio_types.h:158
iio_device_data::dev
void * dev
Definition: iio_types.h:232
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:108
IIO_VAL_FRACTIONAL
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:61
device
Definition: ad9361_util.h:75
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:60
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:53
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:165
ad738x_init
int32_t ad738x_init(struct ad738x_dev **device, struct ad738x_init_param *init_param)
Definition: ad738x.c:338
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:136
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:134
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:98
iio_buffer::active_mask
uint32_t active_mask
Definition: iio_types.h:216
iio_device_data::buffer
struct iio_buffer * buffer
Definition: iio_types.h:233
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:666
iio_types.h
Header file for iio_types.
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:257
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
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:75
iio_ad738x.h
Header file for AD738X IIO interface.
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
iio_ch_info::ch_num
int16_t ch_num
Definition: iio_types.h:110
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:252
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:65
scan_type
Definition: iio_types.h:156
no_os_util.h
Header file of utility functions.
iio_device_data
Definition: iio_types.h:231
ad738x_spi_single_conversion
int32_t ad738x_spi_single_conversion(struct ad738x_dev *dev, uint16_t *adc_data)
Definition: ad738x.c:140
iio_buffer_push_scan
int iio_buffer_push_scan(struct iio_buffer *buffer, void *data)
Definition: iio.c:1412