precision-converters-firmware
Loading...
Searching...
No Matches
Functions | Variables
app_config.c File Reference

Application configurations module. More...

#include "app_config.h"
#include "no_os_uart.h"
#include "no_os_irq.h"
#include "no_os_gpio.h"
#include "common.h"
#include "no_os_pwm.h"
#include "ad4692_iio.h"
#include "no_os_eeprom.h"
#include "no_os_delay.h"
#include "ad4692_user_config.h"
Include dependency graph for app_config.c:

Functions

int init_gpio (void)
 Initialize the GPIO peripheral.
 
int32_t init_interrupt (void)
 Initialize the IRQ controller.
 
int init_pwm (void)
 Initialize CNV PWM.
 
int32_t tx_trigger_init (void)
 Initialize Tx Trigger Timer.
 
int32_t init_system (void)
 Initializing system peripherals.
 

Variables

struct no_os_uart_init_param uart_iio_comm_init_params
 
struct no_os_uart_init_param uart_console_stdio_init_params
 
struct no_os_irq_init_param trigger_gpio_irq_params
 
struct no_os_gpio_init_param cnv_gpio_init_param
 
struct no_os_pwm_init_param pwm_spi_burst_init
 
struct no_os_irq_ctrl_desc * trigger_irq_desc
 
struct no_os_uart_desc * uart_iio_com_desc
 
struct no_os_uart_desc * uart_console_stdio_desc
 
struct no_os_gpio_desc * cnv_gpio_desc
 
struct no_os_eeprom_desc * eeprom_desc
 
struct no_os_dma_init_param ad4692_dma_init_param
 
struct no_os_pwm_init_param tx_trigger_init_param
 
struct no_os_gpio_init_param csb_gpio_init_param
 
struct no_os_pwm_desc * tx_trigger_desc
 
struct no_os_pwm_desc * spi_burst_pwm_desc = NULL
 
struct no_os_gpio_desc * csb_gpio_desc
 

Detailed Description

Application configurations module.

This module contains the configurations needed for IIO application

Copyright (c) 2024, 2026 Analog Devices, Inc. All rights reserved.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Function Documentation

◆ init_gpio()

int init_gpio ( void  )

Initialize the GPIO peripheral.

Returns
0 in case of success, negative error code otherwise.
Here is the caller graph for this function:

◆ init_interrupt()

int32_t init_interrupt ( void  )

Initialize the IRQ controller.

Initialize the IRQ contoller.

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

This function initialize the interrupts for system peripherals.

◆ init_pwm()

int init_pwm ( void  )

Initialize CNV PWM.

Initialize the PWM interface.

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

◆ init_system()

int32_t init_system ( void  )

Initializing system peripherals.

Initialize the system peripherals.

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

This function initializes system peripherals for the application

◆ tx_trigger_init()

int32_t tx_trigger_init ( void  )

Initialize Tx Trigger Timer.

Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function:

Variable Documentation

◆ ad4692_dma_init_param

struct no_os_dma_init_param ad4692_dma_init_param
Initial value:
= {
.id = 0,
.platform_ops = (struct no_os_dma_platform_ops *)&dma_ops,
.sg_handler = (void (*)(void *))ad4692_spi_dma_rx_cplt_callback,
}
#define dma_ops
Definition app_config_stm32.h:112
void ad4692_spi_dma_rx_cplt_callback(DMA_HandleTypeDef *hdma)
Callback function to flag the capture of number of requested samples.
Definition app_config_stm32.c:312
#define AD4692_DMA_NUM_CHANNELS
Definition app_config_stm32.h:120

◆ cnv_gpio_desc

struct no_os_gpio_desc* cnv_gpio_desc

◆ cnv_gpio_init_param

struct no_os_gpio_init_param cnv_gpio_init_param
Initial value:
= {
.port = CNV_PORT_NUM,
.number = CNV_PIN_NUM,
.platform_ops = &gpio_ops,
}
#define gpio_ops
Definition app_config.h:85
#define CNV_PORT_NUM
Definition app_config_stm32.h:90
#define CNV_PIN_NUM
Definition app_config_stm32.h:91
#define bsy_extra_init_params
Definition app_config_stm32.h:83

◆ csb_gpio_desc

struct no_os_gpio_desc* csb_gpio_desc

◆ csb_gpio_init_param

struct no_os_gpio_init_param csb_gpio_init_param
Initial value:
= {
.port = SPI_CS_PORT_NUM,
.number = SPI_CSB,
.pull = NO_OS_PULL_NONE,
.platform_ops = &gpio_ops,
}
#define SPI_CSB
Definition app_config_mbed.h:33
#define csb_gpio_extra_init_params
Definition app_config_stm32.h:99
#define SPI_CS_PORT_NUM
Definition app_config_stm32.h:79

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc

◆ pwm_spi_burst_init

struct no_os_pwm_init_param pwm_spi_burst_init
Initial value:
= {
.duty_cycle_ns = 50,
.platform_ops = &pwm_ops,
.pwm_gpio = &spi_burst_gpio_init_params,
}
#define pwm_ops
Definition app_config.h:89
#define pwm_spi_burst_extra_init_params
Definition app_config_stm32.h:87
#define SPI_BURST_TIMER_ID
Definition app_config_stm32.h:103

◆ spi_burst_pwm_desc

struct no_os_pwm_desc* spi_burst_pwm_desc = NULL

◆ trigger_gpio_irq_params

struct no_os_irq_init_param trigger_gpio_irq_params
Initial value:
= {
.irq_ctrl_id = TRIGGER_INT_ID,
.platform_ops = &trigger_gpio_irq_ops,
}
#define TRIGGER_INT_ID
Definition app_config.h:95
#define trigger_gpio_irq_extra_params
Definition app_config.h:81
#define trigger_gpio_irq_ops
Definition app_config.h:90

◆ trigger_irq_desc

struct no_os_irq_ctrl_desc* trigger_irq_desc

◆ tx_trigger_desc

struct no_os_pwm_desc* tx_trigger_desc

◆ tx_trigger_init_param

struct no_os_pwm_init_param tx_trigger_init_param
Initial value:
= {
.period_ns = TX_TRIGGER_PERIOD,
.duty_cycle_ns = TX_TRIGGER_DUTY_RATIO,
.polarity = NO_OS_PWM_POLARITY_HIGH,
.platform_ops = &pwm_ops,
}
#define TX_TRIGGER_PERIOD
Definition app_config_stm32.h:134
#define tx_trigger_extra_init_params
Definition app_config_stm32.h:102
#define TX_TRIGGER_TIMER_ID
Definition app_config_stm32.h:112
#define TX_TRIGGER_DUTY_RATIO
Definition app_config_stm32.h:114

◆ uart_console_stdio_desc

struct no_os_uart_desc* uart_console_stdio_desc

◆ uart_console_stdio_init_params

struct no_os_uart_init_param uart_console_stdio_init_params
Initial value:
= {
.device_id = UART_MODULE,
.asynchronous_rx = true,
.irq_id = CONSOLE_IRQ,
.baud_rate = IIO_UART_BAUD_RATE,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.stop = NO_OS_UART_STOP_1_BIT,
.platform_ops = &uart_ops,
}
#define uart_extra_init_params
Definition app_config.h:78
#define IIO_UART_BAUD_RATE
Definition app_config.h:164
#define uart_ops
Definition app_config.h:87
#define UART_MODULE
Definition app_config_stm32.h:87
#define CONSOLE_IRQ
Definition app_config_stm32.h:49

◆ uart_iio_com_desc

struct no_os_uart_desc* uart_iio_com_desc

◆ uart_iio_comm_init_params

struct no_os_uart_init_param uart_iio_comm_init_params
Initial value:
= {
.device_id = UART_MODULE,
.asynchronous_rx = true,
.baud_rate = IIO_UART_BAUD_RATE,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.stop = NO_OS_UART_STOP_1_BIT,
.irq_id = UART_IRQ,
.platform_ops = &vcom_ops,
}
#define vcom_extra_init_params
Definition app_config.h:79
#define vcom_ops
Definition app_config.h:88
#define UART_IRQ
Definition app_config_stm32.h:86