libdrmconf 0.12.1
A library to program DMR radios.
Loading...
Searching...
No Matches
C7000Device::Packet Struct Reference

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.
Packetoperator= (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.

Detailed Description

Request/response packet.


The documentation for this struct was generated from the following files:
  • /builddir/build/BUILD/qdmr-0.12.1-build/qdmr-0.12.1/lib/c7000device.hh
  • /builddir/build/BUILD/qdmr-0.12.1-build/qdmr-0.12.1/lib/c7000device.cc