libdrmconf  0.10.4
A library to program DMR radios.
Public Member Functions | Protected Member Functions | List of all members
RD5RCodeplug::TimestampElement Class Reference

Implements the timestamp for RD-5R codeplugs. More...

#include <rd5r_codeplug.hh>

Inheritance diagram for RD5RCodeplug::TimestampElement:
Inheritance graph
[legend]
Collaboration diagram for RD5RCodeplug::TimestampElement:
Collaboration graph
[legend]

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.
 

Detailed Description

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                 |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

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