![]() |
Midnight Sun Firmware
|
FOTA Packet structure. More...
#include <fota_packet.h>
Public Attributes | |
uint32_t | crc32 |
uint32_t | datagram_id |
FotaPacketType | packet_type |
uint16_t | payload_length |
uint8_t | sequence_num |
uint8_t | sof |
uint8_t | eof |
uint8_t | _reserved_padding |
uint8_t | payload [FOTA_PACKET_PAYLOAD_SIZE] |
FOTA Packet structure.
uint8_t _reserved_padding |
Reserved padding byte
uint32_t crc32 |
CRC32 on the packet
uint32_t datagram_id |
Datagram ID to match the packet to
uint8_t eof |
Packet end of frame (0xBB)
FotaPacketType packet_type |
Packet type
uint8_t payload[FOTA_PACKET_PAYLOAD_SIZE] |
Payload data
uint16_t payload_length |
Payload length
uint8_t sequence_num |
Sequence number of the packet within the 8-packet datagram
uint8_t sof |
Packet start of frame (0xAA)