LibDMRConf
0.6.0
A library to program DMR radios.
|
Implements the binary representation of a roaming channel within the codeplug. More...
#include <d878uv_codeplug.hh>
Public Member Functions | |
double | getRXFrequency () const |
Decodes the RX frequency. | |
void | setRXFrequency (double f) |
Encodes the given RX frequency. | |
double | getTXFrequency () const |
Decodes the TX frequency. | |
void | setTXFrequency (double f) |
Encodes the given TX frequency. | |
DigitalChannel::TimeSlot | getTimeslot () const |
Returns the time-slot of the roaming channel. | |
void | setTimeslot (DigitalChannel::TimeSlot ts) |
Sets the time-slot of the roaming channel. | |
uint | getColorCode () const |
Returns the color-code [0-15] of the roaming channel. | |
void | setColorCode (uint8_t cc) |
Sets the color-code [0-15] of the roaming channel. | |
QString | getName () const |
Decodes the name of the roaming channel. | |
void | setName (const QString &name) |
Encodes the name of the roaming channel. | |
void | fromChannel (DigitalChannel *ch) |
Constructs a roaming channel from the given digital channel. | |
DigitalChannel * | toChannel (CodeplugContext &ctx) |
Constructs/Searches a matching DigitalChannel for this roaming channel. | |
Public Attributes | |
uint32_t | rx_frequency |
RX frequency 8-digit BCD big-endian as MMMkkkHH. | |
uint32_t | tx_frequency |
TX frequency 8-digit BCD big-endian as MMMkkkHH. | |
uint8_t | colorcode |
Colorcode 1-16. | |
uint8_t | timeslot |
Timeslot, 0=TS1, 1=TS2. | |
uint8_t | name [16] |
Channel name, 16byte ASCII 0-terminated. | |
uint8_t | _unused26 [6] |
Unused, set to 0x00. | |
Implements the binary representation of a roaming channel within the codeplug.
Memmory layout of roaming channel (0x20byte):
0 8 16 24 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 00 | RX Frequency, 32bit 8-digit BCD big-endian | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 04 | RX Frequency, 32bit 8-digit BCD big-endian | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 08 | Color code | Time slot 0=TS1, 1=TS2 | Name 16b ASCII 0-padded ... +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 18 ... | Unused filled with 0x00 ... +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 1c ... | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+