ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
tlm_uart.h
Go to the documentation of this file.
1
5#ifndef TLM_UART_H
6#define TLM_UART_H
7
8#include <stdint.h>
9#include "main.h" /* UART_HandleTypeDef (CubeMX) */
10
11int tlm_uart_init(UART_HandleTypeDef *huart);
13int tlm_uart_send(const uint8_t *buf, uint16_t len, uint32_t timeout_ms);
15void tlm_uart_tx_cplt_isr(UART_HandleTypeDef *huart);
16uint32_t tlm_uart_dropped(void);
17
18#endif /* TLM_UART_H */
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 tlm_uart.c:23
uint32_t tlm_uart_dropped(void)
Definition tlm_uart.c:41
int tlm_uart_init(UART_HandleTypeDef *huart)
Definition tlm_uart.c:16
void tlm_uart_tx_cplt_isr(UART_HandleTypeDef *huart)
To be called from HAL_UART_TxCpltCallback() (see 03 - Docs/firmware/build.md)
Definition tlm_uart.c:36