21#include "stm32_adv_trace.h"
65UTIL_ADV_TRACE_Status_t
vcom_Init(
void (*cb)(
void *));
72UTIL_ADV_TRACE_Status_t
vcom_ReceiveInit(
void (*RxCb)(uint8_t *rxChar, uint16_t size, uint8_t error));
85void vcom_Trace(uint8_t *p_data, uint16_t size);
93UTIL_ADV_TRACE_Status_t
vcom_Trace_DMA(uint8_t *p_data, uint16_t size);
114UTIL_ADV_TRACE_Status_t
Uart_Info(
const char *strInfo);
This file contains all the function prototypes for the dma.c file.
This file contains all the function prototypes for the usart.c file.
uint8_t charRx
buffer to receive 1 character
volatile uint8_t uart_data_ready
UTIL_ADV_TRACE_Status_t vcom_Trace_DMA(uint8_t *p_data, uint16_t size)
send buffer p_data of size size to vcom using DMA
void vcom_Resume(void)
Resume the UART and associated DMA (used by LPM).
UTIL_ADV_TRACE_Status_t Uart_Info(const char *strInfo)
Write to UART1.
void vcom_DMA_TX_IRQHandler(void)
last byte has been sent from memory to uart data register
int HAL_UART_RxCharMT(UART_HandleTypeDef *huart, uint8_t charRx)
called if char is ready from UART
void vcom_Trace(uint8_t *p_data, uint16_t size)
send buffer p_data of size size to vcom in polling mode
void vcom_IRQHandler(void)
last byte has been sent on the uart line
UTIL_ADV_TRACE_Status_t Uart_NextReceving()
continue with next reading if data arrived
UTIL_ADV_TRACE_Status_t vcom_ReceiveInit(void(*RxCb)(uint8_t *rxChar, uint16_t size, uint8_t error))
init receiver of vcom
UTIL_ADV_TRACE_Status_t Uart_StartReceving(UART_HandleTypeDef *uart)
start reading
UTIL_ADV_TRACE_Status_t vcom_DeInit(void)
DeInit the UART and associated DMA.
UTIL_ADV_TRACE_Status_t vcom_Init(void(*cb)(void *))
Init the UART and associated DMA.