#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
char sign
Definition: iio_types.h:153
struct adt75_desc * adt75_desc
Definition: iio_adt75.h:49
struct iio_channel * channels
Definition: iio_types.h:254
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
Structure holding channel attributess.
Definition: iio_types.h:103
@ IIO_VAL_INT_PLUS_MICRO
Definition: iio_types.h:51
int adt75_remove(struct adt75_desc *desc)
Free the device descriptor.
Definition: adt75.c:160
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
#define ADT75_SIGN_BIT
Definition: adt75.h:54
int adt75_iio_remove(struct adt75_iio_desc *desc)
Free an iio descriptor.
Definition: iio_adt75.c:224
uint32_t active_channels
Definition: iio_adt75.h:51
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
struct adt75_init_param * adt75_init_param
Definition: iio_adt75.h:58
int adt75_init(struct adt75_desc **desc, struct adt75_init_param *init_param)
Initialize the device structure.
Definition: adt75.c:132
const char * name
Definition: iio_types.h:131
const char * name
Definition: iio_types.h:170
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
struct iio_device * iio_dev
Definition: iio_adt75.h:50
Header file of the IIO ADT75 Driver.
#define ADT75_TEMP_VALUE_REG
Definition: adt75.h:44
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
#define ADT75_TEMP_MASK
Definition: adt75.h:53
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:69
@ IIO_TEMP
Definition: iio_types.h:69
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
int adt75_iio_remove(struct adt75_iio_desc *)
Free an iio descriptor.
Definition: iio_adt75.c:224
Header file of ADT75 Driver.
Definition: iio_types.h:151
Initialization parameter for the device descriptor.
Definition: adt75.h:72
Init parameter for the iio descriptor.
Definition: iio_adt75.h:57
Header file of utility functions.
Descriptor that stores an iio specific state.
Definition: iio_adt75.h:48
int32_t no_os_sign_extend32(uint32_t value, int index)
ADT75 device descriptor.
Definition: adt75.h:79
int adt75_iio_init(struct adt75_iio_desc **, struct adt75_iio_init_param *)
Initializes the ADT75 IIO descriptor.
Definition: iio_adt75.c:193