endpoint C207 radio support

Dependents:   mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular

Committer:
ansond
Date:
Fri Mar 28 03:32:20 2014 +0000
Revision:
0:d46b1accad7d
updates

Who changed what in which revision?

UserRevisionLine numberNew 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 0:d46b1accad7d 19 // class support
ansond 0:d46b1accad7d 20 #include "gps.h"
ansond 0:d46b1accad7d 21
ansond 0:d46b1accad7d 22 // MBEDEndpoint support
ansond 0:d46b1accad7d 23 #include "MBEDEndpoint.h"
ansond 0:d46b1accad7d 24
ansond 0:d46b1accad7d 25 // default constructor
ansond 0:d46b1accad7d 26 gps::gps(ErrorHandler *error_handler, void *endpoint) {
ansond 0:d46b1accad7d 27 this->m_error_handler = error_handler;
ansond 0:d46b1accad7d 28 this->m_endpoint = endpoint;
ansond 0:d46b1accad7d 29 }
ansond 0:d46b1accad7d 30
ansond 0:d46b1accad7d 31 // default destructor
ansond 0:d46b1accad7d 32 gps::~gps() {
ansond 0:d46b1accad7d 33 }
ansond 0:d46b1accad7d 34
ansond 0:d46b1accad7d 35 // connect
ansond 0:d46b1accad7d 36 bool gps::connect() {
ansond 0:d46b1accad7d 37 }
ansond 0:d46b1accad7d 38
ansond 0:d46b1accad7d 39 // disconnect
ansond 0:d46b1accad7d 40 bool gps::disconnect() {
ansond 0:d46b1accad7d 41 }
ansond 0:d46b1accad7d 42
ansond 0:d46b1accad7d 43 // get latitude
ansond 0:d46b1accad7d 44 float gps::getLatitude() {
ansond 0:d46b1accad7d 45 }
ansond 0:d46b1accad7d 46
ansond 0:d46b1accad7d 47 // get longitude
ansond 0:d46b1accad7d 48 float gps:: getLongitude() {
ansond 0:d46b1accad7d 49 }
ansond 0:d46b1accad7d 50
ansond 0:d46b1accad7d 51 // ErrorHandler
ansond 0:d46b1accad7d 52 ErrorHandler *gps::logger() { return this->m_error_handler; }