ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
tlm_uart.h File Reference

USB transport: UART -> ST-LINK Virtual COM Port (USART1 on the NUCLEO-WB55). More...

#include <stdint.h>
#include "main.h"
Include dependency graph for tlm_uart.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

USB transport: UART -> ST-LINK Virtual COM Port (USART1 on the NUCLEO-WB55).

Definition in file tlm_uart.h.

Function Documentation

◆ tlm_uart_init()

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().

Here is the caller graph for this function:

◆ tlm_uart_send()

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().

Here is the caller graph for this function:

◆ tlm_uart_tx_cplt_isr()

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().

Here is the caller graph for this function:

◆ tlm_uart_dropped()

uint32_t tlm_uart_dropped ( void  )

Definition at line 41 of file tlm_uart.c.

References s_dropped.

Referenced by send_status().

Here is the caller graph for this function: