Adafruit GPS Library
Classes | Macros | Enumerations
Adafruit_GPS.h File Reference
#include "Arduino.h"
#include <Adafruit_PMTK.h>
#include <NMEA_data.h>
#include <SPI.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  Adafruit_GPS
 The GPS class. More...
 

Macros

#define NMEA_EXTENSIONS
 if defined will include more NMEA sentences More...
 
#define GPS_DEFAULT_I2C_ADDR   0x10
 The default address for I2C transport of GPS data.
 
#define GPS_MAX_I2C_TRANSFER   32
 The max number of bytes we'll try to read at once.
 
#define GPS_MAX_SPI_TRANSFER   100
 The max number of bytes we'll try to read at once.
 
#define MAXLINELENGTH   120
 how long are max NMEA lines to parse?
 
#define NMEA_MAX_SENTENCE_ID   20
 maximum length of a sentence ID name, including terminating 0
 
#define NMEA_MAX_SOURCE_ID   3
 maximum length of a source ID name, including terminating 0
 

Enumerations

enum  nmea_check_t {
  NMEA_BAD = 0, NMEA_HAS_DOLLAR, NMEA_HAS_CHECKSUM = 2, NMEA_HAS_NAME = 4,
  NMEA_HAS_SOURCE = 10, NMEA_HAS_SENTENCE = 20, NMEA_HAS_SENTENCE_P = 40
}
 type for resulting code from running check() More...
 

Detailed Description

This is the Adafruit GPS library - the ultimate GPS library for the ultimate GPS module!

Tested and works great with the Adafruit Ultimate GPS module using MTK33x9 chipset ---—> http://www.adafruit.com/products/746 Pick one up today at the Adafruit electronics shop and help support open source hardware & software! -ada

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries. BSD license, check license.txt for more information All text above must be included in any redistribution

Macro Definition Documentation

◆ NMEA_EXTENSIONS

#define NMEA_EXTENSIONS

if defined will include more NMEA sentences

Comment out the definition of NMEA_EXTENSIONS to make the library use as little memory as possible for GPS functionality only. The ARDUINO_ARCH_AVR test should leave it out of any compilations for the UNO and similar.library

Enumeration Type Documentation

◆ nmea_check_t

type for resulting code from running check()

Enumerator
NMEA_BAD 

passed none of the checks

NMEA_HAS_DOLLAR 

has a dollar sign or exclamation mark in the first position

NMEA_HAS_CHECKSUM 

has a valid checksum at the end

NMEA_HAS_NAME 

there is a token after the $ followed by a comma

NMEA_HAS_SOURCE 

has a recognized source ID

NMEA_HAS_SENTENCE 

has a recognized sentence ID

NMEA_HAS_SENTENCE_P 

has a recognized parseable sentence ID