Go to the documentation of this file.
33 #ifndef __SWIOT_FW_H__
34 #define __SWIOT_FW_H__
const struct no_os_irq_init_param ad74413r_nvic_ip
Definition: common_data.c:278
struct iio_device * iio_dev
Definition: iio_ad74413r.h:77
const struct no_os_gpio_init_param adin1110_mssel_ip
Definition: common_data.c:181
IIO application descriptor initialization parameters.
Definition: iio_app.h:101
@ AD74413R_ADC_SAMPLE_4800HZ
Definition: ad74413r.h:288
struct iio_device * iio_dev
Definition: swiot.h:81
struct ad74413r_iio_desc * ad74413r
Definition: swiot.h:78
void * arg
Definition: iio_app.h:90
struct no_os_uart_init_param uart_init_params
Definition: iio_app.h:115
const struct no_os_gpio_init_param adin1110_tx2p4_ip
Definition: common_data.c:173
bool mode_change
Definition: swiot.h:86
struct iio_desc * iio_desc
Definition: iio_trigger.h:58
Header for swiot1l project.
const struct no_os_gpio_init_param adin1110_swpd_ip
Definition: common_data.c:165
#define DATA_BUFFER_SIZE
Definition: swiot_fw.c:51
const struct no_os_gpio_init_param adin1110_int_ip
Definition: common_data.c:69
const struct no_os_gpio_init_param max14906_d2_ip
Definition: common_data.c:133
uint32_t size
Definition: iio_app.h:63
struct iio_desc * iio_desc
Definition: iio_app.h:86
struct max149x6_iio_desc * max14906
Definition: swiot.h:79
IIO application descriptor.
Definition: iio_app.h:80
const struct no_os_gpio_init_param max14906_en_ip
Definition: common_data.c:117
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
struct iio_desc * iio_desc
Definition: iio_trigger.h:107
struct ad74413r_channel_config ad74413r_configs[AD74413R_N_CHANNELS]
Definition: swiot.h:91
void * buff
Definition: iio_app.h:64
char * name
Definition: iio_app.h:68
struct ad74413r_desc * ad74413r_desc
Definition: iio_ad74413r.h:76
const struct no_os_gpio_init_param max14906_d4_ip
Definition: common_data.c:149
#define AD74413R_N_DIAG_CHANNELS
Definition: ad74413r.h:42
int step_callback(void *arg)
Definition: swiot_fw.c:56
Initialization parameter for the MAX14906 IIO descriptor.
Definition: iio_max14906.h:92
struct ad74413r_diag_channel_config ad74413r_diag_configs[AD74413R_N_DIAG_CHANNELS]
Definition: swiot.h:92
#define AD74413R_N_CHANNELS
Definition: ad74413r.h:41
uint8_t mac_address[ADIN1110_ETH_ALEN]
Definition: adin1110.h:218
struct ad74413r_diag_channel_config diag_channel_configs[AD74413R_N_DIAG_CHANNELS]
Definition: iio_ad74413r.h:94
struct iio_hw_trig * trigger
Definition: iio_ad74413r.h:93
#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
int iio_hw_trig_init(struct iio_hw_trig **iio_trig, struct iio_hw_trig_init_param *init_param)
Initialize hardware trigger.
Definition: iio_trigger.c:56
MAX14906 specific IIO descriptor.
Definition: iio_max14906.h:81
const struct no_os_gpio_init_param swiot_led2_ip
Definition: common_data.c:213
const struct no_os_gpio_init_param max14906_d3_ip
Definition: common_data.c:141
#define IIO_APP_TRIGGER(_name, _trig, _trig_descriptor)
Definition: iio_app.h:56
int adt75_iio_remove(struct adt75_iio_desc *desc)
Free an iio descriptor.
Definition: iio_adt75.c:224
struct max14906_ch_config channel_configs[MAX14906_CHANNELS]
Definition: iio_max14906.h:94
struct iio_data_buffer * read_buff
Definition: iio_app.h:71
const struct no_os_gpio_init_param swiot_led1_ip
Definition: common_data.c:205
int32_t no_os_irq_set_priority(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, uint32_t priority_level)
Set the priority for an interrupt.
Definition: no_os_irq.c:216
int adt75_iio_init(struct adt75_iio_desc **desc, struct adt75_iio_init_param *init_param)
Initializes the ADT75 IIO descriptor.
Definition: iio_adt75.c:193
int max14906_iio_init(struct max14906_iio_desc **iio_desc, struct max14906_iio_desc_init_param *init_param)
Initializes the MAX14906 IIO descriptor.
Definition: iio_max14906.c:579
struct adt75_init_param * adt75_init_param
Definition: iio_adt75.h:58
const struct no_os_gpio_init_param max14906_d1_ip
Definition: common_data.c:125
Header file of MAX14906 IIO Driver.
int(* post_step_callback)(void *arg)
Definition: iio_app.h:119
const struct no_os_gpio_init_param adin1110_cfg1_ip
Definition: common_data.c:197
const struct no_os_gpio_init_param ad74413r_irq_ip
Definition: common_data.c:109
struct adin1110_desc * adin1110
Definition: swiot.h:80
Descriptor that stores a iio specific state.
Definition: iio_ad74413r.h:75
int32_t no_os_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialize the IRQ interrupts.
Definition: no_os_irq.c:45
struct ad74413r_init_param * ad74413r_init_param
Definition: iio_ad74413r.h:91
struct iio_device * iio_dev
Definition: iio_adt75.h:50
Init parameter for the iio descriptor.
Definition: iio_ad74413r.h:90
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
Header file of the IIO ADT75 Driver.
int iio_app_run(struct iio_app_desc *app)
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
struct no_os_uart_init_param uart_ip
Definition: common_data.c:52
int swiot_firmware()
IIO example main execution.
Definition: swiot_fw.c:75
Header file of the IIO AD74413r Driver.
const struct no_os_gpio_init_param adin1110_cfg0_ip
Definition: common_data.c:189
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
int max14906_iio_remove(struct max14906_iio_desc *iio_desc)
Free resources allocated by the init function.
Definition: iio_max14906.c:622
int iio_app_init(struct iio_app_desc **app, struct iio_app_init_param app_init_param)
struct iio_trigger_init * trigs
Definition: iio_app.h:111
int ad74413r_set_adc_rate(struct ad74413r_desc *desc, uint32_t ch, enum ad74413r_adc_sample val)
Set the ADC sample rate.
Definition: ad74413r.c:613
int ad74413r_iio_init(struct ad74413r_iio_desc **iio_desc, struct ad74413r_iio_desc_init_param *init_param)
Initializes the AD74413R IIO descriptor.
Definition: iio_ad74413r.c:1531
IIO software trigger structure.
Definition: iio_trigger.h:105
int32_t nb_trigs
Definition: iio_app.h:113
int iio_app_remove(struct iio_app_desc *app)
#define NULL
Definition: wrapper.h:64
void * dev
Definition: iio_app.h:69
uint32_t irq_ctrl_id
Definition: no_os_irq.h:125
int ad74413r_iio_remove(struct ad74413r_iio_desc *desc)
Free an iio descriptor.
Definition: iio_ad74413r.c:1582
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 swiot_iio_desc_init_param swiot_ip
int swiot_firmware()
IIO example main execution.
Definition: swiot_fw.c:75
struct no_os_gpio_init_param ad74413r_reset_ip
Definition: common_data.c:93
const struct no_os_gpio_init_param max14906_synch_ip
Definition: common_data.c:157
struct max149x6_init_param * max14906_init_param
Definition: iio_max14906.h:93
struct iio_device * dev_descriptor
Definition: iio_app.h:70
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:181
Header file of GPIO Interface.
struct max14906_ch_config max14906_configs[MAX14906_CHANNELS]
Definition: swiot.h:90
const struct no_os_gpio_init_param ad74413r_ldac_ip
Definition: common_data.c:101
struct ad74413r_channel_config channel_configs[AD74413R_N_CHANNELS]
Definition: iio_ad74413r.h:92
Init parameter for the iio descriptor.
Definition: iio_adt75.h:57
struct adin1110_init_param adin1110_ip
Definition: common_data.c:221
Header file of utility functions.
Descriptor that stores an iio specific state.
Definition: iio_adt75.h:48
Definition: no_os_irq.h:123
struct adt75_init_param adt75_ip
Definition: common_data.c:176
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
struct ad74413r_init_param ad74413r_ip
Definition: common_data.c:92
struct iio_app_device * devices
Definition: iio_app.h:107
IIO hardware trigger structure.
Definition: iio_trigger.h:56
struct max149x6_init_param max14906_ip
Definition: common_data.c:272
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
struct iio_device * iio_dev
Definition: iio_max14906.h:83
Error macro definition for ARM Compiler.
uint32_t nb_devices
Definition: iio_app.h:109
int ad74413r_set_adc_diag_rate(struct ad74413r_desc *desc, uint32_t ch, enum ad74413r_adc_sample val)
Set the ADC sample rate for the diagnostics channels.
Definition: ad74413r.c:653