fdhwlib
2.0.25
|
#include <gpsclock.h>
Collection of variables and function for GPS Clock messages.
Definition at line 46 of file gpsclock.h.
GpsClock::GpsClock | ( | ) |
GpsClock::~GpsClock | ( | ) |
int GpsClock::abs | ( | int | value | ) |
Return the absolut value.
int GpsClock::closeDevice | ( | ) |
Close serial port.
void GpsClock::displayCaptureBuffer | ( | FILE * | fout, |
int | leapSecs, | ||
int | nCaptured, | ||
captureTimeStamp * | tCapture, | ||
int | n | ||
) |
Display the last n values of the capture inputs.
void GpsClock::displayHeader | ( | FILE * | fout, |
const char * | title | ||
) |
void GpsClock::displayInifileEntry | ( | FILE * | fout, |
char * | name, | ||
long | latitude, | ||
long | longitude, | ||
long | height, | ||
const char * | item = "position" , |
||
int | comment = 0 |
||
) |
Display a ini file entry.
void GpsClock::displayMsg | ( | FILE * | fout, |
unsigned char * | buf, | ||
int | len | ||
) |
Display raw data of a gpsclock message.
void GpsClock::displaySelftest | ( | FILE * | fout, |
unsigned char * | buf, | ||
int | len | ||
) |
display selftest result
void GpsClock::displayStatus | ( | FILE * | fout, |
char * | msgEa | ||
) |
int GpsClock::getNCmds | ( | ) |
Array of gps messages.
Get the number of commands
int GpsClock::openDevice | ( | const char * | device = "/dev/oncore.serial.0" | ) |
Open a console application for testing.
Call back function for read access Call back function for keyboard support Open serial port for communication with GpsClock
void GpsClock::receiveMessage | ( | char * | msg, |
int | len | ||
) |
Receive messages from the gpsclock.
void GpsClock::receiverId | ( | ) |
Receiver ID (@Cj)
void GpsClock::selftest | ( | ) |
Self test ()
int GpsClock::sendMessage | ( | std::string | msg | ) |
Send message to GpsClock.
The function will automatically send a check sum if required and the messages termination characters for oncore and auger commands.
void GpsClock::setLeapSeconds | ( | int | sec | ) |
Set the number of leap seconds.
bool GpsClock::showMessage | ( | ) |
Display message depending on command name and debug level.
int GpsClock::sign | ( | double | value | ) |
Determine the sign of the value.
std::string GpsClock::actualCmd [private] |
Buffer for incomplete messages.
Actual command in the buffer
Definition at line 155 of file gpsclock.h.
std::string::size_type GpsClock::actualCmdLen [private] |
Length of the actual command in the buffer.
Definition at line 158 of file gpsclock.h.
int GpsClock::debug |
Debug level (0 = no debug output)
Definition at line 119 of file gpsclock.h.
int GpsClock::fd [private] |
Connection to the clock.
Definition at line 136 of file gpsclock.h.
cmds* GpsClock::instrSet[1] [private] |
List of instruction sets.
Definition at line 149 of file gpsclock.h.
std::string GpsClock::line [private] |
Input line buffer.
Definition at line 143 of file gpsclock.h.
int GpsClock::maxStartupRetries [private] |
Number of retries to open the gpsclock interface.
Definition at line 139 of file gpsclock.h.
shell* GpsClock::sh [private] |
Shell object for the keyboard interface.
Definition at line 146 of file gpsclock.h.