Aria: ArLMS2xxPacket Class Reference

- Main Page
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# ArLMS2xxPacket Class Reference

`#include <ArLMS2xxPacket.h>`

Inheritance diagram for ArLMS2xxPacket:

List of all members.

## Detailed Description

Represents the packets sent to the LMS2xx as well as those received from it.

This class reimplements some of the buf operations since the robot is little endian.

You can just look at the documentation for the ArBasePacket except for these functions here, setAddress, getAddress, verifyCheckSum, print, getID, and calcCheckSum.

## Public Member Functions
| ArLMS2xxPacket (unsigned char sendingAddress=0)
| Constructor.
ArTypes::Byte2 | calcCRC (void)
| returns the crc, probably used only internally
virtual void | duplicatePacket (ArLMS2xxPacket *packet)
| Duplicates the packet.
virtual void | finalizePacket (void)
ArTypes::UByte | getID (void)
| returns the ID of the packet (first byte of data)
unsigned char | getReceivedAddress (void)
| Gets the address this packet was sent from (only use for receiving).
unsigned char | getSendingAddress (void)
| Sets the address to send this packet to (only use for sending).
ArTime | getTimeReceived (void)
| Gets the time the packet was received at.
virtual void | resetRead (void)
void | setSendingAddress (unsigned char address)
| Sets the address to send this packet to (only use for sending).
void | setTimeReceived (ArTime timeReceived)
| Sets the time the packet was received at.
bool | verifyCRC (void)
| returns true if the crc matches what it should be
virtual | ~ArLMS2xxPacket ()
| Destructor.
## Protected Attributes
unsigned char | mySendingAddress
ArTime | myTimeReceived

The documentation for this class was generated from the following file:

- ArLMS2xxPacket.h