Skyward boardcore
|
#include <ConsoleTransceiver.h>
Public Member Functions | |
bool | send (uint8_t *pkt, size_t len) |
Send a packet. | |
ssize_t | receive (uint8_t *pkt, size_t len) |
Wait until a new packet is received. | |
![]() | |
Transceiver () | |
virtual | ~Transceiver () |
Definition at line 31 of file ConsoleTransceiver.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 40 of file ConsoleTransceiver.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 34 of file ConsoleTransceiver.h.