Component: SimpleCmdM
This is an enhanced version of SimpleCmd that understands the START_SENSING and READ_LOG commands.
- TOS_MsgPtr cur_msg
- TOS_Msg log_msg
- bool send_pending
- bool eeprom_read_pending
- TOS_Msg buf
-
task void
cmdInterpret
(void)
-
event result_t
Sensing.done
(void)
-
command result_t
StdControl.init
(void)
-
command result_t
StdControl.start
(void)
-
command result_t
StdControl.stop
(void)
-
event result_t
LoggerRead.readDone
(uint8_t *packet, result_t success)
-
command result_t
ProcessCmd.execute
(TOS_MsgPtr pmsg)
-
event TOS_MsgPtr
ReceiveCmdMsg.receive
(TOS_MsgPtr pmsg)
-
event result_t
ProcessCmd.done
(TOS_MsgPtr pmsg, result_t status)
-
event result_t
SendLogMsg.sendDone
(TOS_MsgPtr pmsg, result_t status)
cmdInterpret
task void cmdInterpret(void)
Sensing.done
event result_t Sensing.done
(void)
StdControl.init
command result_t StdControl.init
(void)
StdControl.start
command result_t StdControl.start
(void)
StdControl.stop
command result_t StdControl.stop
(void)
LoggerRead.readDone
event result_t LoggerRead.readDone
(uint8_t *packet, result_t success)
ProcessCmd.execute
command result_t ProcessCmd.execute
(TOS_MsgPtr pmsg)
ProcessCmd.done
event result_t ProcessCmd.done
(TOS_MsgPtr pmsg, result_t status)
SendLogMsg.sendDone
event result_t SendLogMsg.sendDone
(TOS_MsgPtr pmsg, result_t status)