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) Send a message buffer over a communiation channel.

Events
event result_t sendDone(TOS_MsgPtr msg, cc2420_error_t success) Signals that a buffer was sent; success indicates whether the send was successful or not.

Commands - Details

send

command result_t send(TOS_MsgPtr msg)

Send a message buffer over a communiation channel.

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)

Signals that a buffer was sent; success indicates whether the send was successful or not.

Returns:
SUCCESS always.