Midnight Sun Firmware
Loading...
Searching...
No Matches
FotaPacket

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
 

Detailed Description

FOTA Packet structure.

Note: Only payload_length bytes in payload are meaningful. Remaining bytes (padding) must be zeroed before CRC.

Member Data Documentation

◆ crc32

uint32_t crc32

CRC32 of payload

◆ datagram_id

uint32_t datagram_id

◆ eof

uint8_t eof

End of Frame (0xBB)

◆ packet_type

FotaPacketType packet_type

Packet Type

◆ payload

uint8_t payload[FOTA_PACKET_PAYLOAD_SIZE]

Fixed-size payload (zero-padded)

◆ payload_length

uint16_t payload_length

Length of meaningful data in payload

◆ sequence_num

uint8_t sequence_num

Sequence in datagram

◆ sof

uint8_t sof

Start of Frame (0xAA)


The documentation for this struct was generated from the following file: