|
Nol.A SDK Library 26.11.2
For IoT System Software Development
|
ORG4400 GPS receiver with on/off pulse and wakeup-status GPIOs. Call begin() and register the device-specific callback before enabling reception. More...
#include <ORG4400.hpp>
Public Member Functions | |
| ORG4400 (SerialPort &uart, int8_t pinOnOff, int8_t pinWakeup) | |
| Bind UART, on/off output pin, and wakeup-status input pin. | |
| void | begin () |
| Configure 4800-baud reception and GPIO; listen if the receiver is already on. | |
| void | onReadDone (void(*func)(int32_t latitude, int32_t longitude, int32_t altitude, uint8_t numSatellites)) |
| Register the legacy position callback; nullptr disables notification. | |
| void | turnOn () |
| If off, enable reception and pulse the hardware on/off pin. | |
| void | turnOff () |
| If on, pulse the hardware on/off pin and stop UART input/listening. | |
| bool | isOn () |
| Return true when the receiver wakeup-status pin is high. | |
| Public Member Functions inherited from Gps | |
| void | onReadDone (void(*func)(uint8_t fixQuality, uint8_t hour, uint8_t minute, uint8_t sec, uint16_t subsec, int32_t latitude, int32_t longitude, int32_t altitude, uint8_t numSatellites)) |
| Register the GGA callback; nullptr disables legacy GGA notifications. | |
Additional Inherited Members | |
| Public Attributes inherited from Gps | |
| void(* | onNMEAReceived )(Gps &) = nullptr |
| Optional raw-NMEA notification used by MT3339 after receiving VTG. Invoked only when no onReadDone() callback is installed; read cached sentences during the callback because most caches are cleared immediately afterward. | |
| Static Protected Member Functions inherited from Gps | |
| static uint8_t | ParseGGA (const char *msg, uint8_t *hour, uint8_t *minute, uint8_t *sec, uint16_t *subsec, int32_t *latitude, int32_t *longitude, uint8_t *numSat, char *strHDOP, int32_t *altitude, int32_t *sep, int32_t *diffAge, int32_t *diffStation) |
| static bool | ParseGSA (const char *msg, char *opMode, uint8_t *navMode, float *pdop, float *hdop, float *vdop) |
| static bool | ParseRMC (const char *msg, float *spd, float *cog) |
| Protected Attributes inherited from Gps | |
| void(* | callbackRead )(uint8_t fixQuality, uint8_t hour, uint8_t minute, uint8_t sec, uint16_t subsec, int32_t latitude, int32_t longitude, int32_t altitude, uint8_t numSatellites) |
ORG4400 GPS receiver with on/off pulse and wakeup-status GPIOs. Call begin() and register the device-specific callback before enabling reception.
|
virtual |
Return true when the receiver wakeup-status pin is high.
Implements Gps.
| void ORG4400::onReadDone | ( | void(* | func )(int32_t latitude, int32_t longitude, int32_t altitude, uint8_t numSatellites) | ) |
Register the legacy position callback; nullptr disables notification.
| func | Receives encoded latitude, longitude, altitude, and satellite count. The legacy parser combines integer and fractional fields with bitwise OR (coordinate integer parts are multiplied by 10000, altitude by 10) and ignores hemisphere indicators. Values must not be treated as signed decimal degrees. |
|
virtual |
If on, pulse the hardware on/off pin and stop UART input/listening.
Implements Gps.
|
virtual |
If off, enable reception and pulse the hardware on/off pin.
Implements Gps.