#include <c++/drivers/ld/sickld-1.0/SickLDMessage.hh>
Inheritance diagram for SickToolbox::SickLDMessage:


Public Member Functions | |
| SickLDMessage () | |
| A default constructor. | |
| SickLDMessage (const uint8_t *const payload_buffer, const unsigned int payload_length) | |
| Another constructor. | |
| SickLDMessage (const uint8_t *const message_buffer) | |
| Another constructor. | |
| void | BuildMessage (const uint8_t *const payload_buffer, const unsigned int payload_length) |
| Constructs a Sick LD message given parameter values. | |
| void | ParseMessage (const uint8_t *const message_buffer) |
| Parses a sequence of bytes into a SickLDMessage object. | |
| uint8_t | GetServiceCode () const |
| uint8_t | GetServiceSubcode () const |
| uint8_t | GetChecksum () const |
| void | Print () const |
| Print the message contents. | |
| ~SickLDMessage () | |
| SickToolbox::SickLDMessage::SickLDMessage | ( | ) |
A default constructor.
A standard constructor
| SickToolbox::SickLDMessage::SickLDMessage | ( | const uint8_t *const | payload_buffer, | |
| const unsigned int | payload_length | |||
| ) |
Another constructor.
Constructs a packet by using BuildMessage
| SickToolbox::SickLDMessage::SickLDMessage | ( | const uint8_t *const | message_buffer | ) |
Another constructor.
Constructs a packet using ParseMessage()
| SickToolbox::SickLDMessage::~SickLDMessage | ( | ) |
Destructor
| void SickToolbox::SickLDMessage::BuildMessage | ( | const uint8_t *const | payload_buffer, | |
| const unsigned int | payload_length | |||
| ) |
Constructs a Sick LD message given parameter values.
Construct a well-formed raw packet
Reimplemented from SickToolbox::SickMessage< SICK_LD_MSG_HEADER_LEN, SICK_LD_MSG_PAYLOAD_MAX_LEN, SICK_LD_MSG_TRAILER_LEN >.
| void SickToolbox::SickLDMessage::ParseMessage | ( | const uint8_t *const | message_buffer | ) | [virtual] |
Parses a sequence of bytes into a SickLDMessage object.
Populates fields from a (well-formed) raw packet
Implements SickToolbox::SickMessage< SICK_LD_MSG_HEADER_LEN, SICK_LD_MSG_PAYLOAD_MAX_LEN, SICK_LD_MSG_TRAILER_LEN >.
| uint8_t SickToolbox::SickLDMessage::GetServiceCode | ( | ) | const [inline] |
Get the length of the service code associated with the message
| uint8_t SickToolbox::SickLDMessage::GetServiceSubcode | ( | ) | const [inline] |
Get the service sub-code associated with the message
| uint8_t SickToolbox::SickLDMessage::GetChecksum | ( | ) | const [inline] |
Get the checksum for the packet
| void SickToolbox::SickLDMessage::Print | ( | ) | const [virtual] |
Print the message contents.
A debugging function that prints the contents of the frame.
Reimplemented from SickToolbox::SickMessage< SICK_LD_MSG_HEADER_LEN, SICK_LD_MSG_PAYLOAD_MAX_LEN, SICK_LD_MSG_TRAILER_LEN >.
1.5.1