Go to the documentation of this file.
33 #ifndef IIO_MAX22190_H
34 #define IIO_MAX22190_H
@ MAX22190_FAULT2_RFDIOE
Definition: max22190.h:118
#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
@ MAX22190_FAULT1_24VLE
Definition: max22190.h:111
int max22190_reg_read(struct max22190_desc *desc, uint32_t addr, uint32_t *val)
Register read function for MAX22190.
Definition: max22190.c:332
@ MAX22190_FAULT2_FAULT8CKE
Definition: max22190.h:120
@ MAX22190_IIO_FAULT1
Definition: iio_max22190.h:43
Definition: max22190.h:88
@ MAX22190_FAULT1_WBGE
Definition: max22190.h:109
Structure holding channel attributess.
Definition: iio_types.h:103
int max22190_fault_enable_get(struct max22190_desc *desc, enum max22190_fault_enable fault_enable, bool *enabled)
Get fault enable from the fault registers.
Definition: max22190.c:225
int max22190_fault_enable_set(struct max22190_desc *desc, enum max22190_fault_enable fault_enable, bool enabled)
Set fault enable in the fault registers.
Definition: max22190.c:273
struct iio_device * iio_dev
Definition: iio_max22190.h:52
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 NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
#define MAX22190_DIGITAL_INPUT_REG
Definition: max22190.h:47
#define MAX22190_CHANNEL(_addr)
Definition: iio_max22190.c:208
int max22190_iio_init(struct max22190_iio_desc **, struct max22190_iio_desc_init_param *)
Initializes the MAX22190 IIO Descriptor.
Definition: iio_max22190.c:546
struct max22190_init_param * max22190_init_param
Definition: iio_max22190.h:59
@ IIO_SHARED_BY_ALL
Definition: iio_types.h:122
@ MAX22190_FAULT1_ALRMT1E
Definition: max22190.h:112
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
max22190_iio_attr
Definition: iio_max22190.h:42
const char * name
Definition: iio_types.h:131
@ MAX22190_FAULT2_RFWBSE
Definition: max22190.h:115
int max22190_reg_update(struct max22190_desc *desc, uint32_t addr, uint32_t mask, uint32_t val)
Register update function for MAX22190.
Definition: max22190.c:405
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
int max22190_init(struct max22190_desc **desc, struct max22190_init_param *param)
MAX22190 Initialization function.
Definition: max22190.c:427
struct max22190_desc * max22190_desc
Definition: iio_max22190.h:51
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
@ MAX22190_FAULT1_ALRMT2E
Definition: max22190.h:113
#define MAX22190_DELAY_MASK
Definition: max22190.h:60
@ MAX22190_FAULT2_RFDISE
Definition: max22190.h:117
#define MAX22190_FAULT1_REG
Definition: max22190.h:48
@ MAX22190_FAULT1_FAULT2E
Definition: max22190.h:114
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
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
MAX22190 IIO initalization parameter.
Definition: iio_max22190.h:58
int max22190_reg_write(struct max22190_desc *desc, uint32_t addr, uint32_t val)
Register write function for MAX22190.
Definition: max22190.c:375
Header file for iio_types.
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
int max22190_iio_remove(struct max22190_iio_desc *iio_desc)
Free the resources allocated by max22190_iio_init().
Definition: iio_max22190.c:580
#define MAX22190_FAULT2_REG
Definition: max22190.h:52
#define NULL
Definition: wrapper.h:64
@ MAX22190_FAULT2_RFWBOE
Definition: max22190.h:116
Definition: max22190.h:82
#define MAX22190_FILTER_IN_REG(x)
Definition: max22190.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
Header file of MAX22190 IIO Driver.
MAX22190 IIO descriptor.
Definition: iio_max22190.h:50
#define MAX22190_FBP_MASK
Definition: max22190.h:61
int max22190_iio_remove(struct max22190_iio_desc *)
Free the resources allocated by max22190_iio_init().
Definition: iio_max22190.c:580
@ MAX22190_IIO_FAULT2
Definition: iio_max22190.h:44
Header file of MAX22190 Driver.
Header file of utility functions.
@ MAX22190_FAULT2_OTSHDNE
Definition: max22190.h:119
@ MAX22190_FAULT1_24VME
Definition: max22190.h:110
#define MAX22190_CH_STATE_MASK(x)
Definition: max22190.h:59
int max22190_remove(struct max22190_desc *desc)
Free the resources allocated by initialization.
Definition: max22190.c:485
int max22190_iio_init(struct max22190_iio_desc **iio_desc, struct max22190_iio_desc_init_param *init_param)
Initializes the MAX22190 IIO Descriptor.
Definition: iio_max22190.c:546