libdrmconf
0.10.4
A library to program DMR radios.
|
Implements the timestamp for RD-5R codeplugs. More...
#include <rd5r_codeplug.hh>
Public Member Functions | |
TimestampElement (uint8_t *ptr) | |
Constructor. | |
virtual | ~TimestampElement () |
Destructor. | |
void | clear () |
Resets the timestamp. | |
virtual QDateTime | get () const |
Returns the time stamp. | |
virtual void | set (const QDateTime &ts=QDateTime::currentDateTime()) |
Sets the time stamp. | |
Protected Member Functions | |
TimestampElement (uint8_t *ptr, unsigned size) | |
Hidden constructor. | |
Implements the timestamp for RD-5R codeplugs.
Encoding of messages (size: 0x0006b):
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 00 | Year, 4xBCD, big-endian | Month 2xBCD | Day 2xBCD | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 04 | Hour, 2xBCD | Minute, 2xBCD | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+