The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware. More...
#include <SVHSerialPacket.h>
Public Member Functions | |
bool | operator== (const SVHSerialPacket &other) const |
Compares two SVHSerialPackets objects. | |
SVHSerialPacket (size_t _data_length=0, uint8_t _address=SVH_GET_CONTROL_FEEDBACK) | |
SVHSerialPacket contains the send and received data in raw format (bytewise) | |
Public Attributes | |
uint8_t | address |
Adress denotes the actual function of the package. | |
std::vector< uint8_t > | data |
Payload of the package. | |
uint8_t | index |
Continuosly incremented counter per package. |
The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware.
Definition at line 66 of file SVHSerialPacket.h.
driver_svh::SVHSerialPacket::SVHSerialPacket | ( | size_t | _data_length = 0 , |
uint8_t | _address = SVH_GET_CONTROL_FEEDBACK |
||
) | [inline] |
SVHSerialPacket contains the send and received data in raw format (bytewise)
data_length | initial size to set the data length to. NOTE: To deserialize a packet this value HAS TO BE SET! |
Definition at line 80 of file SVHSerialPacket.h.
bool driver_svh::SVHSerialPacket::operator== | ( | const SVHSerialPacket & | other | ) | const [inline] |
Compares two SVHSerialPackets objects.
Definition at line 87 of file SVHSerialPacket.h.
Adress denotes the actual function of the package.
Definition at line 72 of file SVHSerialPacket.h.
Payload of the package.
Definition at line 74 of file SVHSerialPacket.h.
Continuosly incremented counter per package.
Definition at line 70 of file SVHSerialPacket.h.