Go to the documentation of this file.
50 #define SWIOT_CHANNELS 4
52 static const char *
const ad74413r_function_available[] = {
enum swiot_mode mode
Definition: swiot.h:107
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:122
struct iio_device * iio_dev
Definition: swiot.h:87
struct ad74413r_iio_desc * ad74413r
Definition: swiot.h:84
@ IIO_VAL_INT
Definition: iio_types.h:56
struct ad74413r_iio_desc * ad74413r
Definition: swiot.h:103
bool mode_change
Definition: swiot.h:92
bool enabled
Definition: ad74413r.h:320
Diagnostics channel state.
Definition: iio_ad74413r.h:56
enum swiot_device device
Definition: swiot.h:79
@ AD74413R_CURRENT_OUT
Definition: ad74413r.h:202
struct max149x6_iio_desc * max14906
Definition: swiot.h:85
Structure holding channel attributess.
Definition: iio_types.h:109
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:227
struct ad74413r_channel_config ad74413r_configs[AD74413R_N_CHANNELS]
Definition: swiot.h:97
Header file of Delay functions.
#define AD74413R_N_DIAG_CHANNELS
Definition: ad74413r.h:48
bool enabled
Definition: iio_ad74413r.h:57
uint32_t active_channels
Definition: swiot.h:88
Definition: ad9361_util.h:75
struct ad74413r_diag_channel_config ad74413r_diag_configs[AD74413R_N_DIAG_CHANNELS]
Definition: swiot.h:98
#define AD74413R_N_CHANNELS
Definition: ad74413r.h:47
@ AD74413R_CURRENT_IN_EXT_HART
Definition: ad74413r.h:209
uint8_t no_of_active_channels
Definition: swiot.h:89
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:60
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:55
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:130
enum ad7616_mode mode
Definition: ad7616.h:232
@ SWIOT_CONFIG
Definition: swiot.h:73
@ AD74413R_VOLTAGE_OUT
Definition: ad74413r.h:201
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
@ SWIOT_DEV_CNT
Definition: swiot.h:69
@ MAX14906_HIGH_Z
Definition: max14906.h:93
Header file of MAX14906 IIO Driver.
const char * name
Definition: iio_types.h:137
struct no_os_gpio_desc * identify_gpio
Definition: swiot.h:94
#define SWIOT_CHANNELS
Definition: swiot.h:50
enum ad74413r_op_mode function
Definition: ad74413r.h:321
bool enabled
Definition: swiot.h:78
Structure holding pointers to show and store functions.
Definition: iio_types.h:135
uint32_t function
Definition: swiot.h:80
struct adin1110_desc * adin1110
Definition: swiot.h:86
Descriptor that stores a iio specific state.
Definition: iio_ad74413r.h:81
enum ad74413r_diag_mode function
Definition: iio_ad74413r.h:58
swiot_device
Definition: swiot.h:66
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:110
Header file of AD74413r Driver.
@ AD74413R_DIGITAL_INPUT
Definition: ad74413r.h:207
bool enabled
Definition: iio_max14906.h:53
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
enum swiot_mode mode
Definition: swiot.h:91
int swiot_iio_remove(struct swiot_iio_desc *swiot_desc)
Free the swiot iio descriptor.
Definition: swiot.c:703
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:55
Header file for the swiot IIO device.
@ SWIOT_RUNTIME
Definition: swiot.h:74
@ AD74413R_CURRENT_IN_LOOP
Definition: ad74413r.h:205
#define MAX14906_CHANNELS
Definition: max14906.h:49
int swiot_iio_init(struct swiot_iio_desc **, struct swiot_iio_desc_init_param *)
Initializes the swiot IIO descriptor.
Definition: swiot.c:648
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:667
@ AD74413R_RESISTANCE
Definition: ad74413r.h:206
@ AD74413R_CURRENT_IN_EXT
Definition: ad74413r.h:204
struct no_os_gpio_init_param psu_gpio_param
Definition: swiot.h:105
@ SWIOT_AD74413R
Definition: swiot.h:67
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:203
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
Header file of MAX14906 Driver.
struct max149x6_iio_desc * max14906
Definition: swiot.h:104
Structure holding channels and attributes of a device.
Definition: iio_types.h:253
Device channel state.
Definition: ad74413r.h:319
ADIN1110 device descriptor.
Definition: adin1110.h:205
struct no_os_gpio_init_param identify_gpio_param
Definition: swiot.h:106
@ AD74413R_DIGITAL_INPUT_LOOP
Definition: ad74413r.h:208
Configuration structure for a MAX14906 channel.
Definition: iio_max14906.h:52
@ AD74413R_DIAG_AGND
Definition: ad74413r.h:248
@ AD74413R_HIGH_Z
Definition: ad74413r.h:200
Header file of GPIO Interface.
struct max14906_ch_config max14906_configs[MAX14906_CHANNELS]
Definition: swiot.h:96
struct no_os_gpio_desc * psu_gpio
Definition: swiot.h:93
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:153
@ SWIOT_MAX14906
Definition: swiot.h:68
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:648
int swiot_iio_remove(struct swiot_iio_desc *)
Free the swiot iio descriptor.
Definition: swiot.c:703
@ AD74413R_CURRENT_IN_LOOP_HART
Definition: ad74413r.h:210
Error macro definition for ARM Compiler.
swiot_mode
Definition: swiot.h:72
struct iio_attribute * attributes
Definition: iio_types.h:262
@ AD74413R_VOLTAGE_IN
Definition: ad74413r.h:203
enum max14906_function function
Definition: iio_max14906.h:54