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 dependency graph for app_config.c:

Functions

int32_t init_pwm (void)
 Initialize the PWM interface.
 
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_pwm_init_param pwm_init_params
 
struct no_os_pwm_init_param tx_trigger_init_params
 
struct no_os_gpio_init_param csb_gpio_init_param
 
struct no_os_dma_desc * ad7091r_dma_desc
 
struct no_os_pwm_desc * tx_trigger_desc
 
struct no_os_dma_init_param ad3530r_dma_init_param
 
struct no_os_pwm_desc * pwm_desc
 
struct no_os_uart_desc * uart_iio_com_desc
 
struct no_os_uart_desc * uart_console_stdio_desc
 
struct no_os_gpio_desc * trigger_gpio_desc
 
struct no_os_irq_ctrl_desc * trigger_irq_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) 2022-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_pwm()

int32_t init_pwm ( void  )

Initialize the PWM interface.

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

◆ 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

Variable Documentation

◆ ad3530r_dma_init_param

struct no_os_dma_init_param ad3530r_dma_init_param
Initial value:
= {
.id = 0,
.num_ch = DMA_NUM_CHANNELS,
.platform_ops = &dma_ops,
.sg_handler = (void (*)(void *))receivecomplete_callback
}
void receivecomplete_callback(DMA_HandleTypeDef *hdma)
Callback function to flag the transfer of number of requested samples.
Definition app_config_stm32.c:338
#define DMA_NUM_CHANNELS
Definition app_config_stm32.h:88
#define dma_ops
Definition app_config_stm32.h:110

◆ ad7091r_dma_desc

struct no_os_dma_desc* ad7091r_dma_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:
= {
.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 STM32_SPI_CS_PORT
Definition app_config_stm32.h:56
#define csb_gpio_extra_init_params
Definition app_config_stm32.h:97

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc

◆ pwm_desc

struct no_os_pwm_desc* pwm_desc

◆ pwm_init_params

struct no_os_pwm_init_param pwm_init_params
Initial value:
= {
.id = LDAC_PWM_ID,
.duty_cycle_ns = LDAC_PULSE_WIDTH_NS,
.polarity = NO_OS_PWM_POLARITY_LOW,
.platform_ops = &pwm_ops,
.pwm_gpio = &pwm_gpio_init_params
}
#define pwm_ops
Definition app_config.h:89
#define pwm_extra_init_params
Definition app_config.h:77
#define CONV_TRIGGER_PERIOD_NSEC
Definition app_config_mbed.h:57
#define LDAC_PWM_ID
Definition app_config_stm32.h:69
#define MAX_SAMPLING_RATE
Definition app_config_stm32.h:121

◆ trigger_gpio_desc

struct no_os_gpio_desc* trigger_gpio_desc

◆ trigger_gpio_irq_params

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

◆ 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_params

struct no_os_pwm_init_param tx_trigger_init_params
Initial value:
= {
.id = TIMER8_ID,
.period_ns = TX_TRIGGER_PERIOD,
.duty_cycle_ns = TX_TRIGGER_DUTY_CYCLE_NS,
.polarity = NO_OS_PWM_POLARITY_LOW,
.platform_ops = &pwm_ops,
}
#define TX_TRIGGER_DUTY_CYCLE_NS
Definition app_config_stm32.h:133
#define TX_TRIGGER_PERIOD
Definition app_config_stm32.h:132
#define tx_trigger_extra_init_params
Definition app_config_stm32.h:100
#define TIMER8_ID
Definition app_config_stm32.h:79

◆ 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_ID,
.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_ID
Definition app_config_stm32.h:76

◆ 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_ID,
.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,
.asynchronous_rx = true,
.irq_id = UART_IRQ_ID,
.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_ID
Definition app_config_stm32.h:43