modm API documentation
modm::platform::Flash Class Reference

Public Typedefs

using MaxWordType = uint64_t
 

Static Public Member Functions

static void enable ()
 
static void disable ()
 
static bool isLocked ()
 
static bool isBusy ()
 
static bool unlock ()
 
static uint8_t getSector (uint8_t *ptr)
 
static uint8_t getSector (uintptr_t offset)
 
static uint8_t getPage (uint8_t *ptr)
 
static uint8_t getPage (uintptr_t offset)
 
static uint8_t * getAddr (uint8_t page)
 
static uint32_t getOffset (uint8_t page)
 
static size_t getSize (uint8_t page)
 
static uint32_t erase (uint8_t page)
 
static uint32_t program (uintptr_t addr, MaxWordType data)
 

Static Public Attributes

static constexpr uintptr_t OriginAddr { 0x8000000 }
 
static constexpr size_t Size { 0x20000 }
 
static uint8_t *const Origin {(uint8_t*)OriginAddr}
 

The documentation for this class was generated from the following files: