SystemClockSynchronizer Class

Definition

Synchronizes the system clock to the NMEA data stream

public class SystemClockSynchronizer : Iot.Device.Nmea0183.NmeaSinkAndSource
type SystemClockSynchronizer = class
    inherit NmeaSinkAndSource
Public Class SystemClockSynchronizer
Inherits NmeaSinkAndSource
Inheritance
SystemClockSynchronizer

Constructors

SystemClockSynchronizer()

Creates an instance of this class

Properties

InterfaceName

Name of the interface

(Inherited from NmeaSinkAndSource)
RequiredAccuracy

The time delta that triggers a resync. Setting this to a low value may cause permantent clock updates if messages are delayed.

Methods

DispatchSentenceEvents(NmeaSentence)

Forwards the given sentence to listeners, as needed. Use the current instance as source.

(Inherited from NmeaSinkAndSource)
DispatchSentenceEvents(NmeaSinkAndSource, NmeaSentence)

Forwards the given sentence to listeners, as needed.

(Inherited from NmeaSinkAndSource)
Dispose()

Standard dispose method

(Inherited from NmeaSinkAndSource)
Dispose(Boolean)

Dispose this instance

(Inherited from NmeaSinkAndSource)
FireOnParserError(String, NmeaError)

Fire an event informing about parser errors

(Inherited from NmeaSinkAndSource)
SendSentence(NmeaSentence)

Send the given sentence to the interface.

(Inherited from NmeaSinkAndSource)
SendSentence(NmeaSinkAndSource, NmeaSentence)

Send the message to the device. From the implementation side, this is where the input data comes in (e.g. from the message dispatcher)

SendSentences(IEnumerable<NmeaSentence>)

Sends a list of messages at once

(Inherited from NmeaSinkAndSource)
StartDecode()

Start receiving messages from this interface. An implementation should open streams, connect to sockets or create receiver threads, as appropriate.

StopDecode()

Stops sending or receiving messages from and to this interface. Any pending messages are discarded.

Events

OnNewPosition

This is fired when a new position is available

(Inherited from NmeaSinkAndSource)
OnNewSequence

This is fired on every new sentence

(Inherited from NmeaSinkAndSource)
OnNewTime

This is fired when the time is updated

(Inherited from NmeaSinkAndSource)
OnParserError

This is fired when a message couldn't be parsed

(Inherited from NmeaSinkAndSource)

Applies to