no-OS
iio_adt75.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef IIO_ADT75_H
40 #define IIO_ADT75_H
41 
42 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 #include "iio.h"
46 #include "adt75.h"
47 
48 /******************************************************************************/
49 /*************************** Types Declarations *******************************/
50 /******************************************************************************/
57  uint32_t active_channels;
58 };
59 
65 };
66 
67 /******************************************************************************/
68 /************************ Functions Declarations ******************************/
69 /******************************************************************************/
70 
72 int adt75_iio_init(struct adt75_iio_desc **, struct adt75_iio_init_param *);
73 
75 int adt75_iio_remove(struct adt75_iio_desc *);
76 
77 #endif
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:122
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:56
iio_channel
Struct describing the scan type.
Definition: iio_types.h:174
scan_type::sign
char sign
Definition: iio_types.h:159
adt75_iio_desc::adt75_desc
struct adt75_desc * adt75_desc
Definition: iio_adt75.h:55
iio_device::channels
struct iio_channel * channels
Definition: iio_types.h:260
adt75_reg_read
int adt75_reg_read(struct adt75_desc *desc, uint32_t addr, uint16_t *val)
Read the raw value of a register.
Definition: adt75.c:62
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:109
no_os_units.h
Header file of Units.
IIO_VAL_INT_PLUS_MICRO
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:57
adt75_remove
int adt75_remove(struct adt75_desc *desc)
Free the device descriptor.
Definition: adt75.c:166
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
ADT75_SIGN_BIT
#define ADT75_SIGN_BIT
Definition: adt75.h:60
adt75_iio_remove
int adt75_iio_remove(struct adt75_iio_desc *desc)
Free an iio descriptor.
Definition: iio_adt75.c:230
adt75_iio_desc::active_channels
uint32_t active_channels
Definition: iio_adt75.h:57
adt75_iio_init
int adt75_iio_init(struct adt75_iio_desc **desc, struct adt75_iio_init_param *init_param)
Initializes the ADT75 IIO descriptor.
Definition: iio_adt75.c:199
iio.h
Header file of iio.
no_os_error.h
Error codes definition.
adt75_iio_init_param::adt75_init_param
struct adt75_init_param * adt75_init_param
Definition: iio_adt75.h:64
adt75_init
int adt75_init(struct adt75_desc **desc, struct adt75_init_param *init_param)
Initialize the device structure.
Definition: adt75.c:138
iio_attribute::name
const char * name
Definition: iio_types.h:137
iio_channel::name
const char * name
Definition: iio_types.h:176
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:135
adt75_iio_desc::iio_dev
struct iio_device * iio_dev
Definition: iio_adt75.h:56
iio_adt75.h
Header file of the IIO ADT75 Driver.
ADT75_TEMP_VALUE_REG
#define ADT75_TEMP_VALUE_REG
Definition: adt75.h:50
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:667
ADT75_TEMP_MASK
#define ADT75_TEMP_MASK
Definition: adt75.h:59
no_os_field_get
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
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_TEMP
@ IIO_TEMP
Definition: iio_types.h:75
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:253
adt75_iio_remove
int adt75_iio_remove(struct adt75_iio_desc *)
Free an iio descriptor.
Definition: iio_adt75.c:230
adt75.h
Header file of ADT75 Driver.
scan_type
Definition: iio_types.h:157
adt75_init_param
Initialization parameter for the device descriptor.
Definition: adt75.h:78
adt75_iio_init_param
Init parameter for the iio descriptor.
Definition: iio_adt75.h:63
no_os_util.h
Header file of utility functions.
adt75_iio_desc
Descriptor that stores an iio specific state.
Definition: iio_adt75.h:54
no_os_sign_extend32
int32_t no_os_sign_extend32(uint32_t value, int index)
adt75_desc
ADT75 device descriptor.
Definition: adt75.h:85
adt75_iio_init
int adt75_iio_init(struct adt75_iio_desc **, struct adt75_iio_init_param *)
Initializes the ADT75 IIO descriptor.
Definition: iio_adt75.c:199