Apps
Components
Interfaces
All Files
Source Tree
source:
Seminario2.AlarmaWireless2v3.1.GlowRadioM.nc
Component: GlowRadioM
Required Interfaces
SendMsg
ReceiveMsg
MSP430Event
UserButton
Leds
Provided Interfaces
StdControl
Variables
int8_t m_acc[3]
uint8_t m_state[3]
uint8_t flag = 0
uint8_t myAddress
uint8_t myState
uint8_t yourAddress
uint8_t showAddress
uint8_t received
const int8_t m_cycle0[6] = { 0, GlowRadioM.NO_LED, GlowRadioM.NO_LED, GlowRadioM.NO_LED, GlowRadioM.NO_LED, GlowRadioM.CYCLE_END }
const int8_t m_cycle1[6] = { 1, GlowRadioM.NO_LED, GlowRadioM.NO_LED, GlowRadioM.NO_LED, GlowRadioM.NO_LED, GlowRadioM.CYCLE_END }
const int8_t m_cycle2[6] = { 2, GlowRadioM.NO_LED, GlowRadioM.NO_LED, GlowRadioM.NO_LED, GlowRadioM.NO_LED, GlowRadioM.CYCLE_END }
uint8_t m_delay_count
uint8_t m_cycle_count
typedef struct GlowRadioM.__nesc_unnamed4242 { uint8_t ledNum; uint8_t address; uint8_t action; uint8_t state; uint16_t sourceMoteID; } GlowMsg_t
TOS_Msg m_msg
bool m_is_sending
Function Index
command result_t
StdControl.init
(void)
command result_t
StdControl.start
(void)
command result_t
StdControl.stop
(void)
void
turnOnLed
(uint8_t d)
void
toggleLed
(uint8_t d)
void
turnOffLeds
(void)
event result_t
SendMsg.sendDone
(TOS_MsgPtr msg, result_t success)
event TOS_MsgPtr
ReceiveMsg.receive
(TOS_MsgPtr msg)
async event void
UserButton.fired
(void)