Apps
Components
Interfaces
All Files
Source Tree
source:
tos.platform.mica.PageEEPROMM.nc
Component: PageEEPROMM
Required Interfaces
StdControl
FlashControl
SlavePin
FlashSelect
FastSPI
FlashSPI
Resource
FlashIdle
bool
getCompareStatus
(void)
Leds
Provided Interfaces
StdControl
PageEEPROM
Variables
uint8_t request
uint8_t *reqBuf
eeprompageoffset_t reqOffset
eeprompageoffset_t reqBytes
eeprompage_t reqPage
bool deselectRequested
bool broken
bool compareOk
uint8_t cmdPhase
uint8_t waiting
uint8_t *data
uint8_t cmd[4]
uint8_t cmdCount
eeprompageoffset_t dataCount
uint16_t computedCrc
struct PageEEPROMM.__nesc_unnamed4242 { eeprompage_t page; bool busy : 1; bool clean : 1; bool erased : 1; uint8_t unchecked : 2; } buffer[2]
uint8_t selected
uint8_t checking
bool flashBusy
void requestDone(result_t result)
void handleRWRequest(void)
void execCommand(bool wait, uint8_t reqCmd, uint8_t dontCare, eeprompage_t page, eeprompageoffset_t offset)
result_t syncOrFlushAll(uint8_t newReq)
Function Index
command result_t
StdControl.init
(void)
command result_t
StdControl.start
(void)
command result_t
StdControl.stop
(void)
void
selectFlash
(void)
void
requestDeselect
(void)
event result_t
FlashIdle.available
(void)
void
requestFlashStatus
(void)
void
sendFlashCommand
(void)
task void
taskSuccess
(void)
task void
taskFail
(void)
void
checkBuffer
(uint8_t buf)
void
flushBuffer
(void)
void
flashCommandComplete
(void)
event result_t
FlashSelect.notifyHigh
(void)
void
execCommand
(bool wait, uint8_t reqCmd, uint8_t dontCare, eeprompage_t page, eeprompageoffset_t offset)
void
execRWBuffer
(uint8_t reqCmd, uint8_t dontCare, eeprompageoffset_t offset)
void
handleRWRequest
(void)
void
requestDone
(result_t result)
result_t
newRequest
(uint8_t req, eeprompage_t page, eeprompageoffset_t offset, void *reqdata, eeprompageoffset_t n)
command result_t
PageEEPROM.read
(eeprompage_t page, eeprompageoffset_t offset, void *reqdata, eeprompageoffset_t n)
command result_t
PageEEPROM.computeCrc
(eeprompage_t page, eeprompageoffset_t offset, eeprompageoffset_t n)
command result_t
PageEEPROM.write
(eeprompage_t page, eeprompageoffset_t offset, void *reqdata, eeprompageoffset_t n)
command result_t
PageEEPROM.erase
(eeprompage_t page, uint8_t eraseKind)
result_t
syncOrFlush
(eeprompage_t page, uint8_t newReq)
command result_t
PageEEPROM.sync
(eeprompage_t page)
command result_t
PageEEPROM.flush
(eeprompage_t page)
result_t
syncOrFlushAll
(uint8_t newReq)
command result_t
PageEEPROM.syncAll
(void)
command result_t
PageEEPROM.flushAll
(void)