no-OS
iio_adt75.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef IIO_ADT75_H
34 #define IIO_ADT75_H
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 #include "iio.h"
40 #include "adt75.h"
41 
42 /******************************************************************************/
43 /*************************** Types Declarations *******************************/
44 /******************************************************************************/
51  uint32_t active_channels;
52 };
53 
59 };
60 
61 /******************************************************************************/
62 /************************ Functions Declarations ******************************/
63 /******************************************************************************/
64 
66 int adt75_iio_init(struct adt75_iio_desc **, struct adt75_iio_init_param *);
67 
69 int adt75_iio_remove(struct adt75_iio_desc *);
70 
71 #endif
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
adt75_iio_desc::adt75_desc
struct adt75_desc * adt75_desc
Definition: iio_adt75.h:49
iio_device::channels
struct iio_channel * channels
Definition: iio_types.h:254
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:56
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
no_os_units.h
Header file of Units.
IIO_VAL_INT_PLUS_MICRO
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
adt75_remove
int adt75_remove(struct adt75_desc *desc)
Free the device descriptor.
Definition: adt75.c:160
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
ADT75_SIGN_BIT
#define ADT75_SIGN_BIT
Definition: adt75.h:54
adt75_iio_remove
int adt75_iio_remove(struct adt75_iio_desc *desc)
Free an iio descriptor.
Definition: iio_adt75.c:224
adt75_iio_desc::active_channels
uint32_t active_channels
Definition: iio_adt75.h:51
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:193
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:58
adt75_init
int adt75_init(struct adt75_desc **desc, struct adt75_init_param *init_param)
Initialize the device structure.
Definition: adt75.c:132
iio_attribute::name
const char * name
Definition: iio_types.h:131
iio_channel::name
const char * name
Definition: iio_types.h:170
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
adt75_iio_desc::iio_dev
struct iio_device * iio_dev
Definition: iio_adt75.h:50
iio_adt75.h
Header file of the IIO ADT75 Driver.
ADT75_TEMP_VALUE_REG
#define ADT75_TEMP_VALUE_REG
Definition: adt75.h:44
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
ADT75_TEMP_MASK
#define ADT75_TEMP_MASK
Definition: adt75.h:53
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:69
IIO_TEMP
@ IIO_TEMP
Definition: iio_types.h:69
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
adt75_iio_remove
int adt75_iio_remove(struct adt75_iio_desc *)
Free an iio descriptor.
Definition: iio_adt75.c:224
adt75.h
Header file of ADT75 Driver.
scan_type
Definition: iio_types.h:151
adt75_init_param
Initialization parameter for the device descriptor.
Definition: adt75.h:72
adt75_iio_init_param
Init parameter for the iio descriptor.
Definition: iio_adt75.h:57
no_os_util.h
Header file of utility functions.
adt75_iio_desc
Descriptor that stores an iio specific state.
Definition: iio_adt75.h:48
no_os_sign_extend32
int32_t no_os_sign_extend32(uint32_t value, int index)
adt75_desc
ADT75 device descriptor.
Definition: adt75.h:79
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:193