LibDMRConf
0.5.0
A library to program DMR radios.
|
Represents an entry of the radio ID table within the binary codeplug. More...
#include <d878uv_codeplug.hh>
Public Member Functions | |
radioid_t () | |
Constructs an empty radio ID entry. | |
void | clear () |
Clears the radio ID enty. | |
bool | isValid () const |
Returns true if the radio ID entry is valid. | |
QString | getName () const |
Returns the name of the radio ID entry. | |
void | setName (const QString name) |
Sets the name of the radio ID entry. | |
uint32_t | getId () const |
Returns the radio ID of the entry. | |
void | setId (uint32_t num) |
Sets the radio ID of the entry. | |
Public Attributes | |
uint32_t | id |
Up to 8 BCD digits in little-endian. | |
uint8_t | _unused4 |
Unused, set to 0. | |
uint8_t | name [16] |
Name, up-to 16 ASCII chars, 0-terminated. | |
uint8_t | _unused21 [11] |
Unused, set to 0. | |
Represents an entry of the radio ID table within the binary codeplug.
Memmory layout of encoded radio ID (32byte):
0 8 16 24 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 00 | Radio ID encoded as 8 BCD digits | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 04 | Unused, set to 0x00 | Name, 16 x ASCII, 0-padded ... +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 14 ... | 11 unused bytes, set to 0x00 ... +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 1c ... | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+