|
Open Model Railroad Network (OpenMRN)
|
Strategy module for finding flash erase sector numbers when the sectors are constant size. More...
#include <Stm32Flash.hxx>
Static Public Member Functions | |
| static uint32_t | next_sector_address (uint32_t addr) |
| Aligns an address to the next possible sector start (i.e., rounds up to sector boundary). | |
| static std::pair< unsigned, uint32_t > | lookup_sector (uint32_t addr) |
| Lookup the next sector for an address, and return the {sector number, address} pair. | |
Strategy module for finding flash erase sector numbers when the sectors are constant size.
Definition at line 44 of file Stm32Flash.hxx.
|
inlinestatic |
Lookup the next sector for an address, and return the {sector number, address} pair.
Definition at line 61 of file Stm32Flash.hxx.
|
inlinestatic |
Aligns an address to the next possible sector start (i.e., rounds up to sector boundary).
| addr | an address in the flash address space. |
Definition at line 51 of file Stm32Flash.hxx.