no-OS
iio_ltc2983.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef IIO_LTC2983_H
35 #define IIO_LTC2983_H
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include "iio.h"
42 
43 /******************************************************************************/
44 /*************************** Types Declarations *******************************/
45 /******************************************************************************/
46 
50 };
51 
54 };
55 
56 /******************************************************************************/
57 /************************ Functions Declarations ******************************/
58 /******************************************************************************/
59 
63 
64 #endif
ltc2983_iio_desc_init_param::ltc2983_desc_init_param
struct ltc2983_init_param * ltc2983_desc_init_param
Definition: iio_ltc2983.h:53
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
ltc2983_desc::sensors
struct ltc2983_sensor * sensors[20]
Definition: ltc2983.h:260
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:50
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
LTC2983_DIRECT_ADC
@ LTC2983_DIRECT_ADC
Definition: ltc2983.h:200
ltc2983_desc::max_channels_nr
uint8_t max_channels_nr
Definition: ltc2983.h:264
IIO_SHARED_BY_TYPE
@ IIO_SHARED_BY_TYPE
Definition: iio_types.h:120
IIO_SEPARATE
@ IIO_SEPARATE
Definition: iio_types.h:119
iio_device::channels
struct iio_channel * channels
Definition: iio_types.h:254
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
IIO_VAL_FRACTIONAL
@ IIO_VAL_FRACTIONAL
Definition: iio_types.h:55
LTC2983_CHAN
#define LTC2983_CHAN(_type, _index)
Definition: iio_ltc2983.c:49
ltc2983_reg_write
int ltc2983_reg_write(struct ltc2983_desc *device, uint16_t reg_addr, uint8_t val)
Write raw register value.
Definition: ltc2983.c:182
ltc2983_iio_remove
int ltc2983_iio_remove(struct ltc2983_iio_desc *desc)
Free resources allocated by the init function.
Definition: iio_ltc2983.c:172
ltc2983_desc
LTC2983 descriptor.
Definition: ltc2983.h:248
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
ltc2983_chan_read_scale
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
iio_device::debug_reg_read
int32_t(* debug_reg_read)(void *dev, uint32_t reg, uint32_t *readval)
Definition: iio_types.h:283
iio_chan_type
IIO channel types.
iio_ltc2983.h
Header file of IIO LTC2983 driver.
iio_channel::channel
int channel
Definition: iio_types.h:174
iio.h
Header file of iio.
LTC2983_RSENSE
@ LTC2983_RSENSE
Definition: ltc2983.h:199
iio_attribute::name
const char * name
Definition: iio_types.h:131
ltc2983_iio_init
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
ltc2983_iio_remove
int ltc2983_iio_remove(struct ltc2983_iio_desc *)
Free resources allocated by the init function.
Definition: iio_ltc2983.c:172
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
IIO_VOLTAGE
@ IIO_VOLTAGE
Definition: iio_types.h:65
ltc2983_iio_desc::ltc2983_dev
struct ltc2983_desc * ltc2983_dev
Definition: iio_ltc2983.h:48
ltc2983_reg_read
int ltc2983_reg_read(struct ltc2983_desc *device, uint16_t reg_addr, uint8_t *val)
Read raw register value.
Definition: ltc2983.c:156
ltc2983_iio_desc_init_param
Definition: iio_ltc2983.h:52
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:661
iio_ch_info::address
uint32_t address
Definition: iio_types.h:113
ltc2983_desc::num_channels
uint8_t num_channels
Definition: ltc2983.h:258
iio_device::num_ch
uint16_t num_ch
Definition: iio_types.h:252
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
ltc2983_init
int ltc2983_init(struct ltc2983_desc **device, struct ltc2983_init_param *init_param)
Device and comm init function.
Definition: ltc2983.c:55
NULL
#define NULL
Definition: wrapper.h:64
ltc2983_iio_desc::iio_dev
struct iio_device * iio_dev
Definition: iio_ltc2983.h:49
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
ltc2983.h
ltc2983_iio_init
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
LTC2983 init param.
Definition: ltc2983.h:228
ltc2983_sensor::type
uint8_t type
Definition: ltc2983.h:274
ltc2983_remove
int ltc2983_remove(struct ltc2983_desc *device)
Remove resources allocated by the init function.
Definition: ltc2983.c:130
no_os_util.h
Header file of utility functions.
no_os_sign_extend32
int32_t no_os_sign_extend32(uint32_t value, int index)
ltc2983_iio_desc
Definition: iio_ltc2983.h:47
ltc2983_chan_read_raw
int ltc2983_chan_read_raw(struct ltc2983_desc *device, const int chan, uint32_t *val)
Read raw channel data / temperature.
Definition: ltc2983.c:354
errno.h
Error macro definition for ARM Compiler.
ch_type
ch_type
Definition: iio_axi_dac.c:523