Add a bunch of APNs
Fork of C027_Support by
Diff: GPS.h
- Revision:
- 51:e7b81c31baec
- Parent:
- 40:295099ff5338
- Child:
- 74:208e3e32d263
diff -r d76aece8038f -r e7b81c31baec GPS.h --- a/GPS.h Fri May 09 19:35:18 2014 +0000 +++ b/GPS.h Mon May 12 07:09:31 2014 +0000 @@ -18,16 +18,19 @@ class GPSParser { public: - // - #define WAIT -1 //!< wait for more incoming data (the start of a message was found, or no data available) - #define NOT_FOUND 0 //!< a parser concluded the the current offset of the pipe doe not contain a valid message + enum { + // getLine Responses + WAIT = -1, //!< wait for more incoming data (the start of a message was found, or no data available) + NOT_FOUND = 0, //!< a parser concluded the the current offset of the pipe doe not contain a valid message - #define UNKNOWN 0x000000 //!< message type is unknown - #define UBX 0x100000 //!< message if of protocol NMEA - #define NMEA 0x200000 //!< message if of protocol UBX - #define LENGTH(x) (x & 0x00FFFF) //!< extract/mask the length - #define PROTOCOL(x) (x & 0xFF0000) //!< extract/mask the type + #define LENGTH(x) (x & 0x00FFFF) //!< extract/mask the length + #define PROTOCOL(x) (x & 0xFF0000) //!< extract/mask the type + UNKNOWN = 0x000000, //!< message type is unknown + UBX = 0x100000, //!< message if of protocol NMEA + NMEA = 0x200000 //!< message if of protocol UBX + }; + /** Get a line from the physical interface. This fucntion needs to be implemented in the inherited class. \param buf the buffer to store it