Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg12

Inherits:
VDMMsg
  • Object
show all
Defined in:
lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb

Overview

Type 12: Addressed Safety-Related Message

Instance Attribute Summary collapse

Attributes inherited from VDMMsg

#fill_bits, #message_type, #payload_bitstring, #repeat_indicator, #source_mmsi

Method Summary

Methods inherited from VDMMsg

#_2b_data_string, #_6b_ascii, #_6b_boolean, #_6b_integer, #_6b_integer_scaled, #_6b_string, #_6b_string_nullterminated, #_6b_twoscomplement, #_6b_unsigned_integer, #_6b_unsigned_integer_scaled, #_8b_data_string, #_access, #_bit_slices, #get_ship_cargo_type_description, payload_reader

Instance Attribute Details

#destination_mmsiObject (readonly)

Returns The field defined by 30 bits starting at bit 40 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



11
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 11

payload_reader :destination_mmsi, 40, 30, :_u

#retransmit?Object (readonly)

Returns The field defined by 1 bits starting at bit 70 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_b().

Returns:



12
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 12

payload_reader :retransmit?, 70, 1, :_b

#sequence_numberObject (readonly)

Returns The field defined by 2 bits starting at bit 38 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



10
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 10

payload_reader :sequence_number, 38, 2, :_u

#textObject (readonly)

Safety message

Returns:



15
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 15

payload_reader :text, 72, 936, :_t