46 void readTime(
int year,
long* mjd,
long* ms);
92 void arm(
int mjd,
int sec);
104 RegMapBlock *freeze_;
109 RegMapBlock *release_;
114 RegMapBlock *utc_reg0_;
119 RegMapBlock *utc_regs_;
124 RegMapBlock *period_;
129 RegMapBlock *intset_;
134 RegMapBlock *intvec_;
149 bool reported_error_;
154 bool reported_unlock_;
159 bool reported_badday_;
164 bool reported_unreachable_;
169 bool isLeapYear(
int year);
177 #endif // End #ifndef
Encapsulate details about the registers of the GPS time-code reader.
void failedConnect()
A private function of GpsBoard::connect(), called on error.
void reset()
Called to intialize.
void enableLeapYear(int year)
Enable the leap-year flag of the GPS if the year is a leap year.
void connect(int year)
Activate the time-code-reader board.
void readTime(int year, long *mjd, long *ms)
Read the current date and time from the time code reader card, and return it as a Modified Julian Dat...
void disconnect()
Shutdown the time-code-reader board.
GpsBoard(SzaShare *share, std::string name)
Constructor function for this board.
A class which encapsulates resources of a board of the shared register map.
void arm(int mjd, int sec)
Arm the gps time-code reader to output a start pulse at a given time.
Tagged: Thu Nov 13 16:53:34 UTC 2003.
An instance of this class is created by AntennaMaster and passed to the constructors of other tasks...