Interface: moteiv.tos.lib.sp.SPMessage

interface SPMessage

Implementation of abstract data types for SP messages.

Author:
Joe Polastre, Moteiv Corporation <info@moteiv.com>

Commands
command sp_address_t getAddr(sp_message_t *spmsg) Get the destination address of the message.
command sp_device_t getDev(sp_message_t *spmsg) Get the destination device used for this message
command sp_message_flags_t getFlags(sp_message_t *spmsg) Get the flags associated with the message.
command uint8_t getQuantity(sp_message_t *spmsg) Get the number of message futures for a particular message.
command TOS_Msg *getTosMsg(sp_message_t *spmsg) Get the first TOS_Msg associated with this SP message.

Commands - Details

getAddr

command sp_address_t getAddr(sp_message_t *spmsg)

Get the destination address of the message.

getDev

command sp_device_t getDev(sp_message_t *spmsg)

Get the destination device used for this message

getFlags

command sp_message_flags_t getFlags(sp_message_t *spmsg)

Get the flags associated with the message.

getQuantity

command uint8_t getQuantity(sp_message_t *spmsg)

Get the number of message futures for a particular message.

getTosMsg

command TOS_Msg *getTosMsg(sp_message_t *spmsg)

Get the first TOS_Msg associated with this SP message.