Apps
Components
Interfaces
All Files
Source Tree
source:
tos.lib.FS.Blocks.nc
Component: Blocks
Required Interfaces
PageEEPROM
Debug
Provided Interfaces
IFileBlock
IFileBlockErase
IFileBlockMeta
Variables
uint8_t state
uint8_t client
struct Blocks.metadata metadata
eeprompage_t page
void metaReadDone(fileresult_t fresult)
Function Index
uint8_t
metadataCheck
(struct Blocks.metadata *m)
fileresult_t
makeFileresult
(result_t result)
void
read
(uint8_t id, fileblock_t block, fileblockoffset_t o, void *data, fileblockoffset_t n)
void
write
(uint8_t id, fileblock_t block, fileblockoffset_t o, void *data, fileblockoffset_t n)
command void
IFileBlock.read
(uint8_t id, fileblock_t block, fileblockoffset_t offset, void *data, fileblockoffset_t n)
event result_t
PageEEPROM.readDone
(result_t result)
command void
IFileBlock.write
(uint8_t id, fileblock_t block, fileblockoffset_t offset, void *data, fileblockoffset_t n)
event result_t
PageEEPROM.writeDone
(result_t result)
command void
IFileBlock.sync
(uint8_t id, fileblock_t block)
event result_t
PageEEPROM.syncDone
(result_t result)
command void
IFileBlock.flush
(uint8_t id, fileblock_t block)
event result_t
PageEEPROM.flushDone
(result_t result)
command void
IFileBlockErase.erase
(uint8_t id, fileblock_t block)
event result_t
PageEEPROM.eraseDone
(result_t result)
void
metaRead
(uint8_t id, fileblock_t block, uint8_t count)
void
metaWrite
(uint8_t count)
command void
IFileBlockMeta.read
(uint8_t id, fileblock_t block, bool check)
void
metaReadDone
(fileresult_t fresult)
event result_t
PageEEPROM.computeCrcDone
(result_t result, uint16_t crc)
command void
IFileBlockMeta.write
(uint8_t id, fileblock_t block, bool check, bool isRoot, fileblock_t nextBlock, fileblockoffset_t lastByte)
event void
IFileBlock.readDone
(uint8_t id, fileresult_t result)
event void
IFileBlock.writeDone
(uint8_t id, fileresult_t result)
event void
IFileBlock.syncDone
(uint8_t id, fileresult_t result)
event void
IFileBlock.flushDone
(uint8_t id, fileresult_t result)
event void
IFileBlockErase.eraseDone
(uint8_t id, fileresult_t result)
event void
IFileBlockMeta.readDone
(uint8_t id, fileblock_t nextBlock, fileblockoffset_t lastByte, fileresult_t result)
event void
IFileBlockMeta.writeDone
(uint8_t id, fileresult_t result)