Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: example-ublox-at-cellular-interface-ext example-low-power-sleep example-C030-out-of-box-demo example-C030-out-of-box-demo ... more
gnss_operations.h
- Committer:
- fahim.alavi@u-blox.com
- Date:
- 2018-11-09
- Revision:
- 25:f538f1dc4121
- Parent:
- 22:d8cd4cf0fcc0
- Child:
- 26:2876ec28d223
File content as of revision 25:f538f1dc4121:
#include "gnss.h"
#define UBX_FRAME_SIZE 8
#ifdef __cplusplus
extern "C" {
#endif
/** Enums
*/
enum Command{
POWER_ON,
POWER_OFF,
MON_VER,
ENABLE_UBX,
RESTART, // mbed conflict with RESET
CUSTOMER,
AVAILABLE_CONFIG
};
/** The reset modes
*/
enum Start{
HOT,
COLD,
WARM,
MAX_MODE
};
/** The operation modes
*/
enum Powermodes{
CONSERVATIVE_CONTINOUS,
AGGRESSIVE_CONTINUOS,
SEMI_CONTINOUS,
FULL_POWER,
FULL_POWER_BLOCK_LEVEL,
FULL_POWER_BUILDING_LEVEL,
AVAILABLE_OPERATION
};
class GnssOperations : public GnssSerial{
//GnssSerial constructor can be called here to configure different baud rate
//Constructor not required at the moment
//GnssOperations();
public:
int enable_ubx_nav_pvt();
int enable_ubx_nav_status();
int enable_ubx_nav_sat();
int enable_ubx_nav_sol();
int disable_ubx_nav_pvt();
int enable_ubx_nav5(unsigned int acc);
int enable_ubx_odo();
int disable_ubx_odo();
int enable_ubx_nav_odo();
int disable_ubx_nav_odo();
int enable_ubx_batch_feature();
int disable_ubx_batch_feature();
int cfg_batch_feature(tUBX_CFG_BATCH *obj);
int cfg_power_mode(Powermodes power_mode);
bool verify_gnss_mode();
int start_mode(int start_mode);
void send_to_gnss(char);
void power_on_gnss();
};
#ifdef __cplusplus
}
#endif