XMODEM Parser#
Parser for XMODEM packets.
XMODEM packet parser supporting XMODEM-CRC.
Modules#
Functions#
void
xmodem_reset(void)
Reset the XMODEM parser to start a new transfer.
int32_t
xmodem_parsePacket(const XmodemPacket_t *packet, uint8_t *response)
Parse an XMODEM packet.
uint8_t
Return the packet number of the last packet that was successfully parsed.
Macros#
#define
XMODEM_DATA_SIZE 128
Size of an XMODEM packet.
Function Documentation#
xmodem_reset#
void xmodem_reset (void )
Reset the XMODEM parser to start a new transfer.
Parameters
N/A |
Definition at line
84
of file platform/bootloader/communication/xmodem-parser/btl_xmodem.h
xmodem_parsePacket#
int32_t xmodem_parsePacket (const XmodemPacket_t * packet, uint8_t * response)
Parse an XMODEM packet.
Parameters
[in] | packet | The XMODEM packet to parse. |
[out] | response | The XMODEM response to the parsed frame |
Returns
BOOTLOADER_OK on success, else error code
Definition at line
94
of file platform/bootloader/communication/xmodem-parser/btl_xmodem.h
xmodem_getLastPacketNumber#
uint8_t xmodem_getLastPacketNumber (void )
Return the packet number of the last packet that was successfully parsed.
Parameters
N/A |
Returns
Last packet number received. Defaults to 0 if nothing has been received yet.
Definition at line
102
of file platform/bootloader/communication/xmodem-parser/btl_xmodem.h