Documentation ¶
Index ¶
Constants ¶
View Source
const BYTES_READY_REG uint8 = 0xFD
View Source
const DefaultAddr = 0x10
View Source
const READ_REG uint8 = 0xFF
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPS ¶
type GPS interface { NextSentence() (nmea.Sentence, error) NextFix() (nmea.GGA, error) Readline() (string, error) }
GPS is the end-user GPS structure to use.
type GPSCore ¶
type GPSCore struct {
// contains filtered or unexported fields
}
GPSCore is high level methods for GPS devices that uses a GPSDevice for low level access
func (*GPSCore) NextSentence ¶
type GPSDevice ¶
GPSDevice is an interface to a GPS device. This should be implemented for different types of devices and gives the ability to read/write NMEA strings with the device A specific implementation of a GPS device should implement GPSDevice and then composite GPSCore into its struct so that it provides a complete GPS intergace
type I2CGPS ¶
type I2CGPS struct { GPSCore Conn conn.Conn // contains filtered or unexported fields }
type SerialGPS ¶
type SerialGPS struct { GPSCore // contains filtered or unexported fields }
func NewSerialGPSReader ¶
Click to show internal directories.
Click to hide internal directories.