#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:122
@ IIO_VAL_INT
Definition: iio_types.h:56
Struct describing the scan type.
Definition: iio_types.h:174
char sign
Definition: iio_types.h:159
struct adt75_desc * adt75_desc
Definition: iio_adt75.h:55
struct iio_channel * channels
Definition: iio_types.h:260
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
Structure holding channel attributess.
Definition: iio_types.h:109
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:57
int adt75_remove(struct adt75_desc *desc)
Free the device descriptor.
Definition: adt75.c:166
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
#define ADT75_SIGN_BIT
Definition: adt75.h:60
int adt75_iio_remove(struct adt75_iio_desc *desc)
Free an iio descriptor.
Definition: iio_adt75.c:230
uint32_t active_channels
Definition: iio_adt75.h:57
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
struct adt75_init_param * adt75_init_param
Definition: iio_adt75.h:64
int adt75_init(struct adt75_desc **desc, struct adt75_init_param *init_param)
Initialize the device structure.
Definition: adt75.c:138
const char * name
Definition: iio_types.h:137
const char * name
Definition: iio_types.h:176
Structure holding pointers to show and store functions.
Definition: iio_types.h:135
struct iio_device * iio_dev
Definition: iio_adt75.h:56
Header file of the IIO ADT75 Driver.
#define ADT75_TEMP_VALUE_REG
Definition: adt75.h:50
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:667
#define ADT75_TEMP_MASK
Definition: adt75.h:59
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
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
Definition: iio_types.h:75
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
Structure holding channels and attributes of a device.
Definition: iio_types.h:253
int adt75_iio_remove(struct adt75_iio_desc *)
Free an iio descriptor.
Definition: iio_adt75.c:230
Header file of ADT75 Driver.
Definition: iio_types.h:157
Initialization parameter for the device descriptor.
Definition: adt75.h:78
Init parameter for the iio descriptor.
Definition: iio_adt75.h:63
Header file of utility functions.
Descriptor that stores an iio specific state.
Definition: iio_adt75.h:54
int32_t no_os_sign_extend32(uint32_t value, int index)
ADT75 device descriptor.
Definition: adt75.h:85
int adt75_iio_init(struct adt75_iio_desc **, struct adt75_iio_init_param *)
Initializes the ADT75 IIO descriptor.
Definition: iio_adt75.c:199