Skip to main content

Class NeoM8

Represents a NEO-M8 GNSS module

Assembly: NeoM8.dll
View Source
Declaration
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
Declaration
public IGnssResult[] SupportedResultTypes { get; }

PulsePerSecondPort

NeoM8 pulse per second port

View Source
Declaration
public IDigitalInputPort? PulsePerSecondPort { get; }

ResetPort

NeoM8 reset port Initialize high to enable the device

View Source
Declaration
protected IDigitalOutputPort? ResetPort { get; }

IsDisposed

Is the object disposed

View Source
Declaration
public bool IsDisposed { get; }

DefaultI2cAddress

The default I2C address for the peripheral

View Source
Declaration
public byte DefaultI2cAddress { get; }

DefaultSpiBusSpeed

The default SPI bus speed for the device

View Source
Declaration
public Frequency DefaultSpiBusSpeed { get; }

SpiBusSpeed

The SPI bus speed for the device

View Source
Declaration
public Frequency SpiBusSpeed { get; set; }

DefaultSpiBusMode

The default SPI bus mode for the device

View Source
Declaration
public SpiClockConfiguration.Mode DefaultSpiBusMode { get; }

SpiBusMode

The SPI bus mode for the device

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

Fields

i2cComms

I2C Communication bus used to communicate with the peripheral

View Source
Declaration
protected II2cCommunications? i2cComms

spiComms

SPI Communication bus used to communicate with the peripheral

View Source
Declaration
protected ISpiCommunications? spiComms

Methods

Reset()

Reset the device

View Source
Declaration
public Task Reset()
Returns

System.Threading.Tasks.Task

StartUpdating()

Start updating

View Source
Declaration
public void StartUpdating()

StopUpdating()

Stop updating

View Source
Declaration
public void StopUpdating()

Dispose()

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

View Source
Declaration
public void Dispose()

Dispose(bool)

Dispose of the object

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

Events

GnssDataReceived

Raised when GNSS data is received

View Source
Declaration
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
Declaration
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
Declaration
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
Declaration
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
Declaration
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
Declaration
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
Declaration
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