![]() |
Midnight Sun Firmware
|
FOTA Packet structure. More...
#include <fota_packet.h>
Public Attributes | |
| uint8_t | sof |
| FotaPacketType | packet_type |
| uint32_t | datagram_id |
| uint8_t | sequence_num |
| uint16_t | payload_length |
| uint8_t | payload [FOTA_PACKET_PAYLOAD_SIZE] |
| uint32_t | crc32 |
| uint8_t | eof |
FOTA Packet structure.
Note: Only payload_length bytes in payload are meaningful. Remaining bytes (padding) must be zeroed before CRC.
| uint32_t crc32 |
CRC32 of payload
| uint32_t datagram_id |
Datagram ID
| uint8_t eof |
End of Frame (0xBB)
| FotaPacketType packet_type |
Packet Type
| uint8_t payload[FOTA_PACKET_PAYLOAD_SIZE] |
Fixed-size payload (zero-padded)
| uint16_t payload_length |
Length of meaningful data in payload
| uint8_t sequence_num |
Sequence in datagram
| uint8_t sof |
Start of Frame (0xAA)