Go to the documentation of this file.
43 #if defined(NO_OS_LWIP_NETWORKING)
44 #include "lwip_socket.h"
47 #define IIO_APP_DEVICE(_name, _dev, _dev_descriptor, _read_buff, _write_buff, _default_trigger_id) {\
50 .dev_descriptor = _dev_descriptor,\
51 .read_buff = _read_buff,\
52 .write_buff = _write_buff,\
53 .default_trigger_id = _default_trigger_id\
56 #define IIO_APP_TRIGGER(_name, _trig, _trig_descriptor) {\
59 .descriptor = _trig_descriptor,\
92 #ifdef NO_OS_LWIP_NETWORKING
93 struct lwip_network_desc *lwip_desc;
123 #ifdef NO_OS_LWIP_NETWORKING
124 struct lwip_network_param lwip_param;
uint32_t nb_ctx_attr
Definition: iio_app.h:105
IIO application descriptor initialization parameters.
Definition: iio_app.h:101
enum no_os_uart_parity parity
Definition: no_os_uart.h:122
int iio_remove(struct iio_desc *desc)
Free the resources allocated by "iio_init()".
Definition: iio.c:2029
void * arg
Definition: iio_app.h:90
Header file of UART driver for ADuCM302x.
struct no_os_uart_init_param uart_init_params
Definition: iio_app.h:115
int32_t no_os_uart_write(struct no_os_uart_desc *desc, const uint8_t *data, uint32_t bytes_number)
Write to UART.
Definition: no_os_uart.c:144
void * extra
Definition: no_os_uart.h:127
uint32_t nb_trigs
Definition: iio.h:118
uint32_t size
Definition: iio_app.h:63
struct iio_desc * iio_desc
Definition: iio_app.h:86
int(* post_step_callback)(void *arg)
Definition: iio_app.h:88
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:94
Header file of IRQ interface.
enum no_os_uart_size size
Definition: no_os_uart.h:120
#define NO_OS_EOVERRUN
Definition: no_os_error.h:47
IIO application descriptor.
Definition: iio_app.h:80
void * buff
Definition: iio_app.h:64
Header file of Delay functions.
char * name
Definition: iio_app.h:68
enum physical_link_type phy_type
Definition: iio.h:105
uint32_t irq_id
Definition: no_os_uart.h:114
char * default_trigger_id
Definition: iio_app.h:73
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 WIFI_PWD
Definition: parameters.h:101
struct no_os_uart_desc * uart_desc
Definition: iio_app.h:82
int32_t no_os_uart_remove(struct no_os_uart_desc *desc)
Free the resources allocated by no_os_uart_init().
Definition: no_os_uart.c:81
int iio_init(struct iio_desc **desc, struct iio_init_param *init_param)
Set communication ops and read/write ops.
Definition: iio.c:1890
char * trigger_id
Definition: iio.h:73
struct no_os_uart_desc * uart_desc
Definition: main.c:46
struct iio_ctx_attr * ctx_attrs
Definition: iio.h:113
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
struct iio_data_buffer * read_buff
Definition: iio_app.h:71
struct no_os_uart_desc * uart_desc
Definition: iio.h:107
Stucture holding the UART descriptor.
Definition: no_os_uart.h:134
@ USE_NETWORK
Definition: iio.h:55
int32_t no_os_irq_global_enable(struct no_os_irq_ctrl_desc *desc)
Enable global interrupts.
Definition: no_os_irq.c:129
Header file of UART driver for STM32.
int(* post_step_callback)(void *arg)
Definition: iio_app.h:119
const struct no_os_irq_platform_ops aducm_irq_ops
Aducm3029 platform specific IRQ platform ops structure.
Definition: aducm3029_irq.c:551
Header file for stm32 irq specifics.
const struct no_os_irq_platform_ops max_irq_ops
maxim specific IRQ platform ops structure
Definition: maxim_irq.c:657
struct iio_data_buffer * write_buff
Definition: iio_app.h:72
char * name
Definition: iio.h:61
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
Header file of IRQ driver for ADuCM302x.
void * irq_desc
Definition: iio_app.h:84
const struct no_os_irq_platform_ops stm32_irq_ops
stm32 specific IRQ platform ops structure
Definition: stm32_irq.c:582
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
void * arg
Definition: iio_app.h:121
struct iio_device_init * devs
Definition: iio.h:115
uint32_t nb_ctx_attr
Definition: iio.h:114
int iio_app_run(struct iio_app_desc *app)
uint32_t baud_rate
Definition: no_os_uart.h:118
enum no_os_uart_stop stop
Definition: no_os_uart.h:124
Structure for Interrupt Request descriptor.
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
struct iio_trigger_init * trigs
Definition: iio.h:117
uint32_t nb_devs
Definition: iio.h:116
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
int32_t nb_trigs
Definition: iio_app.h:113
int iio_app_remove(struct iio_app_desc *app)
struct iio_device * dev_descriptor
Definition: iio.h:63
const struct no_os_uart_platform_ops * platform_ops
Definition: no_os_uart.h:125
struct iio_ctx_attr * ctx_attrs
Definition: iio_app.h:103
int32_t no_os_uart_init(struct no_os_uart_desc **desc, struct no_os_uart_init_param *param)
Initialize the UART communication peripheral.
Definition: no_os_uart.c:52
void * dev
Definition: iio.h:62
struct no_os_irq_ctrl_desc * irq_desc
Definition: iio_types.h:250
#define NULL
Definition: wrapper.h:64
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
void * dev
Definition: iio_app.h:69
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
uint32_t raw_buf_len
Definition: iio.h:71
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:77
int32_t no_os_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by no_os_irq_ctrl_init().
Definition: no_os_irq.c:71
uint8_t device_id
Definition: no_os_uart.h:112
struct iio_device * dev_descriptor
Definition: iio_app.h:70
Structure holding the context attribute members.
Definition: iio.h:86
Header file of UART interface.
void * irq_desc
Definition: iio_app.h:117
#define WIFI_SSID
Definition: parameters.h:100
int8_t * raw_buf
Definition: iio.h:69
Definition: no_os_irq.h:123
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:66
struct iio_app_device * devices
Definition: iio_app.h:107
int iio_step(struct iio_desc *desc)
Execute an iio step.
Definition: iio.c:1510
Error macro definition for ARM Compiler.
uint32_t nb_devices
Definition: iio_app.h:109
@ USE_UART
Definition: iio.h:53