|
Skyward boardcore
|
#include <SerialTransceiver.h>


Public Member Functions | |
| SerialTransceiver (USARTInterface &usart) | |
| bool | send (uint8_t *packet, size_t packetLength) |
| Send a packet. | |
| ssize_t | receive (uint8_t *packet, size_t packetLength) |
| Wait until a new packet is received. | |
Public Member Functions inherited from Boardcore::Transceiver | |
| Transceiver () | |
| virtual | ~Transceiver () |
Definition at line 34 of file SerialTransceiver.h.
|
inline |
Definition at line 37 of file SerialTransceiver.h.
|
inlinevirtual |
Wait until a new packet is received.
| packet | Buffer to store the packet (at least packetLength bytes). |
| packetLength | Maximum length of the received data. |
Implements Boardcore::Transceiver.
Definition at line 45 of file SerialTransceiver.h.
|
inlinevirtual |
Send a packet.
The function must block the thread until the packet is sent (successfully or not).
| packet | Pointer to the packet (at least packetLength bytes). |
| packetLength | Length of the packet to be sent. |
Implements Boardcore::Transceiver.
Definition at line 39 of file SerialTransceiver.h.