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

Binary representation of a write request to the radio. More...

#include <anytone_interface.hh>

Public Member Functions

 WriteRequest (uint32_t addr, const char *data)
 Assembles a write request message to the given address with the given data. 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 addr, size and data.
 
uint8_t ack
 Fixed to 0x06;.
 

Detailed Description

Binary representation of a write request to the radio.

Constructor & Destructor Documentation

◆ WriteRequest()

AnytoneInterface::WriteRequest::WriteRequest ( uint32_t  addr,
const char *  data 
)

Assembles a write request message to the given address with the given data.

Parameters
addrSpecifies the address to write to.
data16 bytes of payload.

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