Interface: moteiv.tos.lib.MultiHopLQI.RouteSelect
interface RouteSelect
Interface to a route selection component in the TinyOS ad-hoc
system architecture.
- Author:
-
Philip Levis
Commands
command uint8_t *getBuffer(TOS_MsgPtr msg, uint16_t *len)
command result_t initializeFields(TOS_MsgPtr msg, uint8_t id)
command bool isActive()
command result_t selectRoute(TOS_MsgPtr msg, uint8_t id, uint8_t resend)
Commands - Details
getBuffer
command uint8_t *getBuffer(TOS_MsgPtr msg, uint16_t *len)
- Parameters:
-
msg
- The message to get the data region of.
-
length
- Pointer to a field to store the length of the data region.
- Returns:
-
A pointer to the data region.
initializeFields
command result_t initializeFields(TOS_MsgPtr msg, uint8_t id)
- Parameters:
-
msg
- Message to select route for and fill in init data.
- Returns:
-
Should always return SUCCESS.
isActive
command bool isActive()
- Returns:
-
Whether there is a valid route.
isDuplicate
command bool isDuplicate(TOS_MsgPtr msg, uint8_t id)
selectRoute
command result_t selectRoute(TOS_MsgPtr msg, uint8_t id, uint8_t resend)
- Parameters:
-
msg
- Message to select route for and fill in routing information.
- Returns:
-
Whether a route was selected succesfully. On FAIL the
packet should not be sent.