Versions in this module Expand all Collapse all v0 v0.4.0 Jul 22, 2024 v0.3.0 May 24, 2024 v0.2.0 May 14, 2024 Changes in this version type Codec + FastParse bool + func CodecNewFast(acceptShortAck bool, acceptShortShipStaticData bool, parseFast bool) *Codec v0.1.0 Jun 12, 2021 Changes in this version + type AddessedSafetyMessage struct + DestinationID uint32 + Retransmission bool + SequenceNumber uint8 + Spare bool + Text string + Valid bool + type AddressedBinaryMessage struct + ApplicationID FieldApplicationIdentifier + BinaryData []byte + DestinationID uint32 + Retransmission bool + SequenceNumber uint8 + Spare bool + Valid bool + type AidsToNavigationReport struct + AssignedMode bool + AtoN uint8 + Dimension FieldDimension + Fixtype uint8 + Latitude FieldLatLonFine + Longitude FieldLatLonFine + Name string + NameExtension string + OffPosition bool + PositionAccuracy bool + Raim bool + Spare bool + Timestamp uint8 + Type uint8 + Valid bool + VirtualAtoN bool + type AssignedModeCommand struct + Commands [2]AssignedModeCommandData + Spare uint8 + Valid bool + type AssignedModeCommandData struct + DestinationID uint32 + Increment uint16 + Offset uint16 + Valid bool + type BaseStationReport struct + FixType uint8 + Latitude FieldLatLonFine + LongRangeEnable bool + Longitude FieldLatLonFine + PositionAccuracy bool + Raim bool + Spare uint16 + UtcDay uint8 + UtcHour uint8 + UtcMinute uint8 + UtcMonth uint8 + UtcSecond uint8 + UtcYear uint16 + Valid bool + type BinaryAcknowledge struct + Destinations [4]BinaryAcknowledgeData + Spare uint8 + Valid bool + type BinaryAcknowledgeData struct + DestinationID uint32 + SequenceNumber uint8 + Valid bool + type BinaryBroadcastMessage struct + ApplicationID FieldApplicationIdentifier + BinaryData []byte + Spare uint8 + Valid bool + type ChannelManagement struct + Area ChannelManagementBroadcastData + BwA bool + BwB bool + ChannelA uint16 + ChannelB uint16 + IsAddressed bool + LowPower bool + Spare1 uint8 + Spare4 uint32 + TransitionalZoneSize uint8 + TxRxMode uint8 + Unicast ChannelManagementUnicastData + Valid bool + type ChannelManagementBroadcastData struct + Latitude1 FieldLatLonCoarse + Latitude2 FieldLatLonCoarse + Longitude1 FieldLatLonCoarse + Longitude2 FieldLatLonCoarse + type ChannelManagementUnicastData struct + AddressStation1 uint32 + AddressStation2 uint32 + Spare2 uint8 + Spare3 uint8 + type Codec struct + DecoderCheckFixedValues bool + DropSpace bool + FloatWithoutConversion bool + StrictByteAlignment bool + func CodecNew(acceptShortAck bool, acceptShortShipStaticData bool) *Codec + func (t *Codec) ChannelToFrequency(channel uint16) uint + func (t *Codec) DecodePacket(payload []byte) Packet + func (t *Codec) EncodePacket(message Packet) []byte + type CommunicationStateItdma struct + CommunicationState uint32 + CommunicationStateIsItdma bool + func (c CommunicationStateItdma) GetState() uint32 + func (c CommunicationStateItdma) IsItdma() int + type CommunicationStateNoItdma struct + CommunicationState uint32 + func (c CommunicationStateNoItdma) GetState() uint32 + func (c CommunicationStateNoItdma) IsItdma() int + type CoordinatedUTCInquiry struct + DestinationID uint32 + Spare1 uint8 + Spare2 uint8 + Valid bool + type DataLinkManagementMessage struct + Data [4]DataLinkManagementMessageData + Spare uint8 + Valid bool + type DataLinkManagementMessageData struct + Increment uint16 + NumberOfSlots uint8 + Offset uint16 + TimeOut uint8 + Valid bool + type ExtendedClassBPositionReport struct + AssignedMode bool + Cog Field10 + Dimension FieldDimension + Dte bool + FixType uint8 + Latitude FieldLatLonFine + Longitude FieldLatLonFine + Name string + PositionAccuracy bool + Raim bool + Sog Field10 + Spare1 uint8 + Spare2 uint8 + Spare3 uint8 + Timestamp uint8 + TrueHeading uint16 + Type uint8 + Valid bool + type Field10 float64 + type FieldApplicationIdentifier struct + DesignatedAreaCode uint16 + FunctionIdentifier uint8 + Valid bool + type FieldDimension struct + A uint16 + B uint16 + C uint8 + D uint8 + type FieldETA struct + Day uint8 + Hour uint8 + Minute uint8 + Month uint8 + type FieldLatLonCoarse float64 + type FieldLatLonFine float64 + type GnssBroadcastBinaryMessage struct + Data []byte + Latitude FieldLatLonCoarse + Longitude FieldLatLonCoarse + Spare1 uint8 + Spare2 uint8 + Valid bool + type GroupAssignmentCommand struct + Latitude1 FieldLatLonCoarse + Latitude2 FieldLatLonCoarse + Longitude1 FieldLatLonCoarse + Longitude2 FieldLatLonCoarse + QuietTime uint8 + ReportingInterval uint8 + ShipType uint8 + Spare1 uint8 + Spare2 uint32 + Spare3 uint8 + StationType uint8 + TxRxMode uint8 + Valid bool + type HasCommunicationState interface + GetState func() uint32 + IsItdma func() int + type Header struct + MessageID uint8 + RepeatIndicator uint8 + UserID uint32 + func (h Header) GetHeader() *Header + type Interrogation struct + Spare uint8 + Station1Msg1 InterrogationStation1Message1 + Station1Msg2 InterrogationStation1Message2 + Station2 InterrogationStation2 + Valid bool + type InterrogationStation1Message1 struct + MessageID uint8 + SlotOffset uint16 + StationID uint32 + Valid bool + type InterrogationStation1Message2 struct + MessageID uint8 + SlotOffset uint16 + Spare uint8 + Valid bool + type InterrogationStation2 struct + MessageID uint8 + SlotOffset uint16 + Spare1 uint8 + Spare2 uint8 + StationID uint32 + Valid bool + type LongRangeAisBroadcastMessage struct + Cog uint16 + Latitude FieldLatLonCoarse + Longitude FieldLatLonCoarse + NavigationalStatus uint8 + PositionAccuracy bool + PositionLatency bool + Raim bool + Sog uint8 + Spare bool + Valid bool + type MultiSlotBinaryMessage struct + ApplicationID FieldApplicationIdentifier + ApplicationIDValid bool + DestinationID uint32 + DestinationIDValid bool + Payload []byte + Spare1 uint8 + Spare2 uint8 + Valid bool + type Packet interface + GetHeader func() *Header + type PositionReport struct + Cog Field10 + Latitude FieldLatLonFine + Longitude FieldLatLonFine + NavigationalStatus uint8 + PositionAccuracy bool + Raim bool + RateOfTurn int16 + Sog Field10 + Spare uint8 + SpecialManoeuvreIndicator uint8 + Timestamp uint8 + TrueHeading uint16 + Valid bool + type SafetyBroadcastMessage struct + Spare uint8 + Text string + Valid bool + type ShipStaticData struct + AisVersion uint8 + CallSign string + Destination string + Dimension FieldDimension + Dte bool + Eta FieldETA + FixType uint8 + ImoNumber uint32 + MaximumStaticDraught Field10 + Name string + Spare bool + Type uint8 + Valid bool + type SingleSlotBinaryMessage struct + ApplicationID FieldApplicationIdentifier + ApplicationIDValid bool + DestinationID uint32 + DestinationIDValid bool + Payload []byte + Spare uint8 + Valid bool + type StandardClassBPositionReport struct + AssignedMode bool + ClassBBand bool + ClassBDisplay bool + ClassBDsc bool + ClassBMsg22 bool + ClassBUnit bool + Cog Field10 + Latitude FieldLatLonFine + Longitude FieldLatLonFine + PositionAccuracy bool + Raim bool + Sog Field10 + Spare1 uint8 + Spare2 uint8 + Timestamp uint8 + TrueHeading uint16 + Valid bool + type StandardSearchAndRescueAircraftReport struct + AltFromBaro bool + Altitude uint16 + AssignedMode bool + Cog Field10 + Dte bool + Latitude FieldLatLonFine + Longitude FieldLatLonFine + PositionAccuracy bool + Raim bool + Sog uint16 + Spare1 uint8 + Spare2 uint8 + Timestamp uint8 + Valid bool + type StaticDataReport struct + PartNumber bool + ReportA StaticDataReportA + ReportB StaticDataReportB + Reserved uint8 + Valid bool + type StaticDataReportA struct + Name string + Valid bool + type StaticDataReportB struct + CallSign string + Dimension FieldDimension + FixType uint8 + ShipType uint8 + Spare uint8 + Valid bool + VenderIDModel uint8 + VenderIDSerial uint32 + VendorIDName string