riotboot_flashwrite_t Struct Reference

firmware update state structure More...

Detailed Description

firmware update state structure

Note
FLASHPAGE_SIZE can be very large on some platforms, don't place this struct on the stack or increase the thread stack size accordingly.

Definition at line 106 of file flashwrite.h.

#include <flashwrite.h>

Data Fields

int target_slot
 update targets this slot

 
size_t offset
 update is at this position

 
unsigned flashpage
 update is at this flashpage

 
uint8_t RIOTBOOT_FLASHPAGE_BUFFER_ATTRS flashpage_buf [RIOTBOOT_FLASHPAGE_BUFFER_SIZE]
 flash writing buffer
 
uint8_t RIOTBOOT_FLASHPAGE_BUFFER_ATTRS firstblock_buf [RIOTBOOT_FLASHPAGE_BUFFER_SIZE]
 Buffer for the first chunk containing the checksum when using FLASHWRITE_RAW.
 

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