libdrmconf  0.10.4
A library to program DMR radios.
Public Member Functions | Public Attributes | List of all members
AnytoneInterface::ReadResponse Struct Reference

Binary representation of a read response from the radio. More...

#include <anytone_interface.hh>

Public Member Functions

bool check (uint32_t addr, QString &msg) const
 Check the response, returns true if read request was successful. More...
 

Public Attributes

char cmd
 Fixed to 'W'.
 
uint32_t addr
 Memory address in big-endian.
 
uint8_t size
 Fixed to 16.
 
char data [16]
 The actual data.
 
uint8_t sum
 Sum over address, size and data.
 
uint8_t ack
 Fixed to 0x06.
 

Detailed Description

Binary representation of a read response from the radio.

Member Function Documentation

◆ check()

bool AnytoneInterface::ReadResponse::check ( uint32_t  addr,
QString &  msg 
) const

Check the response, returns true if read request was successful.

Parameters
addrThe read address to verify.
msgOn error, contains a message describing the issue.

The documentation for this struct was generated from the following files: