PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Sensor
libgps
gps_close.c
1
10
#include "
gps.h
"
11
12
volatile
int
gps_cog;
13
volatile
int
gps_stopping;
14
nmea_data
gps_data;
15
16
void
gps_close
()
17
{
18
if
(gps_cog >= 0)
19
{
20
memset(&gps_data, 0,
sizeof
(
nmea_data
));
//clear the GPS data structure
21
gps_stopping = 1;
22
23
while
(gps_stopping);
24
25
cogstop
(gps_cog);
26
gps_cog = -1;
27
}
28
}
29
nmea_data_s
Definition:
gps.h:46
cogstop
#define cogstop(a)
Stop a COG.
Definition:
propeller.h:100
gps_close
void gps_close()
Stops the GPS parser process and communication UART. Calling this effectively frees two cogs.
Definition:
gps_close.c:16
gps.h
This library provides basic NMEA parsing capabilities. It is designed to take raw NMEA strings,...
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17