From f181a04121053c8d046cf41a98aa4abfc5c89fde Mon Sep 17 00:00:00 2001 From: Andreas.Eversberg Date: Wed, 20 Oct 2010 18:09:31 +0000 Subject: [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). --- src/host/layer23/include/osmocom/bb/common/logging.h | 1 + src/host/layer23/include/osmocom/bb/mobile/gps.h | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/host/layer23/include/osmocom') 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; -- cgit v1.2.3-55-g7522