Apps Components Interfaces All Files Source Tree | source: tos.interfaces.AllocationReq.nc |
This interface is used as a two-phase allocation protocol for
ByteEEPROM. Applications that require memory from the flash call request or
requestAddr in their StdControl.init
command. They later get a
requestProcessed
event back reporting success or failure of
the allocation.
Author: | Nelson Lee |
David Gay |
Commands |
Events |
Commands - Details |
Parameters: |
byteAddr - The starting byte offset. This must be on a page boundary
(the numBytesReq - Number of bytes required |
Returns: | FAIL for invalid arguments, or if the flash has already been
allocated. requestProcessed will be signaled if SUCCESS
is returned.
|
Events - Details |
Parameters: |
success - SUCCESS if the requested flash section was allocated. |
Returns: | Ignored. |