endpoint C207 radio support
Dependents: mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular
MBEDUbloxGPS.h@23:a12a6b3910a9, 2014-09-26 (annotated)
- Committer:
- ansond
- Date:
- Fri Sep 26 05:22:50 2014 +0000
- Revision:
- 23:a12a6b3910a9
- Parent:
- 20:9572d860cb54
updates for new logger
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:d46b1accad7d | 1 | /* Copyright C2013 Doug Anson, MIT License |
ansond | 0:d46b1accad7d | 2 | * |
ansond | 0:d46b1accad7d | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
ansond | 0:d46b1accad7d | 4 | * and associated documentation files the "Software", to deal in the Software without restriction, |
ansond | 0:d46b1accad7d | 5 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
ansond | 0:d46b1accad7d | 6 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
ansond | 0:d46b1accad7d | 7 | * furnished to do so, subject to the following conditions: |
ansond | 0:d46b1accad7d | 8 | * |
ansond | 0:d46b1accad7d | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
ansond | 0:d46b1accad7d | 10 | * substantial portions of the Software. |
ansond | 0:d46b1accad7d | 11 | * |
ansond | 0:d46b1accad7d | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
ansond | 0:d46b1accad7d | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
ansond | 0:d46b1accad7d | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
ansond | 0:d46b1accad7d | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
ansond | 0:d46b1accad7d | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
ansond | 0:d46b1accad7d | 17 | */ |
ansond | 0:d46b1accad7d | 18 | |
ansond | 3:6acc6c8143b7 | 19 | #ifndef _MBED_UBLOX_GPS_H_ |
ansond | 3:6acc6c8143b7 | 20 | #define _MBED_UBLOX_GPS_H_ |
ansond | 2:a28f19f39f2b | 21 | |
ansond | 20:9572d860cb54 | 22 | // UBLOX GPS Support |
ansond | 16:19f597d8048f | 23 | #include "GPS.h" |
ansond | 1:76d2da9e2b84 | 24 | |
ansond | 5:a8fd1fa0f0d0 | 25 | // BaseClass support |
ansond | 5:a8fd1fa0f0d0 | 26 | #include "BaseClass.h" |
ansond | 20:9572d860cb54 | 27 | |
ansond | 5:a8fd1fa0f0d0 | 28 | class MBEDUbloxGPS : public BaseClass { |
ansond | 0:d46b1accad7d | 29 | private: |
ansond | 16:19f597d8048f | 30 | GPSParser *m_gps; |
ansond | 17:c48b03c386fb | 31 | #ifdef ENABLE_THREADS |
ansond | 1:76d2da9e2b84 | 32 | Thread *m_gps_poll_thread; |
ansond | 17:c48b03c386fb | 33 | #endif |
ansond | 1:76d2da9e2b84 | 34 | float m_latitude; |
ansond | 1:76d2da9e2b84 | 35 | float m_longitude; |
ansond | 0:d46b1accad7d | 36 | |
ansond | 0:d46b1accad7d | 37 | public: |
ansond | 23:a12a6b3910a9 | 38 | MBEDUbloxGPS(Logger *error_handler, void *endpoint,void *gps); |
ansond | 5:a8fd1fa0f0d0 | 39 | virtual ~MBEDUbloxGPS(); |
ansond | 0:d46b1accad7d | 40 | |
ansond | 1:76d2da9e2b84 | 41 | void update(); |
ansond | 7:948040230536 | 42 | |
ansond | 7:948040230536 | 43 | bool connect(); |
ansond | 6:cd2d23300f05 | 44 | bool disconnect(); |
ansond | 1:76d2da9e2b84 | 45 | |
ansond | 0:d46b1accad7d | 46 | float getLatitude(); |
ansond | 0:d46b1accad7d | 47 | float getLongitude(); |
ansond | 0:d46b1accad7d | 48 | }; |
ansond | 0:d46b1accad7d | 49 | |
ansond | 3:6acc6c8143b7 | 50 | #endif // _MBED_UBLOX_GPS_H_ |
ansond | 0:d46b1accad7d | 51 | |
ansond | 0:d46b1accad7d | 52 |