BACnet::NPDU
Constants
AFTER_DESERIALIZE = [] of Nil
BEFORE_SERIALIZE = [] of Nil
ENDIAN = ["big"]
KLASS_NAME = [BACnet::NPDU]
PARTS = [{type: "basic", name: version, cls: UInt8, onlyif: nil, verify: nil, value: -> do
1_u8
end,
endian: nil}, {type: "bitfield", name: 1, cls: BACnet::NPDU,
onlyif: nil, verify: nil, endian: IO::ByteFormat::BigEndian}, {type: "group", name: destination, cls: Destination, onlyif: -> do
destination_specifier
end,
verify: nil, value: nil}, {type: "group", name: source, cls: Source, onlyif: -> do
source_specifier
end,
verify: nil, value: nil}, {type: "basic", name: hop_count, cls: UInt8, onlyif: -> do
destination_specifier
end,
verify: nil, value: nil, endian: nil}, {type: "basic", name: network_message_type, cls: UInt8, onlyif: -> do
network_layer_message
end,
verify: nil, value: nil, endian: nil}, {type: "basic", name: vendor_id, cls: UInt16, onlyif: -> do
network_layer_message && (network_message_type >= 128_u8)
end,
verify: nil, value: nil, endian: nil}] of Nil
REMAINING = [] of Nil
Class methods
bit_fields
SourceInstance methods
__format__
A group or bit_field captures the endianness at its declaration point, so
declaring endian after one would silently leave it system-endian. Fail loudly.
broadcast!(send_to : BroadcastType = BroadcastType::Global)
Sourcedestination
destination=(destination : BACnet::NPDU::Destination)
destination_address
Sourcedestination_broadcast?
Sourcedestination_specifier=(destination_specifier : UInt8)
Contains a destination address
expecting_reply
Sourceexpecting_reply=(expecting_reply : UInt8)
expecting_reply?
Sourcehop_count
hop_count=(hop_count : UInt8)
network_layer_message=(network_layer_message : UInt8)
true == network layer message, message type field is present
network_layer_message=(value : Bool)
true == network layer message, message type field is present
network_message_type
network_message_type=(network_message_type : UInt8)
priority
Sourcepriority=(priority : UInt8)
priority=(value : BACnet::Priority)
Sourceread_mac(group)
Sourcereserved_1
reserved_1=(reserved_1 : UInt8)
reserved_2
reserved_2=(reserved_2 : UInt8)
source
source=(source : BACnet::NPDU::Source)
source_address
Sourcesource_specifier=(source_specifier : UInt8)
Contains a source address
vendor_id
vendor_id=(vendor_id : UInt16)
version
NPCI
version=(version : UInt8)
NPCI