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.
Dependencies: FileManager GPSGms6 SDFileSystem mbed
Fork of 2545_SD_Card by
Diff: GPSGms6.h
- Revision:
- 6:a05ec997c496
- Parent:
- 4:aa7ac2ac6913
- Child:
- 9:4d0c81290638
--- a/GPSGms6.h Mon May 09 09:02:56 2016 +0000
+++ b/GPSGms6.h Mon May 09 09:31:44 2016 +0000
@@ -17,8 +17,7 @@
#define INVALID_VALUE 0xFFFF
#define RX_BUF_SIZE 100
-typedef struct
-{
+typedef struct {
char header[HEADER_SIZE+1];
char time[GPRMC_TIME_SIZE+1];
char status[GPRMC_TIME_SIZE+1];
@@ -32,10 +31,9 @@
char magnetic[GPRMC_MAGNETIC_SIZE+1];
char magnetic_dir[GPRMC_MAGNETIC_DIR_SIZE+1];
char indicator[GPRMC_INDICATOR_SIZE+1];
-} GPRMC_Data_TypeDef;
+} GPRMC_Data_TypeDef;
-typedef enum GPS_ProcessState
-{
+typedef enum GPS_ProcessState {
GPS_Process_Start = 0,
GPS_Process_Header,
GPS_Process_Time,
@@ -54,26 +52,24 @@
GPS_Process_SIZE
} GPS_ProcessState;
-typedef enum GPS_ProcessStatus
-{
+typedef enum GPS_ProcessStatus {
GPS_Status_Valid,
GPS_Status_Empty,
GPS_Status_NotEnough,
} GPS_ProcessStatus;
-typedef struct
-{
+typedef struct {
GPS_ProcessState state;
int size;
char * p_val;
-} GPRMC_Tbl_TypeDef;
+} GPRMC_Tbl_TypeDef;
-class GPSGms6
+class GPSGms6
{
public:
-
+
GPSGms6();
void start_GPS();
@@ -90,7 +86,7 @@
* Valid Data Interval
*/
GPRMC_Data_TypeDef validGPRMC();
-
+
/** Get availability of gprmc
*
* @returns
@@ -102,13 +98,13 @@
private:
// States
-
+
//Member variables
-
-
-
+
+
+
//void GPS_ProcessGpsData(char * buf, unsigned int size, char * t, char * d);
//GPS_ProcessStatus GPS_ProcessGprmcSection(GPS_ProcessState state,char * buf , unsigned int buf_index,unsigned int buf_size, unsigned int section_size, char * ret_value);
-
+
};
\ No newline at end of file
