54 lines
1.0 KiB
C++
54 lines
1.0 KiB
C++
//
|
|
// Linux GPS
|
|
//
|
|
|
|
/* prevent multiple inclusions */
|
|
#ifndef __SirfProtocol__
|
|
#define __SirfProtocol__
|
|
|
|
/* includes *****************************************************************/
|
|
|
|
#include "netlib.h"
|
|
|
|
#include "NmeaProtocol.h"
|
|
|
|
/* defines ******************************************************************/
|
|
|
|
/* macros *******************************************************************/
|
|
|
|
/* structs & typedefs *******************************************************/
|
|
|
|
/* c class definitions ******************************************************/
|
|
|
|
//
|
|
// GpsLinux because it depennds on GPSd, the HAMLIB and NMEAP libraries
|
|
//
|
|
class SirfProtocol {
|
|
// public data
|
|
public:
|
|
|
|
// protected data
|
|
protected:
|
|
|
|
// private data
|
|
private:
|
|
|
|
// private methods
|
|
|
|
// public methods
|
|
public:
|
|
// constructors
|
|
SirfProtocol();
|
|
|
|
// destructor
|
|
virtual ~SirfProtocol();
|
|
|
|
// virtual functions
|
|
|
|
// public methods
|
|
static void SirfChecksum( unsigned char *buf, int len );
|
|
static void SirfBinary2Nmea( int baud, unsigned char *buf, int max );
|
|
};
|
|
|
|
#endif
|