no-OS
iio_max31855.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef IIO_MAX31855_H
35 #define IIO_MAX31855_H
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include "iio.h"
42 
43 /******************************************************************************/
44 /*************************** Types Declarations *******************************/
45 /******************************************************************************/
46 
50  uint32_t active_channels;
52 };
53 
54 /******************************************************************************/
55 /************************ Functions Declarations ******************************/
56 /******************************************************************************/
57 
60 };
61 
65 
66 #endif
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
max31855_iio_dev
Definition: iio_max31855.h:47
max31855_iio_dev::no_of_active_channels
uint8_t no_of_active_channels
Definition: iio_max31855.h:51
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:50
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
max31855_iio_dev_init_param
Definition: iio_max31855.h:58
scan_type::sign
char sign
Definition: iio_types.h:153
NO_OS_GENMASK
#define NO_OS_GENMASK(h, l)
Definition: no_os_util.h:82
max31855.h
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
IIO_VAL_INT_PLUS_MICRO
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
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.h
Header file of iio.
max31855_iio_dev_init_param::max31855_dev_init
struct max31855_init_param * max31855_dev_init
Definition: iio_max31855.h:59
max31855_dev
MAX31855 descriptor.
Definition: max31855.h:97
iio_attribute::name
const char * name
Definition: iio_types.h:131
max31855_read_raw
int max31855_read_raw(struct max31855_dev *device, uint32_t *val)
Read raw register value.
Definition: max31855.c:105
iio_channel::name
const char * name
Definition: iio_types.h:170
max31855_iio_remove
int max31855_iio_remove(struct max31855_iio_dev *)
Free resources allocated by the init function.
Definition: iio_max31855.c:165
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
max31855_iio_init
int max31855_iio_init(struct max31855_iio_dev **, struct max31855_iio_dev_init_param *)
Initializes the MAX31855 IIO driver.
Definition: iio_max31855.c:132
max31855_init_param
MAX31855 comm init param.
Definition: max31855.h:68
IIO_MOD_TEMP_AMBIENT
@ IIO_MOD_TEMP_AMBIENT
Definition: iio_types.h:93
max31855_iio_dev::active_channels
uint32_t active_channels
Definition: iio_max31855.h:50
max31855_iio_dev::max31855_desc
struct max31855_dev * max31855_desc
Definition: iio_max31855.h:48
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:661
max31855_iio_dev::iio_dev
struct iio_device * iio_dev
Definition: iio_max31855.h:49
iio_ch_info::address
uint32_t address
Definition: iio_types.h:113
no_os_field_get
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
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_TEMP
@ IIO_TEMP
Definition: iio_types.h:69
iio_ch_info::type
enum iio_chan_type type
Definition: iio_types.h:109
no_os_hweight8
unsigned int no_os_hweight8(uint8_t word)
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
max31855_iio_remove
int max31855_iio_remove(struct max31855_iio_dev *desc)
Free resources allocated by the init function.
Definition: iio_max31855.c:165
scan_type
Definition: iio_types.h:151
no_os_util.h
Header file of utility functions.
no_os_sign_extend32
int32_t no_os_sign_extend32(uint32_t value, int index)
max31855_iio_init
int max31855_iio_init(struct max31855_iio_dev **iio_dev, struct max31855_iio_dev_init_param *init_param)
Initializes the MAX31855 IIO driver.
Definition: iio_max31855.c:132
max31855_init
int max31855_init(struct max31855_dev **device, struct max31855_init_param *init_param)
Device and comm init function.
Definition: max31855.c:57
errno.h
Error macro definition for ARM Compiler.
max31855_remove
int max31855_remove(struct max31855_dev *device)
Remove resources allocated by the init function.
Definition: max31855.c:84
iio_max31855.h
Header file of IIO MAX31855 driver.