fdhwlib
2.0.25
|
#include <sltsetsecondcounter.h>
Set the second counter of the electronics.
Definition at line 27 of file sltsetsecondcounter.h.
hw4::SltSetSecondCounter::SltSetSecondCounter | ( | const char * | name, |
int | slotID, | ||
int | regID, | ||
int | r, | ||
int | w | ||
) |
hw4::SltSetSecondCounter::~SltSetSecondCounter | ( | ) |
unsigned long hw4::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.
void hw4::SltSetSecondCounter::setTimebase | ( | int | timebase | ) |
Set timebase (GPS = 0, UTC = 1)
Virtual item to set the actual time.
Definition at line 34 of file sltsetsecondcounter.h.
Definition at line 57 of file sltsetsecondcounter.h.