Interface: moteiv.tos.lib.CC2420Radio.CC2420BareSendMsg
interface CC2420BareSendMsg
Send CC2420 specific TOS_Msg packets through the CC2420RadioC
communications driver. This interface is similar to BareSendMsg
with the primary exception that the return type of each function
is cc2420_result_t. The radio specific return type allows
higher layer abstractions to interpret failures and operations
occuring within the CC2420 communications driver.
Modified from the original BareSendMsg by Moteiv Corporation
- Author:
-
Jason Hill
-
David Gay
-
Philip Levis
-
Joe Polastre, Moteiv Corporation
- Date:
-
January 2006
Commands
command result_t send(TOS_MsgPtr msg)
Events
event result_t sendDone(TOS_MsgPtr msg, cc2420_error_t success)
Commands - Details
send
command result_t send(TOS_MsgPtr msg)
- Returns:
-
SUCCESS if the buffer will be sent, FAIL if not. If
SUCCESS, a sendDone should be expected, if FAIL, the event should
not be expected.
Events - Details
sendDone
event result_t sendDone(TOS_MsgPtr msg, cc2420_error_t success)
- Returns:
-
SUCCESS always.