#include <Stm32UartTransport.h>
◆ Stm32UartTransport() [1/2]
| Stm32UartTransport::Stm32UartTransport |
( |
| ) |
|
|
inline |
◆ Stm32UartTransport() [2/2]
| Stm32UartTransport::Stm32UartTransport |
( |
UART_HandleTypeDef * | huart | ) |
|
|
inline |
◆ ~Stm32UartTransport()
| Stm32UartTransport::~Stm32UartTransport |
( |
| ) |
|
|
inline |
◆ Close()
| virtual void Stm32UartTransport::Close |
( |
| ) |
|
|
inlinevirtual |
◆ Create()
| int Stm32UartTransport::Create |
( |
UART_HandleTypeDef * | huart | ) |
|
|
inline |
Initialize the Transport and enable UART Interrupts.
- Parameters
-
| huart | Pointer to the HAL UART handle (e.g., &huart6). |
- Returns
- 0 on success, -1 on failure.
◆ OnRxCplt()
| void Stm32UartTransport::OnRxCplt |
( |
| ) |
|
|
inline |
Called by HAL_UART_RxCpltCallback when a byte arrives.
◆ Receive()
Receive data from a remote
- Parameters
-
| [out] | is | The received incoming data bytes, not including the header. |
| [out] | header | Incoming delegate message header. |
- Returns
- 0 if success.
Implements ITransport.
◆ Send()
Send data to a remote
- Parameters
-
| [in] | os | Output stream to send. |
| [in] | header | The header to send. |
- Returns
- 0 if success.
Implements ITransport.
◆ SetRecvTransport()
| void Stm32UartTransport::SetRecvTransport |
( |
ITransport * | rt | ) |
|
|
inline |
◆ SetSendTransport()
| void Stm32UartTransport::SetSendTransport |
( |
ITransport * | st | ) |
|
|
inline |
◆ SetTransportMonitor()
The documentation for this class was generated from the following file: