Go to the documentation of this file.
44 #define SWIOT_CHANNELS 4
46 static const char *
const ad74413r_function_available[] = {
enum swiot_mode mode
Definition: swiot.h:101
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
struct iio_device * iio_dev
Definition: swiot.h:81
struct ad74413r_iio_desc * ad74413r
Definition: swiot.h:78
@ IIO_VAL_INT
Definition: iio_types.h:50
struct ad74413r_iio_desc * ad74413r
Definition: swiot.h:97
bool mode_change
Definition: swiot.h:86
bool enabled
Definition: ad74413r.h:314
Diagnostics channel state.
Definition: iio_ad74413r.h:50
enum swiot_device device
Definition: swiot.h:73
@ AD74413R_CURRENT_OUT
Definition: ad74413r.h:196
struct max149x6_iio_desc * max14906
Definition: swiot.h:79
Structure holding channel attributess.
Definition: iio_types.h:103
int32_t no_os_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: no_os_gpio.c:221
struct ad74413r_channel_config ad74413r_configs[AD74413R_N_CHANNELS]
Definition: swiot.h:91
Header file of Delay functions.
#define AD74413R_N_DIAG_CHANNELS
Definition: ad74413r.h:42
bool enabled
Definition: iio_ad74413r.h:51
uint32_t active_channels
Definition: swiot.h:82
Definition: ad9361_util.h:69
struct ad74413r_diag_channel_config ad74413r_diag_configs[AD74413R_N_DIAG_CHANNELS]
Definition: swiot.h:92
#define AD74413R_N_CHANNELS
Definition: ad74413r.h:41
@ AD74413R_CURRENT_IN_EXT_HART
Definition: ad74413r.h:203
uint8_t no_of_active_channels
Definition: swiot.h:83
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
int32_t no_os_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: no_os_gpio.c:124
enum ad7616_mode mode
Definition: ad7616.h:226
@ SWIOT_CONFIG
Definition: swiot.h:67
@ AD74413R_VOLTAGE_OUT
Definition: ad74413r.h:195
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
@ SWIOT_DEV_CNT
Definition: swiot.h:63
@ MAX14906_HIGH_Z
Definition: max14906.h:87
Header file of MAX14906 IIO Driver.
const char * name
Definition: iio_types.h:131
struct no_os_gpio_desc * identify_gpio
Definition: swiot.h:88
#define SWIOT_CHANNELS
Definition: swiot.h:44
enum ad74413r_op_mode function
Definition: ad74413r.h:315
bool enabled
Definition: swiot.h:72
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
uint32_t function
Definition: swiot.h:74
struct adin1110_desc * adin1110
Definition: swiot.h:80
Descriptor that stores a iio specific state.
Definition: iio_ad74413r.h:75
enum ad74413r_diag_mode function
Definition: iio_ad74413r.h:52
swiot_device
Definition: swiot.h:60
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
Header file of AD74413r Driver.
@ AD74413R_DIGITAL_INPUT
Definition: ad74413r.h:201
bool enabled
Definition: iio_max14906.h:47
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
enum swiot_mode mode
Definition: swiot.h:85
int swiot_iio_remove(struct swiot_iio_desc *swiot_desc)
Free the swiot iio descriptor.
Definition: swiot.c:697
Header file of the IIO AD74413r Driver.
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
Header file for the swiot IIO device.
@ SWIOT_RUNTIME
Definition: swiot.h:68
@ AD74413R_CURRENT_IN_LOOP
Definition: ad74413r.h:199
#define MAX14906_CHANNELS
Definition: max14906.h:43
int swiot_iio_init(struct swiot_iio_desc **, struct swiot_iio_desc_init_param *)
Initializes the swiot IIO descriptor.
Definition: swiot.c:642
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
@ AD74413R_RESISTANCE
Definition: ad74413r.h:200
@ AD74413R_CURRENT_IN_EXT
Definition: ad74413r.h:198
struct no_os_gpio_init_param psu_gpio_param
Definition: swiot.h:99
@ SWIOT_AD74413R
Definition: swiot.h:61
int32_t no_os_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: no_os_gpio.c:197
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
Header file of MAX14906 Driver.
struct max149x6_iio_desc * max14906
Definition: swiot.h:98
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
Device channel state.
Definition: ad74413r.h:313
ADIN1110 device descriptor.
Definition: adin1110.h:202
struct no_os_gpio_init_param identify_gpio_param
Definition: swiot.h:100
@ AD74413R_DIGITAL_INPUT_LOOP
Definition: ad74413r.h:202
Configuration structure for a MAX14906 channel.
Definition: iio_max14906.h:46
@ AD74413R_DIAG_AGND
Definition: ad74413r.h:242
@ AD74413R_HIGH_Z
Definition: ad74413r.h:194
Header file of GPIO Interface.
struct max14906_ch_config max14906_configs[MAX14906_CHANNELS]
Definition: swiot.h:90
struct no_os_gpio_desc * psu_gpio
Definition: swiot.h:87
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
@ SWIOT_MAX14906
Definition: swiot.h:62
int swiot_iio_init(struct swiot_iio_desc **swiot_desc, struct swiot_iio_desc_init_param *init_param)
Initializes the swiot IIO descriptor.
Definition: swiot.c:642
int swiot_iio_remove(struct swiot_iio_desc *)
Free the swiot iio descriptor.
Definition: swiot.c:697
@ AD74413R_CURRENT_IN_LOOP_HART
Definition: ad74413r.h:204
Error macro definition for ARM Compiler.
swiot_mode
Definition: swiot.h:66
struct iio_attribute * attributes
Definition: iio_types.h:256
@ AD74413R_VOLTAGE_IN
Definition: ad74413r.h:197
enum max14906_function function
Definition: iio_max14906.h:48