NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MockFlash Struct Reference

Public Member Functions

uint8_t * data ()
 
void init ()
 
int64_t toOffset (uint32_t address) const
 
bool inBounds (uint32_t address, int count) const
 
FLASH_Status erase (uint32_t address)
 
FLASH_Status program (uint32_t address, uint32_t value)
 
void init ()
 
int64_t toOffset (uint32_t address) const
 
bool inBounds (uint32_t address, int count) const
 
FLASH_Status erase (uint32_t address)
 
FLASH_Status program (uint32_t address, uint32_t value)
 

Data Fields

int64_t wroteTo
 
bool unlocked
 
int erases
 
int writes
 
uint8_t data [PageSize *8]
 

Static Public Attributes

static const int Capacity = 8192
 
static const int PageSize = 1024
 
static const uintptr_t Base = 0x08000000
 

Member Function Documentation

uint8_t* MockFlash::data ( )
inline
FLASH_Status MockFlash::erase ( uint32_t  address)
inline

Here is the call graph for this function:

FLASH_Status MockFlash::erase ( uint32_t  address)
inline

Here is the call graph for this function:

bool MockFlash::inBounds ( uint32_t  address,
int  count 
) const
inline

Here is the call graph for this function:

bool MockFlash::inBounds ( uint32_t  address,
int  count 
) const
inline

Here is the call graph for this function:

void MockFlash::init ( )
inline

Here is the call graph for this function:

void MockFlash::init ( )
inline

Here is the call graph for this function:

FLASH_Status MockFlash::program ( uint32_t  address,
uint32_t  value 
)
inline

Here is the call graph for this function:

FLASH_Status MockFlash::program ( uint32_t  address,
uint32_t  value 
)
inline

Here is the call graph for this function:

int64_t MockFlash::toOffset ( uint32_t  address) const
inline
int64_t MockFlash::toOffset ( uint32_t  address) const
inline

Field Documentation

const uintptr_t MockFlash::Base = 0x08000000
static
const int MockFlash::Capacity = 8192
static
uint8_t MockFlash::data[PageSize *8]
int MockFlash::erases
static const int MockFlash::PageSize = 1024
static
bool MockFlash::unlocked
int MockFlash::writes
int64_t MockFlash::wroteTo

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