This class provides an API to communicate with a u-blox GNSS chip. The files here were originally part of the C027_Support library (https://developer.mbed.org/teams/ublox/code/C027_Support/ at revision 138:dafbbf31bf76) but have been separated out, primarily for use on the u-blox C030 board where the cellular interace portion of the C027_Support library will instead be provided through the new mbed Cellular API.

Dependents:   example-ublox-at-cellular-interface-ext example-low-power-sleep example-C030-out-of-box-demo example-C030-out-of-box-demo ... more

Files at this revision

API Documentation at this revision

Comitter:
bqam
Date:
Wed Jun 13 16:59:19 2018 +0500
Parent:
13:10108cd3ad23
Child:
15:105cf3ca48c9
Commit message:
Functions added to access protected methods

Changed in this revision

gnss_operations.cpp Show annotated file Show diff for this revision Revisions of this file
gnss_operations.h Show annotated file Show diff for this revision Revisions of this file
--- a/gnss_operations.cpp	Fri Jun 08 11:18:19 2018 +0500
+++ b/gnss_operations.cpp	Wed Jun 13 16:59:19 2018 +0500
@@ -405,3 +405,13 @@
 
 	return (length >= (int)(sizeof(hot_start) + UBX_FRAME_SIZE)) ? 1 : 0;
 }
+
+void GnssOperations::send_to_gnss(char rChar)
+{
+	GnssSerial::putc(rChar);
+}
+
+void GnssOperations::power_on_gnss()
+{
+	GnssSerial::_powerOn();
+}
--- a/gnss_operations.h	Fri Jun 08 11:18:19 2018 +0500
+++ b/gnss_operations.h	Wed Jun 13 16:59:19 2018 +0500
@@ -57,6 +57,9 @@
 	int cfg_power_mode(int power_mode);
 	int start_mode(int start_mode);
 
+	void send_to_gnss(char);
+	void power_on_gnss();
+
 };
 #ifdef __cplusplus
 }