precision-converters-firmware
|
Header file for STM32 platform configurations. More...
#include "main.h"
#include "stm32_spi.h"
#include "stm32_i2c.h"
#include "stm32_uart.h"
#include "stm32_gpio.h"
#include "app_config.h"
#include "stm32_gpio_irq.h"
#include "stm32_tdm.h"
Go to the source code of this file.
Macros | |
#define | HW_CARRIER_NAME NUCLEO-H563ZI |
#define | STM32_SPI_ID 1 |
#define | STM32_SPI_CS_PORT 3 |
#define | SPI_CSB 14 |
#define | STM32_I2C_ID 1 |
#define | APP_UART_HANDLE &huart3 |
#define | DIG_AUX_1 14 |
#define | DIG_AUX_2 12 |
#define | SYNC_INB 14 |
#define | LED_GPO LED1_GREEN_Pin |
#define | DIG_AUX_1_PORT 6 |
#define | DIG_AUX_2_PORT 6 |
#define | SYNC_INB_PORT 4 |
#define | GPIO_TRIGGER_INT_PORT EXTI_GPIOG |
#define | I2C_TIMING 0x00000E14 |
#define | TDM_DATA_SIZE 32 |
#define | TDM_SLOTS_PER_FRAME 1 |
#define | TDM_FS_ACTIVE_LENGTH 8 |
#define | TDM_N_SAMPLES_DMA_READ 800 |
#define | TDM_DMA_READ_SIZE TDM_N_SAMPLES_DMA_READ * TDM_SLOTS_PER_FRAME/2 |
#define | STM32_SAI_BASE SAI1_Block_A |
#define | FS_CONFIG_VALUE 20 |
#define | TICKER_INTERRUPT_PERIOD_uSEC (0) |
#define | AD4170_MAX_SPI_SPEED 20000000 |
Functions | |
void | tim8_config (void) |
Configure Tx Trigger timer. More... | |
void | stm32_timer_stop (void) |
Stops generating timer signals. More... | |
void | stm32_system_init (void) |
Initialize the STM32 system peripherals. More... | |
void | stm32_abort_dma_transfer (void) |
Abort ongoing SPI RX DMA transfer. More... | |
void | ad4170_dma_rx_cplt (SAI_HandleTypeDef *hsai) |
SAI DMA Receive Complete Callback function. More... | |
void | ad4170_dma_rx_half_cplt (SAI_HandleTypeDef *hsai) |
SAI DMA Receive Half Complete Callback function. More... | |
void | ad4170_spi_dma_rx_cplt_callback (DMA_HandleTypeDef *hdma) |
Callback function to flag the capture of number of requested samples. More... | |
void | ad4170_spi_dma_rx_half_cplt_callback (DMA_HandleTypeDef *hdma) |
Callback function to flag the capture of Half the number of requested samples. More... | |
void | update_buff (uint32_t *local_buf, uint32_t *buf_start_addr) |
Update buffer index. More... | |
void | tim8_init (struct no_os_pwm_desc *pwm_desc) |
Initialize Tx trigger advanced PWM parameters. More... | |
void | MX_USB_DEVICE_Init (void) |
Variables | |
struct stm32_spi_init_param | stm32_spi_extra_init_params |
struct stm32_uart_init_param | stm32_uart_extra_init_params |
struct stm32_gpio_init_param | stm32_trigger_gpio_extra_init_params |
struct stm32_gpio_init_param | stm32_dig_aux1_gpio_extra_init_params |
struct stm32_gpio_init_param | stm32_dig_aux2_gpio_extra_init_params |
struct stm32_gpio_init_param | stm32_sync_inb_gpio_extra_init_params |
struct stm32_gpio_init_param | stm32_csb_gpio_extra_init_params |
struct stm32_gpio_irq_init_param | stm32_trigger_gpio_irq_init_params |
struct stm32_tdm_init_param | stm32_tdm_extra_init_params |
struct stm32_i2c_init_param | stm32_i2c_extra_init_params |
UART_HandleTypeDef | huart3 |
bool | data_capture_operation |
struct iio_device_data * | ad4170_iio_dev_data |
uint8_t | num_of_active_channels |
volatile bool | tdm_read_started |
volatile struct iio_device_data * | iio_dev_data_g |
uint32_t | nb_of_samples_g |
volatile uint32_t * | buff_start_addr |
int32_t | data_read |
uint32_t | rxdma_ndtr |
volatile bool | ad4170_dma_buff_full |
uint32_t | dma_cycle_count |
struct stm32_spi_desc * | sdesc |
Header file for STM32 platform configurations.
Copyright (c) 2023-24 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.
#define AD4170_MAX_SPI_SPEED 20000000 |
#define APP_UART_HANDLE &huart3 |
#define DIG_AUX_1 14 |
#define DIG_AUX_1_PORT 6 |
#define DIG_AUX_2 12 |
#define DIG_AUX_2_PORT 6 |
#define FS_CONFIG_VALUE 20 |
#define GPIO_TRIGGER_INT_PORT EXTI_GPIOG |
#define HW_CARRIER_NAME NUCLEO-H563ZI |
#define I2C_TIMING 0x00000E14 |
#define LED_GPO LED1_GREEN_Pin |
#define SPI_CSB 14 |
#define STM32_I2C_ID 1 |
#define STM32_SAI_BASE SAI1_Block_A |
#define STM32_SPI_CS_PORT 3 |
#define STM32_SPI_ID 1 |
#define SYNC_INB 14 |
#define SYNC_INB_PORT 4 |
#define TDM_DATA_SIZE 32 |
#define TDM_DMA_READ_SIZE TDM_N_SAMPLES_DMA_READ * TDM_SLOTS_PER_FRAME/2 |
#define TDM_FS_ACTIVE_LENGTH 8 |
#define TDM_N_SAMPLES_DMA_READ 800 |
#define TDM_SLOTS_PER_FRAME 1 |
#define TICKER_INTERRUPT_PERIOD_uSEC (0) |
void ad4170_dma_rx_cplt | ( | SAI_HandleTypeDef * | hsai | ) |
SAI DMA Receive Complete Callback function.
hsai | - pointer to a SAI_HandleTypeDef structure |
void ad4170_dma_rx_half_cplt | ( | SAI_HandleTypeDef * | hsai | ) |
SAI DMA Receive Half Complete Callback function.
hsai | - pointer to a SAI_HandleTypeDef structure |
void ad4170_spi_dma_rx_cplt_callback | ( | DMA_HandleTypeDef * | hdma | ) |
Callback function to flag the capture of number of requested samples.
hdma | - DMA handler (Unused) |
void ad4170_spi_dma_rx_half_cplt_callback | ( | DMA_HandleTypeDef * | hdma | ) |
Callback function to flag the capture of Half the number of requested samples.
hdma | - DMA Handler (Unused) |
void MX_USB_DEVICE_Init | ( | void | ) |
void stm32_abort_dma_transfer | ( | void | ) |
Abort ongoing SPI RX DMA transfer.
Abort ongoing SPI RX DMA transfer.
void stm32_system_init | ( | void | ) |
Initialize the STM32 system peripherals.
void stm32_timer_stop | ( | void | ) |
Stops generating timer signals.
Stops generating timer signals.
void tim8_config | ( | void | ) |
Configure Tx Trigger timer.
void tim8_init | ( | struct no_os_pwm_desc * | pwm_desc | ) |
Initialize Tx trigger advanced PWM parameters.
pwm_desc[in,out] |
void update_buff | ( | uint32_t * | local_buf, |
uint32_t * | buf_start_addr | ||
) |
Update buffer index.
local_buf[out] | - Local Buffer |
buf_start_addr[out] | - Buffer start addr |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |