Interface: tos.chips.at45db.At45dbBlockConfig
interface At45dbBlockConfig
Private interface between the AT45DB implementations of config and block storage
- Author::
-
David Gay <dgay@acm.org>
Commands
command int flipped()
command int isConfig()
command int writeHook()
Events
event at45page_t npages()
event at45page_t remap(at45page_t page)
event void writeContinue(error_t error)
Commands - Details
flipped
command int flipped()
- Returns:
-
TRUE for 2nd half, FALSE for 1st half
isConfig
command int isConfig()
- Returns:
-
TRUE for config volumes, FALSE for block volumes
writeHook
command int writeHook()
- Returns:
-
TRUE to delay the write until
writeContinue
is called, FALSE to proceed immediately.
Events - Details
npages
event at45page_t npages()
- Returns:
-
Config volume size
remap
event at45page_t remap(at45page_t page)
- Parameters:
-
page - Volume-relative page
- Returns:
-
Actual flash page for
page
writeContinue
event void writeContinue(error_t error)
- Parameters:
-
error - SUCCESS to continue write, anything else to abort write
returning that error code