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