diff options
author | Dante Russo <drusso@codeaurora.org> | 2018-09-11 15:36:47 -0700 |
---|---|---|
committer | Wei Chen <weic@codeaurora.org> | 2018-09-26 14:17:30 -0700 |
commit | 2bef34e8b2b6ffa021cc5544efab5dfdcc802ef3 (patch) | |
tree | 748f72f834f0bda248dd55aab905bd2ab7b0943f /core/LocApiBase.h | |
parent | e183c751515ff530588523c0bd4bc8114ff8c9d1 (diff) | |
download | gps-2bef34e8b2b6ffa021cc5544efab5dfdcc802ef3.tar.gz |
FR47184: tunc constrained and position assisted time estimator
(1) Configure tunc constrained module on modem via gps.conf
(2) Configure position assisted time estimator and inject
DRE position with additional info to modem
(3) Support get total energy consumption API by GNSS engine
since device first bootup
Change-Id: I1e73057df090c1d356c55a498f06eed45839ca8f
CRs-fixed: 2276355
Diffstat (limited to 'core/LocApiBase.h')
-rw-r--r-- | core/LocApiBase.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/LocApiBase.h b/core/LocApiBase.h index e80e273..d4d337a 100644 --- a/core/LocApiBase.h +++ b/core/LocApiBase.h @@ -183,6 +183,7 @@ public: void reportGnssSvIdConfig(const GnssSvIdConfig& config); void reportGnssSvTypeConfig(const GnssSvTypeConfig& config); void requestOdcpi(OdcpiRequestInfo& request); + void reportGnssEngEnergyConsumedEvent(uint64_t energyConsumedSinceFirstBoot); // downward calls // All below functions are to be defined by adapter specific modules: @@ -198,6 +199,10 @@ public: virtual void injectPosition(double latitude, double longitude, float accuracy); + + virtual void + injectPosition(const GnssLocationInfoNotification &locationInfo, bool onDemandCpi=false); + virtual void injectPosition(const Location& location, bool onDemandCpi); virtual void @@ -281,6 +286,12 @@ public: virtual void setConstellationControl(const GnssSvTypeConfig& config); virtual void getConstellationControl(); virtual void resetConstellationControl(); + + virtual LocationError setConstrainedTuncMode(bool enabled, + float tuncConstraint, + uint32_t energyBudget); + virtual LocationError setPositionAssistedClockEstimatorMode(bool enabled); + virtual LocationError getGnssEnergyConsumed(); }; typedef LocApiBase* (getLocApi_t)(LOC_API_ADAPTER_EVENT_MASK_T exMask, |