Interface: moteiv.tos.lib.resource.ResourceCmd
interface ResourceCmd
Resource interface.
This interface is to be used by components for providing access to
shared resources. A component wishing to arbitrate the use of a shared
resource should implement this interface in conjunction with the
Resource interface.
For more information about this interface, please see TEP108.
- Author:
-
Kevin Klues (klues@tkn.tu-berlin.de)
-
Cory Sharp (info@moteiv.com)
Commands
command void deferRequest()
command void release()
command void request(uint8_t rh)
Events
event void granted(uint8_t rh)
Commands - Details
deferRequest
command void deferRequest()
release
command void release()
request
command void request(uint8_t rh)
- Returns:
-
TRUE The request is deferred and granted() will be signaled
for this request sometime in the future.
FALSE The request has been immediately satisfied by signalling
granted before returning from this request() call.
Events - Details
granted
event void granted(uint8_t rh)