Apps
Components
Interfaces
All Files
Source Tree
source:
tos.lib.FS.Reader.nc
Component: Reader
Required Interfaces
IFileBlock
IFileBlockMeta
IFileBlockMeta
RemainingMeta
void
newBlock
(fileblock_t block)
Debug
Provided Interfaces
IFileRead
Variables
struct Reader.fileState { fileblock_t block, nextBlock; fileblockoffset_t lastOffset, offset; bool check; } fds[FS_NUM_RFDS]
char *readto
uint8_t readfd
filesize_t readSize
filesize_t requestedSize
Function Index
command void
IFileRead.open
(uint8_t fd, fileblock_t firstBlock, fileblockoffset_t skipBytes, bool check)
event void
IFileRead.readDone
(uint8_t id, filesize_t nRead, fileresult_t result)
void
readComplete
(fileresult_t result)
void
loadInfo
(void)
void
continueRead
(void)
event void
IFileBlock.readDone
(fileresult_t result)
event void
IFileBlockMeta.readDone
(fileblock_t nextBlock, fileblockoffset_t lastByte, fileresult_t result)
task void
readCompleteTask
(void)
command void
IFileRead.read
(uint8_t fd, void *buffer, filesize_t n)
void
seekComplete
(fileresult_t result)
void
seekToEnd
(fileblock_t nextBlock, fileblockoffset_t lastOffset)
event void
RemainingMeta.readDone
(fileblock_t nextBlock, fileblockoffset_t lastByte, fileresult_t result)
command void
IFileRead.getRemaining
(uint8_t fd)
event void
IFileBlockMeta.writeDone
(fileresult_t result)
event void
RemainingMeta.writeDone
(fileresult_t result)
event void
IFileBlock.writeDone
(fileresult_t result)
event void
IFileBlock.syncDone
(fileresult_t result)
event void
IFileBlock.flushDone
(fileresult_t result)
event void
IFileRead.remaining
(uint8_t id, filesize_t n, fileresult_t result)