Interface: tos.lib.serial.SerialPacketInfo
interface SerialPacketInfo
Accessor methods used by a serial dispatcher to communicate with various
message_t link formats over a serial port.
- Author:
-
Philip Levis
-
Ben Greenstein
- Date:
-
August 7 2005
Commands
command uint8_t dataLinkLength(message_t *msg, uint8_t upperLen)
command uint8_t offset()
command uint8_t upperLength(message_t *msg, uint8_t dataLinkLen)
Commands - Details
dataLinkLength
command uint8_t dataLinkLength(message_t *msg, uint8_t upperLen)
- Parameters:
-
msg - A pointer to the message_t to interrogate. (unused)
-
upperLen - The size of the payload.
- Returns:
-
Returns the size of the datalink packet.
offset
command uint8_t offset()
- Returns:
-
Returns the offset.
upperLength
command uint8_t upperLength(message_t *msg, uint8_t dataLinkLen)
- Parameters:
-
msg - A pointer to the message_t to interrogate. (unused)
-
dataLinkLength - The size of the datalink packet.
- Returns:
-
Returns the size of the payload.