Apps
Components
Interfaces
All Files
Source Tree
source:
tos.interfaces.SendVarLenPacket.nc
Interface: SendVarLenPacket
Interface for sending arbitrary streams of bytes.
Author:
Jason Hill
David Gay
Philip Levis
Components providing this interface:
apps.Bombilla.GenericComm
apps.Bombilla.GenericCommPromiscuous
tos.system.NoCRCPacket
Commands
result_t
send
(uint8_t *packet, uint8_t numBytes)
Send
numBytes
of the buffer
data
.
Events
result_t
sendDone
(uint8_t *packet, result_t success)
Send request completed.
Commands - Details
send
result_t
send
(uint8_t *packet, uint8_t numBytes)
Send
numBytes
of the buffer
data
.
Returns:
SUCCESS if send request accepted, FAIL otherwise. SUCCCES means that a sendDone should be expected, FAIL means it should not.
Events - Details
sendDone
result_t
sendDone
(uint8_t *packet, result_t success)
Send request completed. The buffer sent and whether the send was successful are passed.
Returns:
SUCCESS always.