libdrmconf
0.12.0
A library to program DMR radios.
|
Request/response packet. More...
#include <c7000device.hh>
Public Member Functions | |
Packet () | |
Default constructor. | |
Packet (const Packet &other)=default | |
Copy constructor. | |
Packet (uint8_t command, uint8_t sub, uint8_t flags=0x0f, const QByteArray &payload=QByteArray()) | |
Constructs a request/response from commands and payload. | |
Packet (const QByteArray &buffer) | |
Constructs a request/response from the given encoded packet. | |
Packet & | operator= (const Packet &other)=default |
Assignment. | |
bool | isValid () const |
Returns true , if the packet is valid. | |
uint8_t | flags () const |
uint8_t | command () const |
uint8_t | subcommand () const |
uint16_t | payloadSize () const |
QByteArray | payload () const |
const QByteArray & | encoded () const |
Protected Attributes | |
QByteArray | _encoded |
Holds the encoded packet. | |
Request/response packet.