diff options
author | Andreas.Eversberg <jolly@eversberg.eu> | 2010-10-20 18:09:31 +0000 |
---|---|---|
committer | Andreas.Eversberg <jolly@eversberg.eu> | 2010-10-20 18:09:31 +0000 |
commit | f181a04121053c8d046cf41a98aa4abfc5c89fde (patch) | |
tree | 422173407709cef55a87e487ced1b1bdc17ccd12 /src/host/layer23/include/osmocom | |
parent | 50be02f78e2009c8a75d1f3c6abf63b5f17931ad (diff) |
[layer23] Completed GPS reading process
This includes "double" values of logitude and latitude, as well as time
stamp, and if the values are valid or not (GPS fix).
Diffstat (limited to 'src/host/layer23/include/osmocom')
-rw-r--r-- | src/host/layer23/include/osmocom/bb/common/logging.h | 1 | ||||
-rw-r--r-- | src/host/layer23/include/osmocom/bb/mobile/gps.h | 12 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/logging.h b/src/host/layer23/include/osmocom/bb/common/logging.h index 683c6858..eb9f4821 100644 --- a/src/host/layer23/include/osmocom/bb/common/logging.h +++ b/src/host/layer23/include/osmocom/bb/common/logging.h @@ -20,6 +20,7 @@ enum { DSAP, DSUM, DSIM, + DGPS, }; extern const struct log_info log_info; diff --git a/src/host/layer23/include/osmocom/bb/mobile/gps.h b/src/host/layer23/include/osmocom/bb/mobile/gps.h index a62eab77..b3b43351 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/gps.h +++ b/src/host/layer23/include/osmocom/bb/mobile/gps.h @@ -20,9 +20,15 @@ */ struct gps { - uint8_t enable; - char device[32]; - uint32_t baud; + /* GPS device */ + uint8_t enable; + char device[32]; + uint32_t baud; + + /* current data */ + uint8_t valid; /* we have a fix */ + time_t gmt; /* GMT time when position was received */ + double latitude, longitude; }; extern struct gps gps; |