fdhwlib
2.0.25
|
#include <sltsetsecondcounter.h>
Set the second counter of the electronics.
Definition at line 23 of file sltsetsecondcounter.h.
SltSetSecondCounter::SltSetSecondCounter | ( | const char * | name, |
int | slotID, | ||
int | regID, | ||
int | r, | ||
int | w | ||
) |
SltSetSecondCounter::~SltSetSecondCounter | ( | ) |
unsigned long SltSetSecondCounter::setActualTime | ( | ) |
Synchronize the actual time of the system with the local PC clock.
To set the correct value of the second, the function waits 300ms after the next second change. Then the UTC second counter ist converted to GPS seconds second counter is written. The hardware will set this value with the next second strobe. Finally the function checks, whether it was possible to finish the operation within one second.
int SltSetSecondCounter::writeBitsByName | ( | char * | name, |
unsigned long | data | ||
) | [virtual] |
Synchronize the second counter with the PC clock.
The only known command is
Reimplemented from SltRegister.