ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
nmea.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::gps::GPSData
 Values from GGA and RMC sentences as scaled integers; a name ending in eN is the value times 10^N. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::gps
 

Enumerations

enum  esphome::gps::GPSField : uint16_t {
  esphome::gps::GPS_FIELD_LOCATION = 1 << 0 , esphome::gps::GPS_FIELD_SPEED = 1 << 1 , esphome::gps::GPS_FIELD_COURSE = 1 << 2 , esphome::gps::GPS_FIELD_ALTITUDE = 1 << 3 ,
  esphome::gps::GPS_FIELD_SATELLITES = 1 << 4 , esphome::gps::GPS_FIELD_HDOP = 1 << 5 , esphome::gps::GPS_FIELD_TIME = 1 << 6 , esphome::gps::GPS_FIELD_DATE = 1 << 7 ,
  esphome::gps::GPS_FIELD_GEOID_SEPARATION = 1 << 8
}
 Bits of GPSData::updated and GPSData::valid. More...
 

Functions

bool esphome::gps::parse_nmea_sentence (char *line, size_t len, GPSData &data)
 Parse one NMEA line of len bytes, which is changed in place; the sentence starts at the last '$'.