LibDMRConf  0.5.0
A library to program DMR radios.
Public Member Functions | Public Attributes | List of all members
UV390Codeplug::timestamp_t Struct Reference

Codeplug representation of programming time-stamp and CPS version. More...

#include <uv390_codeplug.hh>

Public Member Functions

 timestamp_t ()
 Constructor.
 
void set ()
 Clears the timestamp.
 
QDateTime getTimestamp () const
 Returns the timestamp.
 
void setTimestamp (const QDateTime &dt=QDateTime::currentDateTimeUtc())
 Sets the timestamp.
 
QString cpsVersion () const
 Returns the CSP version string.
 

Public Attributes

uint8_t _pad0
 Fixed 0xff.
 
uint8_t date [7]
 YYYY-MM-DD hh:mm:ss as 14 BCD numbers.
 
uint8_t cps_version [4]
 CPS version vv.vv, encoded using map "0123456789:;<=>?".
 

Detailed Description

Codeplug representation of programming time-stamp and CPS version.

Memmory layout of encoded timestamp:

     0                               8                               16                              24
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
00 | Unused, set to 0x00           | Date YYYY-MM-DD hh:mm:ss encoded as 14 BCD numbers                                         ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
04  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
08 | CPS Version, VV.VV encoded using table {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, :, ;, <, =, >, ?}                                       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

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