Skip to main content

Class NeoM8

Represents a NEO-M8 GNSS module

Assembly: NeoM8.dll
View Source
public class NeoM8 : IGnssSensor, IDisposable, II2cPeripheral, ISpiPeripheral

Implements:
Meadow.Peripherals.Sensors.Location.Gnss.IGnssSensor, System.IDisposable, Meadow.Hardware.II2cPeripheral, Meadow.Hardware.ISpiPeripheral

Properties

SupportedResultTypes

Supported GNSS result types

View Source
public IGnssResult[] SupportedResultTypes { get; }

PulsePerSecondPort

NeoM8 pulse per second port

View Source
public IDigitalInputPort? PulsePerSecondPort { get; }

ResetPort

NeoM8 reset port Initialize high to enable the device

View Source
protected IDigitalOutputPort? ResetPort { get; }

IsDisposed

Is the object disposed

View Source
public bool IsDisposed { get; }

DefaultI2cAddress

The default I2C address for the peripheral

View Source
public byte DefaultI2cAddress { get; }

DefaultSpiBusSpeed

The default SPI bus speed for the device

View Source
public Frequency DefaultSpiBusSpeed { get; }

SpiBusSpeed

The SPI bus speed for the device

View Source
public Frequency SpiBusSpeed { get; set; }

DefaultSpiBusMode

The default SPI bus mode for the device

View Source
public SpiClockConfiguration.Mode DefaultSpiBusMode { get; }

SpiBusMode

The SPI bus mode for the device

View Source
public SpiClockConfiguration.Mode SpiBusMode { get; set; }

Fields

i2cComms

I2C Communication bus used to communicate with the peripheral

View Source
protected II2cCommunications? i2cComms

spiComms

SPI Communication bus used to communicate with the peripheral

View Source
protected ISpiCommunications? spiComms

Methods

Reset()

Reset the device

View Source
public Task Reset()
Returns

System.Threading.Tasks.Task

StartUpdating()

Start updating

View Source
public void StartUpdating()

StopUpdating()

Stop updating

View Source
public void StopUpdating()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source
public void Dispose()

Dispose(bool)

Dispose of the object

View Source
protected virtual void Dispose(bool disposing)
Parameters
TypeNameDescription
System.BooleandisposingIs disposing

Events

GnssDataReceived

Raised when GNSS data is received

View Source
public event EventHandler<IGnssResult> GnssDataReceived
Event Type

System.EventHandler<Meadow.Peripherals.Sensors.Location.Gnss.IGnssResult>

GgaReceived

Raised when GGA position data is received

View Source
public event EventHandler<GnssPositionInfo> GgaReceived
Event Type

System.EventHandler<Meadow.Peripherals.Sensors.Location.Gnss.GnssPositionInfo>

GllReceived

Raised when GLL position data is received

View Source
public event EventHandler<GnssPositionInfo> GllReceived
Event Type

System.EventHandler<Meadow.Peripherals.Sensors.Location.Gnss.GnssPositionInfo>

GsaReceived

Raised when GSA satellite data is received

View Source
public event EventHandler<ActiveSatellites> GsaReceived
Event Type

System.EventHandler<Meadow.Peripherals.Sensors.Location.Gnss.ActiveSatellites>

RmcReceived

Raised when RMC position data is received

View Source
public event EventHandler<GnssPositionInfo> RmcReceived
Event Type

System.EventHandler<Meadow.Peripherals.Sensors.Location.Gnss.GnssPositionInfo>

VtgReceived

Raised when VTG course over ground data is received

View Source
public event EventHandler<CourseOverGround> VtgReceived
Event Type

System.EventHandler<Meadow.Peripherals.Sensors.Location.Gnss.CourseOverGround>

GsvReceived

Raised when GSV satellite data is received

View Source
public event EventHandler<SatellitesInView> GsvReceived
Event Type

System.EventHandler<Meadow.Peripherals.Sensors.Location.Gnss.SatellitesInView>

Implements

  • Meadow.Peripherals.Sensors.Location.Gnss.IGnssSensor
  • System.IDisposable
  • Meadow.Hardware.II2cPeripheral
  • Meadow.Hardware.ISpiPeripheral