![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
USB transport: UART -> ST-LINK Virtual COM Port (USART1 on the NUCLEO-WB55). More...
#include <stdint.h>#include "main.h"Go to the source code of this file.
Functions | |
| int | tlm_uart_init (UART_HandleTypeDef *huart) |
| int | tlm_uart_send (const uint8_t *buf, uint16_t len, uint32_t timeout_ms) |
| Non-blocking beyond timeout_ms: if the previous DMA has not finished, the frame is dropped. | |
| void | tlm_uart_tx_cplt_isr (UART_HandleTypeDef *huart) |
| To be called from HAL_UART_TxCpltCallback() (see 03 - Docs/firmware/build.md) | |
| uint32_t | tlm_uart_dropped (void) |
USB transport: UART -> ST-LINK Virtual COM Port (USART1 on the NUCLEO-WB55).
Definition in file tlm_uart.h.
| int tlm_uart_init | ( | UART_HandleTypeDef * | huart | ) |
Definition at line 16 of file tlm_uart.c.
References s_huart, and s_txFree.
Referenced by TelemetryTask().
| int tlm_uart_send | ( | const uint8_t * | buf, |
| uint16_t | len, | ||
| uint32_t | timeout_ms | ||
| ) |
Non-blocking beyond timeout_ms: if the previous DMA has not finished, the frame is dropped.
Definition at line 23 of file tlm_uart.c.
References s_dmaBuf, s_dropped, s_huart, s_txFree, and TLM_UART_BUF.
Referenced by tx_frame().
| void tlm_uart_tx_cplt_isr | ( | UART_HandleTypeDef * | huart | ) |
To be called from HAL_UART_TxCpltCallback() (see 03 - Docs/firmware/build.md)
Definition at line 36 of file tlm_uart.c.
References s_huart, and s_txFree.
Referenced by app_uart_tx_cplt().
| uint32_t tlm_uart_dropped | ( | void | ) |
Definition at line 41 of file tlm_uart.c.
References s_dropped.
Referenced by send_status().