struct ltc2983_init_param * ltc2983_desc_init_param
Definition: iio_ltc2983.h:53
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
struct ltc2983_sensor * sensors[20]
Definition: ltc2983.h:260
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
@ LTC2983_DIRECT_ADC
Definition: ltc2983.h:200
uint8_t max_channels_nr
Definition: ltc2983.h:264
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:120
@ IIO_SEPARATE
Definition: iio_types.h:119
struct iio_channel * channels
Definition: iio_types.h:254
Structure holding channel attributess.
Definition: iio_types.h:103
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
#define LTC2983_CHAN(_type, _index)
Definition: iio_ltc2983.c:49
int ltc2983_reg_write(struct ltc2983_desc *device, uint16_t reg_addr, uint8_t val)
Write raw register value.
Definition: ltc2983.c:182
int ltc2983_iio_remove(struct ltc2983_iio_desc *desc)
Free resources allocated by the init function.
Definition: iio_ltc2983.c:172
LTC2983 descriptor.
Definition: ltc2983.h:248
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
int ltc2983_chan_read_scale(struct ltc2983_desc *device, const int chan, uint32_t *val, uint32_t *val2)
Set scale of raw channel data / temperature.
Definition: ltc2983.c:406
int32_t(* debug_reg_read)(void *dev, uint32_t reg, uint32_t *readval)
Definition: iio_types.h:283
Header file of IIO LTC2983 driver.
int channel
Definition: iio_types.h:174
@ LTC2983_RSENSE
Definition: ltc2983.h:199
const char * name
Definition: iio_types.h:131
int ltc2983_iio_init(struct ltc2983_iio_desc **iio_dev, struct ltc2983_iio_desc_init_param *init_param)
Initializes the LTC2983 IIO driver.
Definition: iio_ltc2983.c:111
int ltc2983_iio_remove(struct ltc2983_iio_desc *)
Free resources allocated by the init function.
Definition: iio_ltc2983.c:172
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
@ IIO_VOLTAGE
Definition: iio_types.h:65
struct ltc2983_desc * ltc2983_dev
Definition: iio_ltc2983.h:48
int ltc2983_reg_read(struct ltc2983_desc *device, uint16_t reg_addr, uint8_t *val)
Read raw register value.
Definition: ltc2983.c:156
Definition: iio_ltc2983.h:52
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
uint32_t address
Definition: iio_types.h:113
uint8_t num_channels
Definition: ltc2983.h:258
uint16_t num_ch
Definition: iio_types.h:252
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
int ltc2983_init(struct ltc2983_desc **device, struct ltc2983_init_param *init_param)
Device and comm init function.
Definition: ltc2983.c:55
#define NULL
Definition: wrapper.h:64
struct iio_device * iio_dev
Definition: iio_ltc2983.h:49
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 ltc2983_iio_init(struct ltc2983_iio_desc **, struct ltc2983_iio_desc_init_param *)
Initializes the LTC2983 IIO driver.
Definition: iio_ltc2983.c:111
LTC2983 init param.
Definition: ltc2983.h:228
uint8_t type
Definition: ltc2983.h:274
int ltc2983_remove(struct ltc2983_desc *device)
Remove resources allocated by the init function.
Definition: ltc2983.c:130
Header file of utility functions.
int32_t no_os_sign_extend32(uint32_t value, int index)
Definition: iio_ltc2983.h:47
int ltc2983_chan_read_raw(struct ltc2983_desc *device, const int chan, uint32_t *val)
Read raw channel data / temperature.
Definition: ltc2983.c:354
Error macro definition for ARM Compiler.
ch_type
Definition: iio_axi_dac.c:523