Apps     Components     Interfaces     All Files     Source Tree     source: tos.interfaces.BareSendMsg.nc

Interface: BareSendMsg

Functionality for sending a raw packet buffer; unaware of message structure (besides length). This is in contrast to SendMsg, which takes parameters for message headers.

Components providing this interface:
tos.platform.mica.MicaHighSpeedRadioM
tos.platform.mica.RadioCRCPacket
tos.system.NoCRCPacket
tos.system.UARTNoCRCPacket

Components requiring this interface:
tos.system.AMStandard

Commands

Events

Commands - Details

send

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

result_t sendDone(TOS_MsgPtr msg, result_t success)

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