fdhwlib  2.0.25
SltSetSecondCounter Class Reference

#include <sltsetsecondcounter.h>

Inheritance diagram for SltSetSecondCounter:
SltRegister Pbus

List of all members.

Public Member Functions


Detailed Description

Set the second counter of the electronics.

Definition at line 23 of file sltsetsecondcounter.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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.

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.
int SltSetSecondCounter::writeBitsByName ( char *  name,
unsigned long  data 
) [virtual]

Synchronize the second counter with the PC clock.

The only known command is

  • sync

Reimplemented from SltRegister.


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