Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
GPSProvider.cpp
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2014 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #include "mbed.h" 00018 #include "GPSProviderImplBase.h" 00019 #include "GPSProvider.h" 00020 00021 bool 00022 GPSProvider::setPowerMode(PowerMode_t power) 00023 { 00024 return impl->setPowerMode(power); 00025 } 00026 00027 void 00028 GPSProvider::reset(void) 00029 { 00030 impl->reset(); 00031 } 00032 00033 void 00034 GPSProvider::start(void) 00035 { 00036 impl->start(); 00037 } 00038 00039 void 00040 GPSProvider::stop(void) 00041 { 00042 impl->stop(); 00043 } 00044 00045 void 00046 GPSProvider::process(void) 00047 { 00048 impl->process(); 00049 } 00050 00051 bool 00052 GPSProvider::haveDeviceInfo(void) const 00053 { 00054 return impl->haveDeviceInfo(); 00055 } 00056 00057 const char * 00058 GPSProvider::getDeviceInfo(void) const 00059 { 00060 return impl->getDeviceInfo(); 00061 } 00062 00063 uint32_t 00064 GPSProvider::ioctl(uint32_t command, void *arg) 00065 { 00066 return impl->ioctl(command, arg); 00067 } 00068 00069 bool 00070 GPSProvider::locationAvailable(void) const 00071 { 00072 return impl->locationAvailable(); 00073 } 00074 00075 const GPSProvider::LocationUpdateParams_t * 00076 GPSProvider::getLastLocation(void) const 00077 { 00078 return impl->getLastLocation(); 00079 } 00080 00081 void 00082 GPSProvider::onLocationUpdate(LocationUpdateCallback_t callback) 00083 { 00084 impl->onLocationUpdate(callback); 00085 } 00086 00087 void 00088 GPSProvider::lpmGetImmediateLocation(void) 00089 { 00090 impl->lpmGetImmediateLocation(); 00091 } 00092 00093 // [ST-GNSS] - Geofencing API 00094 bool 00095 GPSProvider::isGeofencingSupported(void) const 00096 { 00097 return impl->isGeofencingSupported(); 00098 } 00099 // [ST-GNSS] - Geofencing API 00100 void 00101 GPSProvider::onGeofencesTrigger(GeofencesTriggerCallback_t callback) 00102 { 00103 impl->onGeofencesTrigger(callback); 00104 }
Generated on Fri Jul 15 2022 15:27:30 by
1.7.2