|
fdhwlib
2.0.25
|
#include <gpsclockmessage.h>
Structure of the gpsclock messages.
Definition at line 27 of file gpsclockmessage.h.
| GpsClockMessage::GpsClockMessage | ( | ) |
Create an empty message.
| GpsClockMessage::GpsClockMessage | ( | unsigned char * | msg, |
| int | len | ||
| ) |
Copy a gpsclock message to the structure.
| GpsClockMessage::GpsClockMessage | ( | int | fd | ) |
Read message from gpsclock.
| GpsClockMessage::GpsClockMessage | ( | int | n, |
| ... | |||
| ) |
Create message from sequence of bytes.
| GpsClockMessage::~GpsClockMessage | ( | ) |
| void GpsClockMessage::display | ( | FILE * | fout, |
| int | debug = 0 |
||
| ) |
Display message.
| int GpsClockMessage::findNextMessage | ( | int | pos = 0 | ) |
Get the index of the next command.
If no next message can be found -1 is returned
| int GpsClockMessage::findNextMessage | ( | std::string * | name, |
| int | pos = 0 |
||
| ) |
Get the index of the next command.
If no next message can be found -1 is returned
| GpsClockMessage& GpsClockMessage::operator+= | ( | GpsClockMessage const & | msg | ) |
Add a message.
| int GpsClockMessage::sendToGpsClock | ( | int | fd | ) |
Write message to gpsclock.
The checksum and the terminating character are supplied automatically if necessary
| GpsClockMessage& GpsClockMessage::splitFirstMessage | ( | ) |
Split first and all folowing messages.
| GpsClockMessage& GpsClockMessage::splitMessage | ( | int | pos | ) |
Split message at position pos.
The first part is return by the function the second part remains in the original message
| unsigned char* GpsClockMessage::data |
Definition at line 75 of file gpsclockmessage.h.
| unsigned int GpsClockMessage::len |
Definition at line 77 of file gpsclockmessage.h.