Nol.A SDK Library 26.11.2
For IoT System Software Development
Loading...
Searching...
No Matches
EVAM8M Class Reference

EVA-M8M NMEA receiver. Call begin(), register callbacks, then turnOn(). The UART must outlive the driver; turnOn()/turnOff() control listening only. More...

#include <EVAM8M.hpp>

Inheritance diagram for EVAM8M:
Gps

Public Member Functions

 EVAM8M (SerialPort &uart)
 Bind the receiver UART without starting reception.
void begin ()
 Configure 9600-baud NMEA reception; listening remains disabled.
void turnOn ()
 Start listening for NMEA sentences.
void turnOff ()
 Stop listening without switching off receiver power.
bool isOn ()
 Return whether the UART is currently listening.
void useGSA ()
 Enable parsing and caching of subsequent GNGSA sentences.
char getGsaOpMode ()
 Return cached GSA operating mode (A/M), or NUL before a valid GSA.
uint8_t getGsaNavMode ()
 Return cached GSA navigation mode (1=no fix, 2=2D, 3=3D), initially 0.
float getGsaPDoP ()
 Return cached dimensionless position dilution of precision, initially 99.99.
float getGsaHDoP ()
 Return cached dimensionless horizontal dilution of precision, initially 99.99.
float getGsaVDoP ()
 Return cached dimensionless vertical dilution of precision, initially 99.99.
void useRMC ()
 Enable parsing and caching of subsequent GNRMC speed and course fields.
float getRmcSpeedOverGround ()
 Return cached RMC speed over ground in knots; initially zero.
float getRmcCourseOverGround ()
 Return cached RMC course over ground in degrees; initially zero.
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)

Detailed Description

EVA-M8M NMEA receiver. Call begin(), register callbacks, then turnOn(). The UART must outlive the driver; turnOn()/turnOff() control listening only.

Author
Jongsoo Jeong (CoXlab)
Date
2016. 9. 7.

Member Function Documentation

◆ isOn()

bool EVAM8M::isOn ( )
virtual

Return whether the UART is currently listening.

Implements Gps.

◆ turnOff()

void EVAM8M::turnOff ( )
virtual

Stop listening without switching off receiver power.

Implements Gps.

◆ turnOn()

void EVAM8M::turnOn ( )
virtual

Start listening for NMEA sentences.

Implements Gps.


The documentation for this class was generated from the following file: