Go to the documentation of this file.
33 #ifndef IIO_MAX14916_H
34 #define IIO_MAX14916_H
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
int max149x6_reg_read(struct max149x6_desc *desc, uint32_t addr, uint32_t *val)
Read the value of a device register.
Definition: max149x6-base.c:126
@ IIO_VAL_INT
Definition: iio_types.h:50
Struct describing the scan type.
Definition: iio_types.h:168
Initialization parameter for the MAX14916 IIO descriptor.
Definition: iio_max14916.h:53
Device descriptor for MAX149X6.
Definition: max149x6-base.h:67
struct iio_channel * channels
Definition: iio_types.h:254
Structure holding channel attributess.
Definition: iio_types.h:103
int max14916_init(struct max149x6_desc **desc, struct max149x6_init_param *param)
Initialize and configure the MAX14916 device.
Definition: max14916.c:203
struct iio_device * iio_dev
Definition: iio_max14916.h:47
#define MAX14916_CHANNEL(_addr)
Definition: iio_max14916.c:43
struct max149x6_desc * max14916_desc
Definition: iio_max14916.h:46
int max14916_iio_init(struct max14916_iio_desc **iio_desc, struct max14916_iio_desc_init_param *init_param)
Initializes the MAX14916 IIO descriptor.
Definition: iio_max14916.c:239
int max14916_ch_set(struct max149x6_desc *desc, uint32_t ch, uint32_t val)
Write the (logic) state of a channel (on/off).
Definition: max14916.c:70
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
int32_t(* debug_reg_read)(void *dev, uint32_t reg, uint32_t *readval)
Definition: iio_types.h:283
bool ch_out
Definition: iio_types.h:188
struct max149x6_init_param * max14916_init_param
Definition: iio_max14916.h:54
int max149x6_reg_write(struct max149x6_desc *desc, uint32_t addr, uint32_t val)
Write the value of a device register.
Definition: max149x6-base.c:98
MAX14916 specific IIO descriptor.
Definition: iio_max14916.h:45
const char * name
Definition: iio_types.h:131
bool ch_enable[MAX14916_CHANNELS]
Definition: iio_max14916.h:55
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
Header file of IIO MAX14916 Driver.
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
#define MAX14916_CHANNELS
Definition: max14916.h:43
int max14916_iio_init(struct max14916_iio_desc **, struct max14916_iio_desc_init_param *)
Initializes the MAX14916 IIO descriptor.
Definition: iio_max14916.c:239
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
struct iio_attribute * attributes
Definition: iio_types.h:186
Header file for iio_types.
int max14916_ch_get(struct max149x6_desc *desc, uint32_t ch, uint32_t *val)
Read the high-side state of a channel's switch.
Definition: max14916.c:47
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
#define NULL
Definition: wrapper.h:64
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 max14916_iio_remove(struct max14916_iio_desc *)
Free resources allocated by the init function.
Definition: iio_max14916.c:278
int max14916_remove(struct max149x6_desc *desc)
Free the resources allocated during init.
Definition: max14916.c:315
int max14916_iio_setup_channels(struct max14916_iio_desc *desc, bool *ch_enable)
Definition: iio_max14916.c:176
Initialization parameter for the MAX149X6 device.
Definition: max149x6-base.h:54
Header file of utility functions.
Header file of MAX14916 Driver.
int max14916_iio_remove(struct max14916_iio_desc *iio_desc)
Free resources allocated by the init function.
Definition: iio_max14916.c:278