Go to the documentation of this file.
33 #ifndef __IIO_MAX11205_H__
34 #define __IIO_MAX11205_H__
struct iio_device * iio_dev
Definition: iio_max11205.h:53
#define MAX11205_NEW_DATA_TIMEOUT
Definition: iio_max11205.c:48
int max11205_get_data_raw(struct max11205_dev *dev, bool *new_data_avail, int16_t *data_raw)
Get the converted data.
Definition: max11205.c:167
#define MAX11205_BIT_SCALE
Definition: iio_max11205.c:47
uint32_t timeout
Definition: ad413x.c:49
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
char sign
Definition: iio_types.h:153
Definition: max11205.h:73
int32_t sampling_frequency
Definition: iio_max11205.h:55
@ IIO_VAL_FRACTIONAL_LOG2
Definition: iio_types.h:56
enum max11205_dev_id dev_id
Definition: iio_max11205.h:62
Structure holding channel attributess.
Definition: iio_types.h:103
int max11205_iio_remove(struct max11205_iio_dev *desc)
Free the resources allocated by max11205_iio_init().
Definition: iio_max11205.c:286
enum iio_chan_type ch_type
Definition: iio_types.h:172
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 max11205_init(struct max11205_dev **device, struct max11205_init_param init_param)
Initializes the communication peripheral.
Definition: max11205.c:85
Definition: iio_max11205.h:49
const char * name
Definition: iio_types.h:131
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
int max11205_iio_init(struct max11205_iio_dev **iio_dev, struct max11205_iio_dev_init_param *init_param)
Initializes the max11205 iio driver.
Definition: iio_max11205.c:252
struct max11205_init_param * max11205_dev_init
Definition: iio_max11205.h:60
@ MAX11205A
Definition: iio_max11205.h:45
Definition: max11205.h:56
@ IIO_VOLTAGE
Definition: iio_types.h:65
int max11205_iio_remove(struct max11205_iio_dev *desc)
Free the resources allocated by max11205_iio_init().
Definition: iio_max11205.c:286
struct max11205_dev * max11205_dev
Definition: iio_max11205.h:51
#define MAX11205A_OUT_DATA_RATE
Definition: iio_max11205.c:49
int max11205_iio_init(struct max11205_iio_dev **iio_dev, struct max11205_iio_dev_init_param *init_param)
Initializes the max11205 iio driver.
Definition: iio_max11205.c:252
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
max11205_dev_id
Definition: iio_max11205.h:44
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
enum iio_chan_type type
Definition: iio_types.h:109
Header file of iio max11205 driver.
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
#define MAX11205B_OUT_DATA_RATE
Definition: iio_max11205.c:50
int max11205_remove(struct max11205_dev *dev)
Free memory allocated by max11205_init().
Definition: max11205.c:203
uint32_t vref_mv
Definition: max11205.h:66
Implementation of max11205.h.
Definition: iio_types.h:151
Header file of utility functions.
@ MAX11205B
Definition: iio_max11205.h:46
Error macro definition for ARM Compiler.
Definition: iio_max11205.h:58