Struct NmeaAisStaticAndVoyageRelatedDataParser
Enables fields to be extracted from an AIS Static and Voyage Related Data payload in an NMEA sentence.
Namespace: Ais.Net
Assembly: Ais.Net.dll
Syntax
public struct NmeaAisStaticAndVoyageRelatedDataParser
Constructors
| Improve this Doc View SourceNmeaAisStaticAndVoyageRelatedDataParser(ReadOnlySpan<Byte>, UInt32)
Create an NmeaAisStaticAndVoyageRelatedDataParser.
Declaration
public NmeaAisStaticAndVoyageRelatedDataParser(ReadOnlySpan<byte> ascii, uint padding)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<System.Byte> | ascii | The ASCII-encoded message payload. |
System.UInt32 | padding | The number of bits of padding in this payload. |
Properties
| Improve this Doc View SourceAisVersion
Gets the AIS Version field at bit offset 38.
Declaration
public uint AisVersion { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Remarks
According to the docs, 0 meants ITU1371 and 1-3 are reserved for future editions, but in practice we see all 4 possible values here.
CallSign
Gets the Call Sign field.
Declaration
public NmeaAisTextFieldParser CallSign { get; }
Property Value
Type | Description |
---|---|
NmeaAisTextFieldParser |
Destination
Gets the Destination field.
Declaration
public NmeaAisTextFieldParser Destination { get; }
Property Value
Type | Description |
---|---|
NmeaAisTextFieldParser |
DimensionToBow
Gets the distance in metres from the unit to the bow.
Declaration
public uint DimensionToBow { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
DimensionToPort
Gets the distance in metres from the unit to port.
Declaration
public uint DimensionToPort { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
DimensionToStarboard
Gets the distance in metres from the unit to starboard.
Declaration
public uint DimensionToStarboard { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
DimensionToStern
Gets the distance in metres from the unit to the stern.
Declaration
public uint DimensionToStern { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Draught10thMetres
Gets the vessel's draught in tenths of a metre.
Declaration
public uint Draught10thMetres { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
EtaDay
Gets the day of the estimated time to arrival, or 0 if not available.
Declaration
public uint EtaDay { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
EtaHour
Gets the hour of the estimated time to arrival, or 0 if not available.
Declaration
public uint EtaHour { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
EtaMinute
Gets the minute of the estimated time to arrival, or 0 if not available.
Declaration
public uint EtaMinute { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
EtaMonth
Gets the month of the estimated time to arrival, or 0 if not available.
Declaration
public uint EtaMonth { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
ImoNumber
Gets the IMO Ship ID number.
Declaration
public uint ImoNumber { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
IsDteNotReady
Gets a value indicating whether the data terminal is in a not ready state.
Declaration
public bool IsDteNotReady { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MessageType
Gets the message type.
Declaration
public uint MessageType { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Mmsi
Gets the unique identifier assigned to the transponder that sent this message.
Declaration
public uint Mmsi { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
PositionFixType
Gets the position fix type.
Declaration
public EpfdFixType PositionFixType { get; }
Property Value
Type | Description |
---|---|
EpfdFixType |
RepeatIndicator
Gets the number of times this message had been repeated on this broadcast.
Declaration
public uint RepeatIndicator { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Remarks
When stations retransmit messages with a view to enabling them to get around hills and other obstacles, this should be incremented. When it reaches 3, no more attempts should be made to retransmit it.
ShipType
Gets the ship and cargo type.
Declaration
public ShipType ShipType { get; }
Property Value
Type | Description |
---|---|
ShipType |
Spare423
Gets the value of the 'spare' bit at 423.
Declaration
public uint Spare423 { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
VesselName
Gets the Call Sign field.
Declaration
public NmeaAisTextFieldParser VesselName { get; }
Property Value
Type | Description |
---|---|
NmeaAisTextFieldParser |