Apps
Components
Interfaces
All Files
Source Tree
source:
apps.Surge.SurgeM.nc
Component: SurgeM
Required Interfaces
ADC
Timer
Leds
StdControl
Sounder
Send
Receive
Bcast
RouteControl
Provided Interfaces
StdControl
Variables
bool sleeping
bool focused
bool rebroadcast_adc_packet
TOS_Msg gMsgBuffer
norace uint16_t gSensorData
bool gfSendBusy
int timer_rate
int timer_ticks
Function Index
static void
initialize
(void)
********************************************************************* Initialization *********************************************************************
task void
SendData
(void)
command result_t
StdControl.init
(void)
command result_t
StdControl.start
(void)
command result_t
StdControl.stop
(void)
event result_t
Timer.fired
(void)
********************************************************************* Commands and events *********************************************************************
async event result_t
ADC.dataReady
(uint16_t data)
event result_t
Send.sendDone
(TOS_MsgPtr pMsg, result_t success)
event TOS_MsgPtr
Bcast.receive
(TOS_MsgPtr pMsg, void *payload, uint16_t payloadLen)