Midnight Sun Firmware
|
Datagram message definition. More...
#include <bootloader_can_datagram.h>
Public Attributes | |
uint8_t | datagram_type_id |
union { | |
struct { | |
uint16_t node_ids | |
uint32_t data_len | |
} start | |
Start message definition. | |
struct { | |
uint16_t sequence_num | |
uint32_t crc32 | |
} sequencing | |
Sequencing message definition. | |
struct { | |
uint8_t * data | |
} data | |
Data message definition. | |
struct { | |
uint16_t node_ids | |
} jump_app | |
Jump application message definition. | |
struct { | |
uint8_t ack_status | |
uint16_t bootloader_error | |
} ack | |
ACK/NACK message definition. | |
} | payload |
CAN Payload union. | |
Datagram message definition.
uint8_t ack_status |
0: ACK 1: NACK
uint16_t bootloader_error |
Bootloader error as per BootloaderError definition
uint32_t crc32 |
Flash chunk CRC32 checksum
uint8_t* data |
Pointer to buffer containing message data
uint32_t data_len |
Incoming data length (ie: Binary size)
uint8_t datagram_type_id |
Message Id (CAN arbitration Id)
uint16_t node_ids |
Target MCU Id
uint16_t sequence_num |
Sequence number