Apps
Components
Interfaces
All Files
Source Tree
source:
apps.TASKApp.Field.nc
Component: Field
Required Interfaces
ReceiveMsg
WakeupMsg
ReceiveMsg
FieldMsg
SendMsg
FieldReplyMsg
Timer
SleepTimer
Timer
MsgTimer
Leds
CommandUse
Random
StdControl
SchedulerClt
ServiceScheduler
Provided Interfaces
StdControl
Variables
bool awake
bool busy
bool sleepPending
bool commandPending
uint16_t lastCmdId
uint16_t lastCmdSender
uint16_t destination
uint8_t timeout
TOS_Msg reply
void sendReply(uint16_t to, uint16_t cmdId)
Function Index
command result_t
StdControl.init
(void)
command result_t
StdControl.start
(void)
command result_t
StdControl.stop
(void)
void
sleep
(void)
void
wakeup
(void)
void
startTimeout
(void)
task void
gotoSleep
(void)
event result_t
SleepTimer.fired
(void)
event TOS_MsgPtr
WakeupMsg.receive
(TOS_MsgPtr msg)
bool
duplicate
(struct FieldMsg *m)
void
sendCmdReply
(void)
event TOS_MsgPtr
FieldMsg.receive
(TOS_MsgPtr msg)
void
sendReply
(uint16_t to, uint16_t cmdId)
event result_t
MsgTimer.fired
(void)
event result_t
FieldReplyMsg.sendDone
(TOS_MsgPtr msg, result_t success)
event result_t
CommandUse.commandDone
(char *commandName, char *resultBuf, SchemaErrorNo errorNo)