LibDMRConf
0.5.0
A library to program DMR radios.
|
Represents a single GPS system within the codeplug. More...
#include <uv390_codeplug.hh>
Public Member Functions | |
gpssystem_t () | |
Constructor. | |
void | clear () |
Resets the GPS system settings. | |
bool | isValid () const |
Returns true if enabled. | |
uint | repeatInterval () const |
Returns the interval at which the GPS position is announced. | |
void | setRepeatInterval (uint interval) |
Sets the interval at which the GPS position is announced. | |
GPSSystem * | toGPSSystemObj () const |
Constructs a generic GPSSystem object from this codeplug representation. | |
bool | linkGPSSystemObj (GPSSystem *gs, Config *conf) const |
Links the previously constructed generic GPSSystem to the rest of the configuration. | |
void | fromGPSSystemObj (const GPSSystem *l, const Config *conf) |
Initializes this codeplug GPS system from the given generic GPSSystem . | |
Public Attributes | |
uint16_t | revert_channel |
Revert channel index, 0=current, index+1. | |
uint8_t | repeat_interval |
Repeat interval x*30s, 0=off. | |
uint8_t | _unused_3 |
Reserved, set to 0xff. | |
uint16_t | destination |
Destination contact index, 0=none or index+1. | |
uint8_t | _unused_6 [10] |
Padding all = 0xff. | |
Represents a single GPS system within the codeplug.
Memmory layout of encoded GPS system:
0 8 16 24 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 00 | Revert channel index + 1, 0 = current | Repeat intv. N x 30s | Unused, set to 0xff | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 04 | Destination contact index + 1 | 10 x unused bytes set to 0xff ... +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0c ... | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+