Interface: moteiv.tos.lib.sp.cc2420.TimeStamping
interface TimeStamping<typedef precision_tag, typedef size_type>
Basic interface for setting and getting post-arbitration timestamps
of a particular packet. Adapted by Moteiv Corporation
from the Vanderbilt timestamping interface to support more general
links with a wider range of functionality.
- Author:
-
Joe Polastre, Moteiv Corporation <info@moteiv.com>
-
Miklos Maroti
- Date:
-
January 2006
Commands
command result_t addStamp(TOS_MsgPtr msg, int8_t offset)
command result_t addStampAll(int8_t offset)
command void cancel()
command size_type getReceiveStamp(TOS_Msg *msg)
command size_type getStampMsg(TOS_MsgPtr msg, int8_t offset)
Commands - Details
addStamp
command result_t addStamp(TOS_MsgPtr msg, int8_t offset)
addStampAll
command result_t addStampAll(int8_t offset)
- Returns:
-
SUCCESS if the offset is in the valid range, or FALSE
if the message will not be time stamped.
cancel
command void cancel()
getReceiveStamp
command size_type getReceiveStamp(TOS_Msg *msg)
getStampMsg
command size_type getStampMsg(TOS_MsgPtr msg, int8_t offset)
- Parameters:
-
msg
- TOSMsg with a timestamp in it
-
offset
- the offset of the timestamp
- Returns:
-
a value of the timestamp at that offset