diff options
author | destradaa <destradaa@google.com> | 2014-08-05 17:01:10 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-04 23:37:12 +0000 |
commit | 6ca86fbe169726ef38d9fad23f190009520a7d9c (patch) | |
tree | 85f908bb334b54c5e1eeef7a174063273011808e /include | |
parent | 01206e579c692cd58cb961dd942ec4c579ea36df (diff) | |
parent | 69d5ea5dac279296156944be06673d8983b059b9 (diff) | |
download | hardware_libhardware-6ca86fbe169726ef38d9fad23f190009520a7d9c.zip hardware_libhardware-6ca86fbe169726ef38d9fad23f190009520a7d9c.tar.gz hardware_libhardware-6ca86fbe169726ef38d9fad23f190009520a7d9c.tar.bz2 |
Merge "Add HAL capabilities for GPS Measurements and Navigation Messages." into lmp-dev
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/gps.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/hardware/gps.h b/include/hardware/gps.h index 5747faa..eb44d5c 100644 --- a/include/hardware/gps.h +++ b/include/hardware/gps.h @@ -110,6 +110,10 @@ typedef uint16_t GpsLocationFlags; #define GPS_CAPABILITY_ON_DEMAND_TIME 0x0000010 /** GPS supports Geofencing */ #define GPS_CAPABILITY_GEOFENCING 0x0000020 +/** GPS supports Measurements */ +#define GPS_CAPABILITY_MEASUREMENTS 0x0000040 +/** GPS supports Navigation Messages */ +#define GPS_CAPABILITY_NAV_MESSAGES 0x0000080 /** Flags used to specify which aiding data to delete when calling delete_aiding_data(). */ @@ -1690,7 +1694,7 @@ typedef struct { /** * The length of the data (in bytes) contained in the current message. * If this value is different from zero, 'data' must point to an array of the same size. - * i.e. for L1 C/A the size of the sub-frame will be 40 bytes (10 words). + * e.g. for L1 C/A the size of the sub-frame will be 40 bytes (10 words, 30 bits/word). * * This is a Mandatory value. */ @@ -1699,6 +1703,9 @@ typedef struct { /** * The data of the reported GPS message. * The bytes (or words) specified using big endian format (MSB first). + * + * For L1 C/A, each subframe contains 10 30-bit GPS words. Each GPS word (30 bits) should be + * fitted into the last 30 bits in a 4-byte word (skip B31 and B32), with MSB first. */ uint8_t* data; |