no-OS
iio_max11205.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __IIO_MAX11205_H__
34 #define __IIO_MAX11205_H__
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 #include "iio.h"
40 
41 /******************************************************************************/
42 /*************************** Types Declarations *******************************/
43 /******************************************************************************/
47 };
48 
56 };
57 
63 };
64 
65 /******************************************************************************/
66 /************************ Functions Declarations ******************************/
67 /******************************************************************************/
68 int max11205_iio_init(struct max11205_iio_dev **iio_dev,
70 int max11205_iio_remove(struct max11205_iio_dev *desc);
71 
72 #endif /* __IIO_MAX11205_H__ */
max11205_iio_dev::iio_dev
struct iio_device * iio_dev
Definition: iio_max11205.h:53
MAX11205_NEW_DATA_TIMEOUT
#define MAX11205_NEW_DATA_TIMEOUT
Definition: iio_max11205.c:48
max11205_get_data_raw
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
MAX11205_BIT_SCALE
#define MAX11205_BIT_SCALE
Definition: iio_max11205.c:47
timeout
uint32_t timeout
Definition: ad413x.c:49
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:50
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
scan_type::sign
char sign
Definition: iio_types.h:153
max11205_init_param
Definition: max11205.h:73
max11205_iio_dev::sampling_frequency
int32_t sampling_frequency
Definition: iio_max11205.h:55
IIO_VAL_FRACTIONAL_LOG2
@ IIO_VAL_FRACTIONAL_LOG2
Definition: iio_types.h:56
max11205_iio_dev_init_param::dev_id
enum max11205_dev_id dev_id
Definition: iio_max11205.h:62
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
max11205_iio_remove
int max11205_iio_remove(struct max11205_iio_dev *desc)
Free the resources allocated by max11205_iio_init().
Definition: iio_max11205.c:286
iio_channel::ch_type
enum iio_chan_type ch_type
Definition: iio_types.h:172
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
max11205_init
int max11205_init(struct max11205_dev **device, struct max11205_init_param init_param)
Initializes the communication peripheral.
Definition: max11205.c:85
max11205_iio_dev
Definition: iio_max11205.h:49
iio.h
Header file of iio.
iio_attribute::name
const char * name
Definition: iio_types.h:131
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
max11205_iio_init
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
max11205_iio_dev_init_param::max11205_dev_init
struct max11205_init_param * max11205_dev_init
Definition: iio_max11205.h:60
MAX11205A
@ MAX11205A
Definition: iio_max11205.h:45
max11205_dev
Definition: max11205.h:56
IIO_VOLTAGE
@ IIO_VOLTAGE
Definition: iio_types.h:65
max11205_iio_remove
int max11205_iio_remove(struct max11205_iio_dev *desc)
Free the resources allocated by max11205_iio_init().
Definition: iio_max11205.c:286
max11205_iio_dev::max11205_dev
struct max11205_dev * max11205_dev
Definition: iio_max11205.h:51
MAX11205A_OUT_DATA_RATE
#define MAX11205A_OUT_DATA_RATE
Definition: iio_max11205.c:49
max11205_iio_init
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
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
max11205_dev_id
max11205_dev_id
Definition: iio_max11205.h:44
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
iio_ch_info::type
enum iio_chan_type type
Definition: iio_types.h:109
iio_max11205.h
Header file of iio max11205 driver.
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
MAX11205B_OUT_DATA_RATE
#define MAX11205B_OUT_DATA_RATE
Definition: iio_max11205.c:50
max11205_remove
int max11205_remove(struct max11205_dev *dev)
Free memory allocated by max11205_init().
Definition: max11205.c:203
max11205_dev::vref_mv
uint32_t vref_mv
Definition: max11205.h:66
max11205.h
Implementation of max11205.h.
scan_type
Definition: iio_types.h:151
no_os_util.h
Header file of utility functions.
MAX11205B
@ MAX11205B
Definition: iio_max11205.h:46
errno.h
Error macro definition for ARM Compiler.
max11205_iio_dev_init_param
Definition: iio_max11205.h:58