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

Private Bootloader State Storage. More...

#include <bootloader.h>

Public Attributes

uintptr_t application_start
 
uintptr_t current_write_address
 
uint32_t bytes_written
 
uint32_t data_size
 
uint32_t packet_crc32
 
uint16_t expected_sequence_number
 
uint16_t buffer_index
 
BootloaderStates state
 
BootloaderError error
 
uint16_t target_nodes
 
bool first_byte_received
 

Detailed Description

Private Bootloader State Storage.

Member Data Documentation

◆ application_start

uintptr_t application_start

Application start address

◆ buffer_index

uint16_t buffer_index

Data buffer index for correct reading/writing

◆ bytes_written

uint32_t bytes_written

Number of bytes written to flash

◆ current_write_address

uintptr_t current_write_address

Current write address

◆ data_size

uint32_t data_size

Data size (ie: Binary application size)

◆ error

Bootloader error tracker

◆ expected_sequence_number

uint16_t expected_sequence_number

Next expected sequence number for validation

◆ first_byte_received

bool first_byte_received

Boolean flag to track if the first byte was received

◆ packet_crc32

uint32_t packet_crc32

Packet CRC32 if available

◆ state

Internal state tracker

◆ target_nodes

uint16_t target_nodes

Target MCU Ids


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