no-OS
Variables
common_data.c File Reference
#include "common_data.h"
Include dependency graph for common_data.c:

Variables

struct no_os_uart_init_param iio_demo_uart_ip
 
IIO_BUFF_TYPE iio_data_buffer_loc [MAX_SIZE_BASE_ADDR] = {0}
 
struct pqm_init_para pqm_ip
 
struct max_i2c_init_param i2c_extra = {.vssel = MXC_GPIO_VSSEL_VDDIOH}
 
struct no_os_i2c_init_param i2c_ip
 
struct no_os_uart_init_param uart_ip_stdio
 
struct no_os_spi_init_param spi_egy_ip
 
struct no_os_gpio_init_param reset_gpio_ip
 
struct no_os_gpio_init_param intr_gpio_ip
 
struct no_os_irq_init_param afe_callback_ctrl_ip
 
struct no_os_callback_desc afe0_callback_desc
 

Variable Documentation

◆ afe0_callback_desc

struct no_os_callback_desc afe0_callback_desc
Initial value:
= {
.event = NO_OS_EVT_GPIO,
.peripheral = NO_OS_GPIO_IRQ,
.ctx = NULL,
.handle = NULL,
}

◆ afe_callback_ctrl_ip

struct no_os_irq_init_param afe_callback_ctrl_ip
Initial value:
= {
.platform_ops = INTR_OPS,
.irq_ctrl_id = INTR_GPIO_PORT_NUM,
.extra = NULL,
}

◆ i2c_extra

struct max_i2c_init_param i2c_extra = {.vssel = MXC_GPIO_VSSEL_VDDIOH}

◆ i2c_ip

struct no_os_i2c_init_param i2c_ip
Initial value:
= {
.device_id = 1,
.max_speed_hz = 400000,
.slave_address = 0x51,
.platform_ops = &max_i2c_ops,
.extra = &i2c_extra
}

◆ iio_data_buffer_loc

IIO_BUFF_TYPE iio_data_buffer_loc[MAX_SIZE_BASE_ADDR] = {0}

◆ iio_demo_uart_ip

struct no_os_uart_init_param iio_demo_uart_ip
Initial value:
= {
.device_id = UART_DEVICE_ID,
.irq_id = UART_IRQ_ID,
.asynchronous_rx = true,
.baud_rate = UART_BAUDRATE,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.extra = UART_EXTRA,
.platform_ops = &max_usb_uart_ops,
}

◆ intr_gpio_ip

struct no_os_gpio_init_param intr_gpio_ip
Initial value:
= {
.number = INTR_GPIO_PIN_NUM,
.platform_ops = GPIO_OPS,
.extra = INTR_GPIO_EXTRA,
.pull = NO_OS_PULL_NONE,
}

◆ pqm_ip

struct pqm_init_para pqm_ip

◆ reset_gpio_ip

struct no_os_gpio_init_param reset_gpio_ip
Initial value:
= {
.number = RESET_GPIO_PIN_NUM,
.platform_ops = GPIO_OPS,
.extra = RESET_GPIO_EXTRA,
.pull = NO_OS_PULL_UP
}

◆ spi_egy_ip

struct no_os_spi_init_param spi_egy_ip
Initial value:
= {
.device_id = SPI_PQM_DEVICE_ID,
.max_speed_hz = SPI_PQM_BAUDRATE,
.platform_ops = SPI_OPS,
.chip_select = 0,
.extra = SPI_PQM_EXTRA,
}

◆ uart_ip_stdio

struct no_os_uart_init_param uart_ip_stdio
Initial value:
= {
.device_id = 0,
.asynchronous_rx = false,
.baud_rate = 115200,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.extra = UART_STDIO_EXT,
.platform_ops = &max_uart_ops
}
max_i2c_ops
const struct no_os_i2c_platform_ops max_i2c_ops
MAXIM platform specific I2C platform ops structure.
Definition: maxim_i2c.c:328
RESET_GPIO_PIN_NUM
#define RESET_GPIO_PIN_NUM
Definition: parameters.h:90
NO_OS_UART_STOP_1_BIT
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:100
UART_EXTRA
#define UART_EXTRA
Definition: parameters.h:60
RESET_GPIO_EXTRA
#define RESET_GPIO_EXTRA
Definition: parameters.h:93
NO_OS_PULL_NONE
@ NO_OS_PULL_NONE
Definition: no_os_gpio.h:72
RESET_GPIO_PORT_NUM
#define RESET_GPIO_PORT_NUM
Definition: parameters.h:91
UART_STDIO_EXT
#define UART_STDIO_EXT
Definition: parameters.h:78
SPI_PQM_DEVICE_ID
#define SPI_PQM_DEVICE_ID
Definition: parameters.h:75
SPI_PQM_EXTRA
#define SPI_PQM_EXTRA
Definition: parameters.h:77
UART_IRQ_ID
#define UART_IRQ_ID
Definition: parameters.h:56
UART_BAUDRATE
#define UART_BAUDRATE
Definition: parameters.h:59
INTR_GPIO_PIN_NUM
#define INTR_GPIO_PIN_NUM
Definition: parameters.h:95
SPI_PQM_BAUDRATE
#define SPI_PQM_BAUDRATE
Definition: parameters.h:76
max_uart_ops
const struct no_os_uart_platform_ops max_uart_ops
Maxim platform specific UART platform ops structure.
Definition: maxim_uart.c:481
INTR_GPIO_PORT_NUM
#define INTR_GPIO_PORT_NUM
Definition: parameters.h:96
i2c_extra
I2C platform specific parameters.
SPI_OPS
#define SPI_OPS
Definition: parameters.h:80
NO_OS_SPI_BIT_ORDER_MSB_FIRST
@ NO_OS_SPI_BIT_ORDER_MSB_FIRST
Definition: no_os_spi.h:82
NULL
#define NULL
Definition: wrapper.h:64
INTR_GPIO_EXTRA
#define INTR_GPIO_EXTRA
Definition: parameters.h:97
NO_OS_EVT_GPIO
@ NO_OS_EVT_GPIO
Definition: no_os_irq.h:68
NO_OS_UART_PAR_NO
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:83
max_usb_uart_ops
const struct no_os_uart_platform_ops max_usb_uart_ops
Maxim platform specific UART platform ops structure.
Definition: maxim_usb_uart.c:330
NO_OS_PULL_UP
@ NO_OS_PULL_UP
Definition: no_os_gpio.h:74
NO_OS_GPIO_IRQ
@ NO_OS_GPIO_IRQ
Definition: no_os_irq.h:91
GPIO_OPS
#define GPIO_OPS
Definition: parameters.h:84
UART_DEVICE_ID
#define UART_DEVICE_ID
Definition: parameters.h:58
NO_OS_SPI_MODE_0
@ NO_OS_SPI_MODE_0
Definition: no_os_spi.h:67
NO_OS_UART_CS_8
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:72
INTR_OPS
#define INTR_OPS
Definition: parameters.h:99