Apps
Components
Interfaces
All Files
Source Tree
source:
tos.lib.Route.MultiHopEngineM.nc
Component: MultiHopEngineM
Required Interfaces
ReceiveMsg
SendMsg
RouteControl
RouteSelectCntl
RouteSelect
StdControl
SubControl
CommControl
StdControl
CommStdControl
Provided Interfaces
StdControl
Receive
Send
Intercept
Intercept
Snoop
RouteControl
Variables
struct TOS_Msg FwdBuffers[MultiHopEngineM.FWD_QUEUE_SIZE]
struct TOS_Msg *FwdBufList[MultiHopEngineM.FWD_QUEUE_SIZE]
uint8_t iFwdBufHead
uint8_t iFwdBufTail
int timer_rate
int timer_ticks
Function Index
static void
initialize
(void)
********************************************************************* Initialization *********************************************************************
command result_t
StdControl.init
(void)
command result_t
StdControl.start
(void)
command result_t
StdControl.stop
(void)
command result_t
Send.send
(uint8_t id, TOS_MsgPtr pMsg, uint16_t PayloadLen)
********************************************************************* Commands and events *********************************************************************
command void
Send.getBuffer
(uint8_t id, TOS_MsgPtr pMsg, uint16_t *length)
static TOS_MsgPtr
mForward
(TOS_MsgPtr pMsg, uint8_t id)
event TOS_MsgPtr
ReceiveMsg.receive
(uint8_t id, TOS_MsgPtr pMsg)
event result_t
SendMsg.sendDone
(uint8_t id, TOS_MsgPtr pMsg, result_t success)
command uint16_t
RouteControl.getParent
(void)
command uint8_t
RouteControl.getQuality
(void)
command uint8_t
RouteControl.getDepth
(void)
command uint8_t
RouteControl.getOccupancy
(void)
command uint16_t
RouteControl.getSender
(TOS_MsgPtr msg)
command result_t
RouteControl.setUpdateInterval
(uint16_t Interval)
command result_t
RouteControl.manualUpdate
(void)
event result_t
Send.sendDone
(uint8_t id, TOS_MsgPtr pMsg, result_t success)
event result_t
Intercept.intercept
(uint8_t id, TOS_MsgPtr pMsg, void *payload, uint16_t payloadLen)
event result_t
Snoop.intercept
(uint8_t id, TOS_MsgPtr pMsg, void *payload, uint16_t payloadLen)