|
LibDMRConf
0.6.0
A library to program DMR radios.
|
Represents the 8 GPS systems within the binary codeplug. More...
#include <d878uv_codeplug.hh>
Public Member Functions | |
| gps_systems_t () | |
| Constructor, resets the GPS systems. | |
| void | clear () |
| Reset the GPS systems. | |
| bool | isValid (int idx) const |
Returns true if the specified GPS system is valid. | |
| uint32_t | getContactId (int idx) const |
| Returns the contact ID to send GPS information to for the idx-th system. | |
| void | setContactId (int idx, uint32_t number) |
| Sets the contact ID for the idx-th GPS system. | |
| DigitalContact::Type | getContactType (int idx) const |
| Returns the call type for the idx-th GPS system. | |
| void | setContactType (int idx, DigitalContact::Type type) |
| Set the call type for the idx-th GPS system. | |
| uint16_t | getChannelIndex (int idx) const |
| Retruns the channel index for the idx-th GPS system. | |
| void | setChannelIndex (int idx, uint16_t ch_index) |
| Sets the channel idx for th idx-th GPS system. | |
| void | fromGPSSystems (const Config *conf) |
| Constructs all GPS system from the generic configuration. | |
| void | fromGPSSystemObj (GPSSystem *sys, const Config *conf) |
| Encodes the given GPS system. | |
| GPSSystem * | toGPSSystemObj (int idx) const |
| Constructs a generic GPS system from the idx-th encoded GPS system. | |
| bool | linkGPSSystem (int idx, GPSSystem *sys, const CodeplugContext &ctx) const |
| Links the specified generic GPS system. | |
Public Attributes | |
| uint16_t | digi_channels [8] |
| 8 16bit channel indices in little-endian. More... | |
| uint32_t | talkgroups [8] |
| Talkgroup IDs for all digi APRS channels, BCD encoded, big-endian. | |
| uint8_t | calltypes [8] |
| Calltype for all digi APRS chanels, 0=private, 1=group, 3=all call. | |
| uint8_t | roaming_support |
| Roaming support. 0=off, 1=on. | |
| uint8_t | timeslots [8] |
| Timeslots for all digi APRS channels. 0=Ch sel, 1=TS1, 2=TS2. | |
| uint8_t | rep_act_delay |
| Repeater activation delay in multiples of 100ms. More... | |
| uint8_t | _unknown66 [30] |
| Unknown, set to 0. | |
Represents the 8 GPS systems within the binary codeplug.
Memmory layout of GPS systems (0x60byte):
0 8 16 24
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
00 | Digital channel index 0, 16bit little-endian | ...
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0c ... | Digital channel index 7, 16bit little-endian |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
10 | Destination DMR ID 0, 32bit BCD big-endian |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
14 | Destination DMR ID 1, 32bit BCD big-endian |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
... ...
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
2c | Destination DMR ID 7, 32bit BCD big-endian |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
30 | Calltype channel 0 | Calltype channel 1 | Calltype channel 2 | Calltype channel 3 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
34 | Calltype channel 4 | Calltype channel 5 | Calltype channel 6 | Calltype channel 7 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
38 | Roaming support | Timeslot channel 0 | Timeslot channel 1 | Timeslot channel 2 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
4c | Timeslot channel 3 | Timeslot channel 4 | Timeslot channel 5 | Timeslot channel 6 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
40 | Timeslot channel 7 | Repeater activation delay | 30 unused bytes set to 0 ...
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
... |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| uint16_t D878UVCodeplug::gps_systems_t::digi_channels[8] |
8 16bit channel indices in little-endian.
VFO A=4000, VFO B=4001, Current=4002.
| uint8_t D878UVCodeplug::gps_systems_t::rep_act_delay |
Repeater activation delay in multiples of 100ms.
Default 0, range 0-1000ms.
1.8.17