summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-10-20 20:09:31 +0200
committerAndreas.Eversberg2010-10-20 20:09:31 +0200
commitf181a04121053c8d046cf41a98aa4abfc5c89fde (patch)
tree422173407709cef55a87e487ced1b1bdc17ccd12 /src/host/layer23/include/osmocom
parent[layer23] Fixed header handling of some radio ressource SAP msgs (diff)
downloadosmocom-f181a04121053c8d046cf41a98aa4abfc5c89fde.tar.gz
osmocom-f181a04121053c8d046cf41a98aa4abfc5c89fde.tar.xz
osmocom-f181a04121053c8d046cf41a98aa4abfc5c89fde.zip
[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.h1
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/gps.h12
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 683c685..eb9f482 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 a62eab7..b3b4335 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;