no-OS
iio_max22190.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef IIO_MAX22190_H
34 #define IIO_MAX22190_H
35 
36 #include <stdint.h>
37 #include <stdbool.h>
38 #include "iio.h"
39 #include "iio_types.h"
40 #include "max22190.h"
41 
45 };
46 
53 };
54 
60 };
61 
65 
68 
69 #endif /* IIO_MAX22190_H */
MAX22190_FAULT2_RFDIOE
@ MAX22190_FAULT2_RFDIOE
Definition: max22190.h:118
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:50
iio_channel
Struct describing the scan type.
Definition: iio_types.h:168
MAX22190_FAULT1_24VLE
@ MAX22190_FAULT1_24VLE
Definition: max22190.h:111
max22190_reg_read
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
@ MAX22190_FAULT2_FAULT8CKE
Definition: max22190.h:120
MAX22190_IIO_FAULT1
@ MAX22190_IIO_FAULT1
Definition: iio_max22190.h:43
max22190_desc
Definition: max22190.h:88
iio_desc
Definition: iio.c:204
MAX22190_FAULT1_WBGE
@ MAX22190_FAULT1_WBGE
Definition: max22190.h:109
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
no_os_units.h
Header file of Units.
max22190_fault_enable_get
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
max22190_fault_enable_set
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
max22190_iio_desc::iio_dev
struct iio_device * iio_dev
Definition: iio_max22190.h:52
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
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
MAX22190_DIGITAL_INPUT_REG
#define MAX22190_DIGITAL_INPUT_REG
Definition: max22190.h:47
MAX22190_CHANNEL
#define MAX22190_CHANNEL(_addr)
Definition: iio_max22190.c:208
max22190_iio_init
int max22190_iio_init(struct max22190_iio_desc **, struct max22190_iio_desc_init_param *)
Initializes the MAX22190 IIO Descriptor.
Definition: iio_max22190.c:546
max22190_iio_desc_init_param::max22190_init_param
struct max22190_init_param * max22190_init_param
Definition: iio_max22190.h:59
IIO_SHARED_BY_ALL
@ IIO_SHARED_BY_ALL
Definition: iio_types.h:122
MAX22190_FAULT1_ALRMT1E
@ MAX22190_FAULT1_ALRMT1E
Definition: max22190.h:112
no_os_field_prep
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
iio.h
Header file of iio.
no_os_error.h
Error codes definition.
max22190_iio_attr
max22190_iio_attr
Definition: iio_max22190.h:42
iio_attribute::name
const char * name
Definition: iio_types.h:131
MAX22190_FAULT2_RFWBSE
@ MAX22190_FAULT2_RFWBSE
Definition: max22190.h:115
max22190_reg_update
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
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
max22190_init
int max22190_init(struct max22190_desc **desc, struct max22190_init_param *param)
MAX22190 Initialization function.
Definition: max22190.c:427
max22190_iio_desc::max22190_desc
struct max22190_desc * max22190_desc
Definition: iio_max22190.h:51
iio_parse_value
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:610
MAX22190_FAULT1_ALRMT2E
@ MAX22190_FAULT1_ALRMT2E
Definition: max22190.h:113
MAX22190_DELAY_MASK
#define MAX22190_DELAY_MASK
Definition: max22190.h:60
MAX22190_FAULT2_RFDISE
@ MAX22190_FAULT2_RFDISE
Definition: max22190.h:117
MAX22190_FAULT1_REG
#define MAX22190_FAULT1_REG
Definition: max22190.h:48
MAX22190_FAULT1_FAULT2E
@ MAX22190_FAULT1_FAULT2E
Definition: max22190.h:114
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
no_os_field_get
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
max22190_iio_desc_init_param
MAX22190 IIO initalization parameter.
Definition: iio_max22190.h:58
max22190_reg_write
int max22190_reg_write(struct max22190_desc *desc, uint32_t addr, uint32_t val)
Register write function for MAX22190.
Definition: max22190.c:375
iio_types.h
Header file for iio_types.
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
max22190_iio_remove
int max22190_iio_remove(struct max22190_iio_desc *iio_desc)
Free the resources allocated by max22190_iio_init().
Definition: iio_max22190.c:580
MAX22190_FAULT2_REG
#define MAX22190_FAULT2_REG
Definition: max22190.h:52
NULL
#define NULL
Definition: wrapper.h:64
MAX22190_FAULT2_RFWBOE
@ MAX22190_FAULT2_RFWBOE
Definition: max22190.h:116
max22190_init_param
Definition: max22190.h:82
MAX22190_FILTER_IN_REG
#define MAX22190_FILTER_IN_REG(x)
Definition: max22190.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
iio_max22190.h
Header file of MAX22190 IIO Driver.
max22190_iio_desc
MAX22190 IIO descriptor.
Definition: iio_max22190.h:50
MAX22190_FBP_MASK
#define MAX22190_FBP_MASK
Definition: max22190.h:61
max22190_iio_remove
int max22190_iio_remove(struct max22190_iio_desc *)
Free the resources allocated by max22190_iio_init().
Definition: iio_max22190.c:580
MAX22190_IIO_FAULT2
@ MAX22190_IIO_FAULT2
Definition: iio_max22190.h:44
max22190.h
Header file of MAX22190 Driver.
no_os_util.h
Header file of utility functions.
MAX22190_FAULT2_OTSHDNE
@ MAX22190_FAULT2_OTSHDNE
Definition: max22190.h:119
MAX22190_FAULT1_24VME
@ MAX22190_FAULT1_24VME
Definition: max22190.h:110
MAX22190_CH_STATE_MASK
#define MAX22190_CH_STATE_MASK(x)
Definition: max22190.h:59
max22190_remove
int max22190_remove(struct max22190_desc *desc)
Free the resources allocated by initialization.
Definition: max22190.c:485
max22190_iio_init
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