no-OS
Classes | Macros | Variables
common_data.h File Reference
#include "adi_pqlib.h"
#include "iio.h"
#include "iio_app.h"
#include "iio_pqm.h"
#include "iio_types.h"
#include "no_os_i2c.h"
#include "no_os_irq.h"
#include "no_os_spi.h"
#include "no_os_timer.h"
#include "no_os_uart.h"
#include "parameters.h"
#include "pqlib_example.h"
Include dependency graph for common_data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pqm_desc
 
struct  pqm_init_para
 

Macros

#define FW_VERSION   2.2
 
#define IIO_BUFF_TYPE   int16_t
 
#define SAMPLES_PER_CHANNEL_PLATFORM   256
 
#define MAX_SIZE_BASE_ADDR   (SAMPLES_PER_CHANNEL_PLATFORM * TOTAL_PQM_CHANNELS)
 
#define MAX_SIZE_BASE_ADDR_WITH_SIZE   (MAX_SIZE_BASE_ADDR * sizeof(IIO_BUFF_TYPE))
 
#define TOTAL_PQM_CHANNELS   11
 
#define VOLTAGE_CH_NUMBER   3
 
#define MAX_CH_ATTRS   23
 
#define PQM_DEVICE_ATTR_NUMBER   35
 
#define WAVEFORM_BUFFER_LENGTH   (256 * 7)
 
#define MAX_EVENT_NUMBER   6
 

Variables

IIO_BUFF_TYPE iio_data_buffer_loc [MAX_SIZE_BASE_ADDR]
 
struct pqm_init_para pqm_ip
 
struct no_os_spi_init_param spi_egy_ip
 
struct no_os_i2c_init_param i2c_ip
 
struct no_os_uart_init_param uart_ip_stdio
 
struct no_os_timer_init_param timer_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
 

Macro Definition Documentation

◆ FW_VERSION

#define FW_VERSION   2.2

◆ IIO_BUFF_TYPE

#define IIO_BUFF_TYPE   int16_t

◆ MAX_CH_ATTRS

#define MAX_CH_ATTRS   23

◆ MAX_EVENT_NUMBER

#define MAX_EVENT_NUMBER   6

◆ MAX_SIZE_BASE_ADDR

#define MAX_SIZE_BASE_ADDR   (SAMPLES_PER_CHANNEL_PLATFORM * TOTAL_PQM_CHANNELS)

◆ MAX_SIZE_BASE_ADDR_WITH_SIZE

#define MAX_SIZE_BASE_ADDR_WITH_SIZE   (MAX_SIZE_BASE_ADDR * sizeof(IIO_BUFF_TYPE))

◆ PQM_DEVICE_ATTR_NUMBER

#define PQM_DEVICE_ATTR_NUMBER   35

◆ SAMPLES_PER_CHANNEL_PLATFORM

#define SAMPLES_PER_CHANNEL_PLATFORM   256

◆ TOTAL_PQM_CHANNELS

#define TOTAL_PQM_CHANNELS   11

◆ VOLTAGE_CH_NUMBER

#define VOLTAGE_CH_NUMBER   3

◆ WAVEFORM_BUFFER_LENGTH

#define WAVEFORM_BUFFER_LENGTH   (256 * 7)

Variable Documentation

◆ afe0_callback_desc

struct no_os_callback_desc afe0_callback_desc

◆ afe_callback_ctrl_ip

struct no_os_irq_init_param afe_callback_ctrl_ip

◆ i2c_ip

struct no_os_i2c_init_param i2c_ip

◆ iio_data_buffer_loc

IIO_BUFF_TYPE iio_data_buffer_loc[MAX_SIZE_BASE_ADDR]

◆ intr_gpio_ip

struct no_os_gpio_init_param intr_gpio_ip

◆ pqm_ip

struct pqm_init_para pqm_ip

◆ reset_gpio_ip

struct no_os_gpio_init_param reset_gpio_ip

◆ spi_egy_ip

struct no_os_spi_init_param spi_egy_ip

◆ timer_ip

struct no_os_timer_init_param timer_ip

◆ uart_ip_stdio

struct no_os_uart_init_param uart_ip_stdio