Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg12
- Defined in:
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb
Overview
Type 12: Addressed Safety-Related Message
Instance Attribute Summary collapse
-
#destination_mmsi ⇒ Object
readonly
The field defined by 30 bits starting at bit 40 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#retransmit? ⇒ Object
readonly
The field defined by 1 bits starting at bit 70 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_b().
-
#sequence_number ⇒ Object
readonly
The field defined by 2 bits starting at bit 38 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#text ⇒ Object
readonly
Safety message.
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_mmsi ⇒ Object (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().
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().
12 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 12 payload_reader :retransmit?, 70, 1, :_b |
#sequence_number ⇒ Object (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().
10 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 10 payload_reader :sequence_number, 38, 2, :_u |
#text ⇒ Object (readonly)
Safety message
15 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 15 payload_reader :text, 72, 936, :_t |