An extension of original API for working with GPS devices.

GPSProvider.cpp

Committer:
rgrover1
Date:
2014-11-03
Revision:
2:0893ad528287
Parent:
1:c1122f8eec82
Child:
3:47aaf0ebde35

File content as of revision 2:0893ad528287:

/* mbed Microcontroller Library
 * Copyright (c) 2006-2014 ARM Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "mbed.h"
#include "GPSProviderImplBase.h"
#include "GPSProvider.h"

bool
GPSProvider::setPowerMode(PowerMode_t power)
{
    return impl->setPowerMode(power);
}

void
GPSProvider::reset(void)
{
    impl->reset();
}

void
GPSProvider::start(void)
{
    impl->start();
}

void
GPSProvider::stop(void)
{
    impl->stop();
}

void
GPSProvider::process(void)
{
    impl->process();
}

bool
GPSProvider::haveDeviceInfo(void) const
{
    return impl->haveDeviceInfo();
}

const char *
GPSProvider::getDeviceInfo(void) const
{
    return impl->getDeviceInfo();
}

bool
GPSProvider::locationAvailable(void) const
{
    return impl->locationAvailable();
}

const GPSProvider::LocationUpdateParams_t *
GPSProvider::getLastLocation(void) const
{
    return impl->getLastLocation();
}

void
GPSProvider::onLocationUpdate(LocationUpdateCallback_t callback)
{
    impl->onLocationUpdate(callback);
}

void
GPSProvider::lpmGetImmediateLocation(void)
{
    impl->lpmGetImmediateLocation();
}