Interface: moteiv.tos.lib.sp.SPSendNext
interface SPSendNext
Interface for SP message futures.
SPSendNext works in conjunction with SPSend to implement the full
SP message pool functionality. When a message is submitted via
the SPSend interface with a quantity greater than 1,
SPSendNext.request() is signalled after each packet transmission
until the entire message has been sent. After completion of the
message, the SPSend.sendDone() event is fired.
- Author:
-
Joe Polastre, Moteiv Corporation <info@moteiv.com>
Commands
command void response(sp_message_t *msg, TOS_Msg *tosmsg, uint8_t length)
Events
event void request(sp_message_t *msg, TOS_Msg *tosmsg, uint8_t remaining)
Commands - Details
response
command void response(sp_message_t *msg, TOS_Msg *tosmsg, uint8_t length)
- Parameters:
-
msg
- the SP message that is being referenced
-
tosmsg
- the next packet in the sequence
-
length
- the length of the data payload of the TOS_Msg packet
Events - Details
request
event void request(sp_message_t *msg, TOS_Msg *tosmsg, uint8_t remaining)
- Parameters:
-
msg
- The SP message currently being transmitted
-
tosmsg
- The TOS_Msg previously sent
-
remaining
- The number of packets remaining in the message