fdhwlib  2.0.25
hw4::SltSetSecondCounter Class Reference

#include <sltsetsecondcounter.h>

Inheritance diagram for hw4::SltSetSecondCounter:
hw4::BaseRegister Pbus

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Set the second counter of the electronics.

Definition at line 27 of file sltsetsecondcounter.h.


Constructor & Destructor Documentation

hw4::SltSetSecondCounter::SltSetSecondCounter ( const char *  name,
int  slotID,
int  regID,
int  r,
int  w 
)
hw4::SltSetSecondCounter::~SltSetSecondCounter ( )

Member Function Documentation

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.

Returns:
The second since beginning of GPS time when the crate was synchronized. A value of zero indicates that the setting failed. Repeat the function.
void hw4::SltSetSecondCounter::setTimebase ( int  timebase)

Set timebase (GPS = 0, UTC = 1)


Member Data Documentation

Virtual item to set the actual time.

Definition at line 34 of file sltsetsecondcounter.h.


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