PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Sensor
libgps
gps_changeBaud.c
1
10
#include "
gps.h
"
11
12
volatile
int
_gps_rx_pin, _gps_tx_pin;
13
14
int
gps_changeBaud
(
int
newBaudRate)
15
{
16
gps_close
();
17
pause
(50);
18
return
(
gps_open
(_gps_rx_pin, _gps_tx_pin, newBaudRate));
19
}
20
pause
void pause(int time)
Delay cog from moving on to the next statement for a certain length of time.
Definition:
libws2812.c:125
gps_open
int gps_open(int gpsSin, int gpsSout, int gps_baud)
Starts the GPS NMEA parser process. This process ultimately consumes two cogs - one cog to continuous...
Definition:
gps_open.c:21
gps_changeBaud
int gps_changeBaud(int newBaudRate)
Changes the baud rate of the UART without requiring you to respecify communication pins....
Definition:
gps_changeBaud.c:14
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