precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
app_config.c File Reference

Application configurations module. More...

#include <stdbool.h>
#include "app_config.h"
#include "common.h"
#include "no_os_error.h"
#include "no_os_uart.h"
#include "no_os_irq.h"
#include "no_os_gpio.h"
#include "no_os_i2c.h"
#include "no_os_eeprom.h"
#include "no_os_tdm.h"
#include "no_os_pwm.h"
#include "pl_gui_events.h"
#include "pl_gui_views.h"
Include dependency graph for app_config.c:

Functions

void lvgl_tick_callback (void *ctx)
 lvgl tick update callback function for pocket lab
 
int32_t init_system (void)
 Initialize the system peripherals.
 

Variables

struct no_os_uart_init_param uart_init_params
 
struct no_os_gpio_init_param gpio_init_ldac_n
 
struct no_os_gpio_init_param gpio_init_rdy
 
struct no_os_gpio_init_param gpio_init_sync_inb
 
struct no_os_gpio_init_param trigger_gpio_param
 
struct no_os_tdm_init_param tdm_init_param
 
struct no_os_tdm_desc * ad4170_tdm_desc
 
struct no_os_dma_init_param ad4170_dma_init_param
 
struct no_os_pwm_init_param tx_trigger_init_param
 
struct no_os_pwm_desc * tx_trigger_desc
 
struct no_os_gpio_init_param csb_gpio_init_param
 
struct no_os_gpio_desc * led_gpio_desc = NULL
 
struct no_os_uart_desc * uart_desc
 
struct no_os_gpio_desc * trigger_gpio_desc
 
struct no_os_irq_ctrl_desc * trigger_irq_desc
 
struct no_os_irq_ctrl_desc * ticker_int_desc
 
struct no_os_eeprom_desc * eeprom_desc
 
struct no_os_gpio_desc * csb_gpio_desc
 

Detailed Description

Application configurations module.

This module contains the configurations needed for IIO application

Copyright (c) 2021-25 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_system()

int32_t init_system ( void  )

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise

◆ lvgl_tick_callback()

void lvgl_tick_callback ( void *  ctx)

lvgl tick update callback function for pocket lab

Parameters
ctx[in]- callback context
Returns
none

Variable Documentation

◆ ad4170_dma_init_param

struct no_os_dma_init_param ad4170_dma_init_param
Initial value:
= {
.id = 0,
.platform_ops = &dma_ops,
}
#define dma_ops
Definition app_config_stm32.h:110
void ad4170_spi_dma_rx_cplt_callback(DMA_HandleTypeDef *hdma)
Callback function to flag the capture of number of requested samples.
Definition app_config_stm32.c:266
#define AD469x_DMA_NUM_CHANNELS
Definition app_config_stm32.h:112

◆ ad4170_tdm_desc

struct no_os_tdm_desc* ad4170_tdm_desc

◆ 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 = CSB_GPIO_PORT,
.number = SPI_CSB,
.pull = NO_OS_PULL_NONE,
.platform_ops = &gpio_ops,
}
#define gpio_ops
Definition app_config.h:85
#define SPI_CSB
Definition app_config_mbed.h:33
#define csb_gpio_extra_init_params
Definition app_config_stm32.h:97

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc

◆ gpio_init_ldac_n

struct no_os_gpio_init_param gpio_init_ldac_n
Initial value:
= {
.number = DIG_AUX_2,
.port = DIG_AUX_2_PORT,
.platform_ops = &gpio_ops,
}
#define gpio_dig_aux2_extra_init_params
Definition app_config.h:162
#define DIG_AUX_2_PORT
Definition app_config_mbed.h:69
#define DIG_AUX_2
Definition app_config_mbed.h:62

◆ gpio_init_rdy

struct no_os_gpio_init_param gpio_init_rdy
Initial value:
= {
.number = DIG_AUX_1,
.port = DIG_AUX_1_PORT,
.platform_ops = &gpio_ops,
}
#define gpio_dig_aux1_extra_init_params
Definition app_config.h:161
#define DIG_AUX_1
Definition app_config_mbed.h:61
#define DIG_AUX_1_PORT
Definition app_config_mbed.h:68

◆ gpio_init_sync_inb

struct no_os_gpio_init_param gpio_init_sync_inb
Initial value:
= {
.number = SYNC_INB,
.port = SYNC_INB_PORT,
.platform_ops = &gpio_ops,
}
#define gpio_sync_inb_extra_init_params
Definition app_config.h:163
#define SYNC_INB
Definition app_config_mbed.h:60
#define SYNC_INB_PORT
Definition app_config_mbed.h:70

◆ led_gpio_desc

struct no_os_gpio_desc* led_gpio_desc = NULL

◆ tdm_init_param

struct no_os_tdm_init_param tdm_init_param
Initial value:
= {
.mode = NO_OS_TDM_SLAVE_RX,
.data_size = TDM_DATA_SIZE,
.data_offset = 0,
.data_lsb_first = false,
.slots_per_frame = TDM_SLOTS_PER_FRAME,
.fs_active_low = true,
.fs_active_length = TDM_FS_ACTIVE_LENGTH,
.fs_lastbit = false,
.rising_edge_sampling = false,
.irq_id = DMA_IRQ_ID,
.rx_complete_callback = ad4170_dma_rx_cplt,
.rx_half_complete_callback = ad4170_dma_rx_half_cplt,
.platform_ops = &tdm_ops
}
void ad4170_dma_rx_half_cplt(SAI_HandleTypeDef *hsai)
SAI DMA Receive Half Complete Callback function.
Definition app_config_stm32.c:207
void ad4170_dma_rx_cplt(SAI_HandleTypeDef *hsai)
SAI DMA Receive Complete Callback function.
Definition app_config_stm32.c:224
#define TDM_FS_ACTIVE_LENGTH
Definition app_config_stm32.h:124
#define TDM_SLOTS_PER_FRAME
Definition app_config_stm32.h:123
#define TDM_DATA_SIZE
Definition app_config_stm32.h:122
#define tdm_extra_init_params
Definition app_config.h:109
#define DMA_IRQ_ID
Definition app_config_stm32.h:81

◆ ticker_int_desc

struct no_os_irq_ctrl_desc* ticker_int_desc

◆ trigger_gpio_desc

struct no_os_gpio_desc* trigger_gpio_desc

◆ trigger_gpio_param

struct no_os_gpio_init_param trigger_gpio_param
Initial value:
= {
.number = TRIGGER_GPIO_PIN,
.pull = NO_OS_PULL_NONE,
.platform_ops = &gpio_ops,
}
#define TRIGGER_GPIO_PIN
Definition app_config.h:94
#define TRIGGER_GPIO_PORT
Definition app_config.h:93
#define trigger_gpio_extra_init_params
Definition app_config.h:82

◆ 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:
= {
.id = TX_TRIGGER_TIMER_ID,
.period_ns = TX_TRIGGER_PERIOD,
.duty_cycle_ns = TX_TRIGGER_DUTY_RATIO,
.polarity = NO_OS_PWM_POLARITY_HIGH,
.platform_ops = &pwm_ops,
}
#define pwm_ops
Definition app_config.h:89
#define TX_TRIGGER_PERIOD
Definition app_config_stm32.h:132
#define tx_trigger_extra_init_params
Definition app_config_stm32.h:100
#define TX_TRIGGER_DUTY_RATIO
Definition app_config_stm32.h:116

◆ uart_desc

struct no_os_uart_desc* uart_desc

◆ uart_init_params

struct no_os_uart_init_param uart_init_params
Initial value:
= {
.device_id = NULL,
.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 = &vcom_ops,
}
#define IIO_UART_BAUD_RATE
Definition app_config.h:164
#define vcom_extra_init_params
Definition app_config.h:79
#define vcom_ops
Definition app_config.h:88