HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
|
UART terminal. More...
Functions | |
FctERR | UART_Term_Init (UART_HandleTypeDef *const huart, const size_t len) |
Initialize UART terminal. | |
FctERR | UART_Term_Launch_It_Rx (UART_HandleTypeDef *const huart) |
Start UART SERIAL DEBUG Rx interruptions. | |
FctERR | UART_Term_Wait_Ready (UART_HandleTypeDef *const huart) |
Waiting for UART global state to be ready for next transmission. | |
FctERR | UART_Term_Flush_RxBuf (UART_HandleTypeDef *const huart) |
Clear buffer in used for SERIAL DEBUG. | |
FctERR | UART_Term_Send (UART_HandleTypeDef *const huart, const char *str, const size_t len) |
Sends string to UART. | |
FctERR | UART_Term_Message_Handler (const char *msg, const size_t len) |
Treat fully received message. | |
void | UART_Term_RxCpltCallback (UART_HandleTypeDef *const huart) |
UART Term Rx Transfer completed callback. | |
void | HAL_UART_RxCpltCallback (UART_HandleTypeDef *huart) |
Rx Transfer completed callback. | |
Variables | |
char | breakout_char = '!' |
breakout char (message complete) | |
UART_HandleTypeDef * | dbg_uart |
Instance of UART debug terminal. | |
UART terminal.
void HAL_UART_RxCpltCallback | ( | UART_HandleTypeDef * | huart | ) |
Rx Transfer completed callback.
[in,out] | huart | - UART handle |
FctERR UART_Term_Flush_RxBuf | ( | UART_HandleTypeDef *const | huart | ) |
Clear buffer in used for SERIAL DEBUG.
[in] | huart | - UART handle |
FctERR UART_Term_Init | ( | UART_HandleTypeDef *const | huart, |
const size_t | len ) |
Initialize UART terminal.
[in] | huart | - UART handle |
[in] | len | - buffer length |
FctERR UART_Term_Launch_It_Rx | ( | UART_HandleTypeDef *const | huart | ) |
Start UART SERIAL DEBUG Rx interruptions.
[in] | huart | - UART handle |
FctERR UART_Term_Message_Handler | ( | const char * | msg, |
const size_t | len ) |
Treat fully received message.
[in] | msg | - pointer to received message |
[in] | len | - received message length |
void UART_Term_RxCpltCallback | ( | UART_HandleTypeDef *const | huart | ) |
UART Term Rx Transfer completed callback.
[in,out] | huart | - UART handle |
FctERR UART_Term_Send | ( | UART_HandleTypeDef *const | huart, |
const char * | str, | ||
const size_t | len ) |
Sends string to UART.
[in] | huart | - UART handle |
[in] | str | - pointer to string to send |
[in] | len | - length of string |
FctERR UART_Term_Wait_Ready | ( | UART_HandleTypeDef *const | huart | ) |
Waiting for UART global state to be ready for next transmission.
[in] | huart | - UART handle |
char breakout_char = '!' |
breakout char (message complete)
UART_HandleTypeDef* dbg_uart |
Instance of UART debug terminal.
UART debug terminal instance.