no-OS
iio_max11205.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __IIO_MAX11205_H__
40 #define __IIO_MAX11205_H__
41 
42 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 #include "iio.h"
46 
47 /******************************************************************************/
48 /*************************** Types Declarations *******************************/
49 /******************************************************************************/
53 };
54 
62 };
63 
69 };
70 
71 /******************************************************************************/
72 /************************ Functions Declarations ******************************/
73 /******************************************************************************/
74 int max11205_iio_init(struct max11205_iio_dev **iio_dev,
76 int max11205_iio_remove(struct max11205_iio_dev *desc);
77 
78 #endif /* __IIO_MAX11205_H__ */
max11205_iio_dev::iio_dev
struct iio_device * iio_dev
Definition: iio_max11205.h:59
MAX11205_NEW_DATA_TIMEOUT
#define MAX11205_NEW_DATA_TIMEOUT
Definition: iio_max11205.c:54
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:173
MAX11205_BIT_SCALE
#define MAX11205_BIT_SCALE
Definition: iio_max11205.c:53
timeout
uint32_t timeout
Definition: ad413x.c:55
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:121
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:56
iio_channel
Struct describing the scan type.
Definition: iio_types.h:173
scan_type::sign
char sign
Definition: iio_types.h:158
max11205_init_param
Definition: max11205.h:79
max11205_iio_dev::sampling_frequency
int32_t sampling_frequency
Definition: iio_max11205.h:61
IIO_VAL_FRACTIONAL_LOG2
@ IIO_VAL_FRACTIONAL_LOG2
Definition: iio_types.h:62
max11205_iio_dev_init_param::dev_id
enum max11205_dev_id dev_id
Definition: iio_max11205.h:68
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:108
max11205_iio_remove
int max11205_iio_remove(struct max11205_iio_dev *desc)
Free the resources allocated by max11205_iio_init().
Definition: iio_max11205.c:292
iio_channel::ch_type
enum iio_chan_type ch_type
Definition: iio_types.h:177
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
max11205_init
int max11205_init(struct max11205_dev **device, struct max11205_init_param init_param)
Initializes the communication peripheral.
Definition: max11205.c:91
max11205_iio_dev
Definition: iio_max11205.h:55
iio.h
Header file of iio.
iio_attribute::name
const char * name
Definition: iio_types.h:136
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:134
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:258
max11205_iio_dev_init_param::max11205_dev_init
struct max11205_init_param * max11205_dev_init
Definition: iio_max11205.h:66
MAX11205A
@ MAX11205A
Definition: iio_max11205.h:51
max11205_dev
Definition: max11205.h:62
IIO_VOLTAGE
@ IIO_VOLTAGE
Definition: iio_types.h:71
max11205_iio_remove
int max11205_iio_remove(struct max11205_iio_dev *desc)
Free the resources allocated by max11205_iio_init().
Definition: iio_max11205.c:292
max11205_iio_dev::max11205_dev
struct max11205_dev * max11205_dev
Definition: iio_max11205.h:57
MAX11205A_OUT_DATA_RATE
#define MAX11205A_OUT_DATA_RATE
Definition: iio_max11205.c:55
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:258
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
max11205_dev_id
max11205_dev_id
Definition: iio_max11205.h:50
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_ch_info::type
enum iio_chan_type type
Definition: iio_types.h:114
iio_max11205.h
Header file of iio max11205 driver.
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:252
MAX11205B_OUT_DATA_RATE
#define MAX11205B_OUT_DATA_RATE
Definition: iio_max11205.c:56
max11205_remove
int max11205_remove(struct max11205_dev *dev)
Free memory allocated by max11205_init().
Definition: max11205.c:209
max11205_dev::vref_mv
uint32_t vref_mv
Definition: max11205.h:72
max11205.h
Implementation of max11205.h.
scan_type
Definition: iio_types.h:156
no_os_util.h
Header file of utility functions.
MAX11205B
@ MAX11205B
Definition: iio_max11205.h:52
errno.h
Error macro definition for ARM Compiler.
max11205_iio_dev_init_param
Definition: iio_max11205.h:64