embassy-stm32

Crates

git

Versions

stm32c5a3zg

Flavors

Skip to main content

Module flash

Module flash 

Source
Expand description

Flash memory (FLASH)

Structs§

Bank1Region
Bank2Region
Flash
Internal flash memory driver.
FlashLayout
FlashRegion
Flash memory region
FlashSector
Flash sector.

Enums§

Async
Async flash mode typestate.
Blocking
Blocking flash mode typestate.
EDataBank
A physical EDATA flash bank.
Error
Flash error
FlashBank
Flash bank.

Constants§

BANK1_REGION
BANK2_REGION
EDATA_BANK_SIZE
Size in bytes of one physical EDATA bank.
EDATA_PAGE_SIZE
Size in bytes of one erasable EDATA page.
EDATA_WRITE_SIZE
Minimum EDATA write size and required write alignment, in bytes.
FLASH_BASE
FLASH_REGIONS
FLASH_SIZE
MAX_ERASE_SIZE
READ_SIZE
Read size (always 1)
WRITE_SIZE

Functions§

banks_swapped
Get the current SWAP_BANK option.
get_flash_regions
Get all flash regions.
perform_bank_swap
Logical, persistent swap of flash banks 1 and 2.