Interface: tos.interfaces.Receive
interface Receive
- Author:
-
Phil Levis
-
David Gay
Revision: $Revision: 1.11 $
Defines global error codes for error_t in TinyOS.
Events
event message_t *receive(message_t *msg, void *payload, uint8_t len)
Events - Details
receive
event message_t *receive(message_t *msg, void *payload, uint8_t len)
- Parameters:
-
'message_t* ONE msg' the receied packet
-
'void* COUNT(len) payload' a pointer to the packet's payload
-
len - the length of the data region pointed to by payload
- Returns:
-
'message_t* ONE' a packet buffer for the stack to use for the next
received packet.