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: mbed-os-example-mbed5-wifi
GPS Class Reference
A GPS interface for reading from a Globalsat EM-406 GPS Module. More...
#include <stm32l475e_iot01_gps.h>
Public Member Functions | |
| GPS (PinName tx, PinName rx) | |
| Create the GPS interface, connected to the specified serial port. | |
| int | sample () |
| Sample the incoming GPS data, returning whether there is a lock. | |
Data Fields | |
| float | longitude |
| The longitude (call sample() to set) | |
| float | latitude |
| The latitude (call sample() to set) | |
Detailed Description
A GPS interface for reading from a Globalsat EM-406 GPS Module.
Definition at line 8 of file stm32l475e_iot01_gps.h.
Constructor & Destructor Documentation
| GPS | ( | PinName | tx, |
| PinName | rx | ||
| ) |
Create the GPS interface, connected to the specified serial port.
Definition at line 8 of file stm32l475e_iot01_gps.cpp.
Member Function Documentation
| int sample | ( | ) |
Sample the incoming GPS data, returning whether there is a lock.
- Returns:
- 1 if there was a lock when the sample was taken (and therefore .longitude and .latitude are valid), else 0
Definition at line 19 of file stm32l475e_iot01_gps.cpp.
Field Documentation
| float latitude |
The latitude (call sample() to set)
Definition at line 25 of file stm32l475e_iot01_gps.h.
| float longitude |
The longitude (call sample() to set)
Definition at line 22 of file stm32l475e_iot01_gps.h.
Generated on Wed Aug 3 2022 04:27:52 by
1.7.2