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: CsrLocationDemo CsrLocationDemo
Fork of CsrLocation by
CSRLocation Class Reference
CSRLocation class. More...
#include <CsrLocation.h>
Public Member Functions | |
| CSRLocation (RawSerial &serialLoc, DigitalOut &pinOnoff, DigitalOut &pinReset, DigitalIn &wakeup, Serial *debugP=NULL) | |
| Constructor: CsrLocation Create the CSRLocation, accept specified configuration. | |
| virtual | ~CSRLocation () |
| Destructor: CSRLocation Free allocated resource. | |
| void | CsrLocRegOutput (csr_app_output_callback app_output_cb, csr_app_event_callback app_event_cb) |
| Register output callback and event callback functions. | |
| virtual void | reset (void) |
| HW reset to get location chip into hibernation mode. | |
Detailed Description
CSRLocation class.
A location interface to control location chip and get position and satellite information.
Definition at line 287 of file CsrLocation.h.
Constructor & Destructor Documentation
| CSRLocation | ( | RawSerial & | serialLoc, |
| DigitalOut & | pinOnoff, | ||
| DigitalOut & | pinReset, | ||
| DigitalIn & | wakeup, | ||
| Serial * | debugP = NULL |
||
| ) |
Constructor: CsrLocation Create the CSRLocation, accept specified configuration.
- Parameters:
-
[in] pSerialLoc serial communication channel between host and GPS controller. [in] pPinOnoff GPIO pin to control location chip on, a rising edge is used to activate location chip. Please note, before activate chip, reset pin should be pull high. [in] pPinReset GPIO pin to control location chip reset, low level will keep location chip in hibernation state and high level will permit location chip to be activated. [in] pWakeup GPIO pin to detect if the chip is still wakeup. [in] pLocConfig Configuration including debug serial port, location communication serial port, onoff pin, reset pin [in] debugP The debug port for diagnostic messages; can be NULL.
Definition at line 19 of file CsrLocation.cpp.
| ~CSRLocation | ( | void | ) | [virtual] |
Destructor: CSRLocation Free allocated resource.
Definition at line 54 of file CsrLocation.cpp.
Member Function Documentation
| void CsrLocRegOutput | ( | csr_app_output_callback | app_output_cb, |
| csr_app_event_callback | app_event_cb | ||
| ) |
Register output callback and event callback functions.
- Parameters:
-
app_output_cb CSRLocation class output the location and satellite information to application app_event_cb CSRLocation class output the start and stop result to application
Definition at line 66 of file CsrLocation.cpp.
| void reset | ( | void | ) | [virtual] |
HW reset to get location chip into hibernation mode.
Definition at line 119 of file CsrLocation.cpp.
Generated on Tue Jul 12 2022 22:56:46 by
1.7.2

GPS mbed Shield