precision-converters-firmware
Loading...
Searching...
No Matches
Macros | Functions | Variables
app_config.h File Reference
#include <stdint.h>
#include "common_macros.h"
#include "app_config_stm32.h"
Include dependency graph for app_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACTIVE_PLATFORM   STM32_PLATFORM
 
#define CONTINUOUS_DATA_CAPTURE   0
 
#define BURST_DATA_CAPTURE   1
 
#define XSTR(s)   #s
 
#define STR(s)   XSTR(s)
 
#define IIO_CLIENT_REMOTE   1
 
#define IIO_CLIENT_LOCAL   2
 
#define ACTIVE_IIO_CLIENT   IIO_CLIENT_REMOTE
 
#define USE_VIRTUAL_COM_PORT
 
#define DEV_AD7124_4
 
#define DEVICE_NAME   "DEV_AD7124_4"
 
#define ACTIVE_DEVICE_NAME   "ad7124-4"
 
#define NUM_OF_CHANNELS   8
 
#define HW_MEZZANINE_NAME   "EVAL-AD7124-4ASDZ"
 
#define PSUEDO_DIFFERENTIAL_MODE   0
 
#define DIFFERENTIAL_MODE   1
 
#define INPUT_MODE   PSEUDO_DIFFERENTIAL_MODE
 
#define ADC_RESOLUTION   24
 
#define ADC_MAX_COUNT_UNIPOLAR   (int32_t)((1 << ADC_RESOLUTION) - 1)
 
#define ADC_MAX_COUNT_BIPOLAR   (int32_t)(1 << (ADC_RESOLUTION-1))
 
#define spi_extra_init_params   stm32_spi_extra_init_params
 
#define uart_extra_init_params   stm32_uart_extra_init_params
 
#define gpio_platform_ops   stm32_gpio_ops
 
#define spi_platform_ops   stm32_spi_ops
 
#define uart_ops   stm32_uart_ops
 
#define i2c_ops   stm32_i2c_ops
 
#define i2c_extra_init_params   stm32_i2c_extra_init_params
 
#define irq_platform_ops   stm32_gpio_irq_ops
 
#define ext_int_extra_init_params   stm32_trigger_gpio_irq_init_params
 
#define IRQ_INT_ID   RDY_PIN
 
#define ticker_int_extra_init_params   0
 
#define trigger_gpio_handle   0
 
#define PLATFORM_NAME   HW_CARRIER_NAME
 
#define IIO_UART_BAUD_RATE   (230400)
 
#define CONSOLE_STDIO_PORT_AVAILABLE
 
#define DATA_CAPTURE_MODE   CONTINUOUS_DATA_CAPTURE
 
#define LVGL_TICK_TIME_US   5000
 
#define LVGL_TICK_TIME_MS   (LVGL_TICK_TIME_US / 1000)
 

Functions

int init_system (void)
 Initialize the system peripherals.
 
void data_capture_callback (void *ctx)
 Interrupt Service Routine to monitor data ready event.
 
void ticker_callback (void *ctx)
 This is an ISR (Interrupt Service Routine) for Ticker object.
 
void lvgl_tick_callback (void *ctx)
 

Variables

struct no_os_uart_desc * uart_desc
 
struct no_os_eeprom_desc * eeprom_desc
 
struct no_os_gpio_desc * csb_gpio
 
struct no_os_gpio_desc * rdy_gpio
 
struct no_os_irq_ctrl_desc * trigger_irq_desc
 

Macro Definition Documentation

◆ ACTIVE_DEVICE_NAME

#define ACTIVE_DEVICE_NAME   "ad7124-4"

◆ ACTIVE_IIO_CLIENT

#define ACTIVE_IIO_CLIENT   IIO_CLIENT_REMOTE

◆ ACTIVE_PLATFORM

#define ACTIVE_PLATFORM   STM32_PLATFORM

◆ ADC_MAX_COUNT_BIPOLAR

#define ADC_MAX_COUNT_BIPOLAR   (int32_t)(1 << (ADC_RESOLUTION-1))

◆ ADC_MAX_COUNT_UNIPOLAR

#define ADC_MAX_COUNT_UNIPOLAR   (int32_t)((1 << ADC_RESOLUTION) - 1)

◆ ADC_RESOLUTION

#define ADC_RESOLUTION   24

◆ BURST_DATA_CAPTURE

#define BURST_DATA_CAPTURE   1

◆ CONSOLE_STDIO_PORT_AVAILABLE

#define CONSOLE_STDIO_PORT_AVAILABLE

◆ CONTINUOUS_DATA_CAPTURE

#define CONTINUOUS_DATA_CAPTURE   0

◆ DATA_CAPTURE_MODE

#define DATA_CAPTURE_MODE   CONTINUOUS_DATA_CAPTURE

◆ DEV_AD7124_4

#define DEV_AD7124_4

◆ DEVICE_NAME

#define DEVICE_NAME   "DEV_AD7124_4"

◆ DIFFERENTIAL_MODE

#define DIFFERENTIAL_MODE   1

◆ ext_int_extra_init_params

#define ext_int_extra_init_params   stm32_trigger_gpio_irq_init_params

◆ gpio_platform_ops

#define gpio_platform_ops   stm32_gpio_ops

◆ HW_MEZZANINE_NAME

#define HW_MEZZANINE_NAME   "EVAL-AD7124-4ASDZ"

◆ i2c_extra_init_params

#define i2c_extra_init_params   stm32_i2c_extra_init_params

◆ i2c_ops

#define i2c_ops   stm32_i2c_ops

◆ IIO_CLIENT_LOCAL

#define IIO_CLIENT_LOCAL   2

◆ IIO_CLIENT_REMOTE

#define IIO_CLIENT_REMOTE   1

◆ IIO_UART_BAUD_RATE

#define IIO_UART_BAUD_RATE   (230400)

◆ INPUT_MODE

#define INPUT_MODE   PSEUDO_DIFFERENTIAL_MODE

◆ IRQ_INT_ID

#define IRQ_INT_ID   RDY_PIN

◆ irq_platform_ops

#define irq_platform_ops   stm32_gpio_irq_ops

◆ LVGL_TICK_TIME_MS

#define LVGL_TICK_TIME_MS   (LVGL_TICK_TIME_US / 1000)

◆ LVGL_TICK_TIME_US

#define LVGL_TICK_TIME_US   5000

◆ NUM_OF_CHANNELS

#define NUM_OF_CHANNELS   8

◆ PLATFORM_NAME

#define PLATFORM_NAME   HW_CARRIER_NAME

◆ PSUEDO_DIFFERENTIAL_MODE

#define PSUEDO_DIFFERENTIAL_MODE   0

◆ spi_extra_init_params

#define spi_extra_init_params   stm32_spi_extra_init_params

◆ spi_platform_ops

#define spi_platform_ops   stm32_spi_ops

◆ STR

#define STR (   s)    XSTR(s)

◆ ticker_int_extra_init_params

#define ticker_int_extra_init_params   0

◆ trigger_gpio_handle

#define trigger_gpio_handle   0

◆ uart_extra_init_params

#define uart_extra_init_params   stm32_uart_extra_init_params

◆ uart_ops

#define uart_ops   stm32_uart_ops

◆ USE_VIRTUAL_COM_PORT

#define USE_VIRTUAL_COM_PORT

◆ XSTR

#define XSTR (   s)    #s

Function Documentation

◆ data_capture_callback()

void data_capture_callback ( void *  ctx)

Interrupt Service Routine to monitor data ready event.

Parameters
context[in]- Callback context (unused)
Returns
none

Interrupt Service Routine to monitor data ready event.

Parameters
ctx[in]- Callback context (unused)
Returns
none
Note
Callback registered for the the RDY interrupt to indicate end of conversion in case of burst data capturing.

Interrupt Service Routine to monitor data ready event.

Parameters
ctx[in]- Callback context (unused)
Returns
none
Note
Callback registered for the the DRDY interrupt to indicate end of conversion in case of burst data capturing with SPI operation.

◆ init_system()

int init_system ( void  )

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise.

This function initializes system peripherals for the application

Returns
- 0 in case of success, negative error code otherwise

◆ lvgl_tick_callback()

void lvgl_tick_callback ( void *  ctx)

◆ ticker_callback()

void ticker_callback ( void *  ctx)

This is an ISR (Interrupt Service Routine) for Ticker object.

Parameters
ctx[in]- Callback context (unused)
Returns
none

This function is periodically called based on the time period configured during Ticker instance creation/initialization.

Variable Documentation

◆ csb_gpio

struct no_os_gpio_desc* csb_gpio
extern

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc
extern

◆ rdy_gpio

struct no_os_gpio_desc* rdy_gpio
extern

◆ trigger_irq_desc

struct no_os_irq_ctrl_desc* trigger_irq_desc
extern

◆ uart_desc

struct no_os_uart_desc* uart_desc
extern