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

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.
 

Detailed Description

Datagram message definition.

Member Data Documentation

◆ ack_status

uint8_t ack_status

0: ACK 1: NACK

◆ bootloader_error

uint16_t bootloader_error

Bootloader error as per BootloaderError definition

◆ crc32

uint32_t crc32

Flash chunk CRC32 checksum

◆ data

uint8_t* data

Pointer to buffer containing message data

◆ data_len

uint32_t data_len

Incoming data length (ie: Binary size)

◆ datagram_type_id

uint8_t datagram_type_id

Message Id (CAN arbitration Id)

◆ node_ids

uint16_t node_ids

Target MCU Id

◆ sequence_num

uint16_t sequence_num

Sequence number


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