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
Diff: gnss_operations.h
- Revision:
- 16:cb9861f0f4d8
- Parent:
- 14:4b22bd505b93
- Child:
- 18:7adca4350499
--- a/gnss_operations.h Tue Jul 24 16:02:21 2018 +0500 +++ b/gnss_operations.h Wed Aug 01 13:14:52 2018 +0500 @@ -29,12 +29,14 @@ /** The operation modes */ enum Powermodes{ - SEMI_CONTINOUS, - AGGRESSIVE_CONTINUOS, - CONSERVATIVE_CONTINOUS, - FULL_POWER, - AVAILABLE_OPERATION - }; + + CONSERVATIVE_CONTINOUS, + AGGRESSIVE_CONTINUOS, + SEMI_CONTINOUS, + FULL_POWER, + AVAILABLE_OPERATION + }; + class GnssOperations : public GnssSerial{ @@ -54,7 +56,7 @@ int enable_ubx_batch_feature(); int disable_ubx_batch_feature(); int cfg_batch_feature(tUBX_CFG_BATCH *obj); - int cfg_power_mode(int power_mode); + int cfg_power_mode(Powermodes power_mode); int start_mode(int start_mode); void send_to_gnss(char);