Interface: moteiv.tos.lib.sp.SPReceive
interface SPReceive
Standard receiving interface for receiving messages from link protocols.
SPReceive will signal messages on a particular active message type
from all available underlying links.
- Author:
-
Joe Polastre, Moteiv Corporation <info@moteiv.com>
Events
event void receive(sp_message_t *spmsg, TOS_MsgPtr tosmsg, sp_error_t result)
Events - Details
receive
event void receive(sp_message_t *spmsg, TOS_MsgPtr tosmsg, sp_error_t result)
- Parameters:
-
spmsg
- An sp_message_t structure containing metadata about the
received message. Access sp_message_t fields only
through the SPMessage interface.
-
tosmsg
- The packet received.
-
result
- Indication of an error, if any, during message reception.