Gnss Hal Minor Cleanup
Enum sizes and names cleaned up, fixed errors in comments,
cleaned up some variable names.
Also removed AGnssRefLocation since it appears to be unused.
Bug:31974439
Test: mm
Change-Id: I88f43caac5ce9c7137e28b29ba55ea330786745f
diff --git a/gnss/1.0/IGnssCallback.hal b/gnss/1.0/IGnssCallback.hal
index 5234688..041f949 100644
--- a/gnss/1.0/IGnssCallback.hal
+++ b/gnss/1.0/IGnssCallback.hal
@@ -47,9 +47,9 @@
};
/* GNSS status event values. */
- enum GnssStatusValue : uint16_t {
+ enum GnssStatusValue : uint8_t {
/** GNSS status unknown. */
- STATUS_NONE = 0,
+ NONE = 0,
/** GNSS has begun navigating. */
SESSION_BEGIN = 1,
/** GNSS has stopped navigating. */
@@ -64,7 +64,7 @@
* Flags that indicate information about the satellite
*/
enum GnssSvFlags : uint8_t {
- FLAGS_NONE = 0,
+ NONE = 0,
HAS_EPHEMERIS_DATA = 1 << 0,
HAS_ALMANAC_DATA = 1 << 1,
USED_IN_FIX = 1 << 2
@@ -121,13 +121,13 @@
/*
* Number of GNSS SVs currently visible, refers to the SVs stored in sv_list
*/
- int32_t numSvs;
+ uint32_t numSvs;
/*
* Pointer to an array of SVs information for all GNSS constellations,
* except GNSS, which is reported using svList
*/
- GnssSvInfo[ConstS32:GNSS_MAX_SVS] gnssSvList;
+ GnssSvInfo[GnssMax:SVS_COUNT] gnssSvList;
};