Loading...
Searching...
No Matches
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.
 

Field Documentation

◆ firstblock_buf

uint8_t RIOTBOOT_FLASHPAGE_BUFFER_ATTRS riotboot_flashwrite_t::firstblock_buf[RIOTBOOT_FLASHPAGE_BUFFER_SIZE]

Buffer for the first chunk containing the checksum when using FLASHWRITE_RAW.

Definition at line 122 of file flashwrite.h.

◆ flashpage

unsigned riotboot_flashwrite_t::flashpage

update is at this flashpage

Definition at line 109 of file flashwrite.h.

◆ flashpage_buf

uint8_t RIOTBOOT_FLASHPAGE_BUFFER_ATTRS riotboot_flashwrite_t::flashpage_buf[RIOTBOOT_FLASHPAGE_BUFFER_SIZE]

flash writing buffer

Definition at line 115 of file flashwrite.h.

◆ offset

size_t riotboot_flashwrite_t::offset

update is at this position

Definition at line 108 of file flashwrite.h.

◆ target_slot

int riotboot_flashwrite_t::target_slot

update targets this slot

Definition at line 107 of file flashwrite.h.


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