class

BACnet::NPDU

Inherits BinData < Reference < Object

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
Source

Instance 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.

Source
assign_mac(group, address : String)
Source
broadcast!(send_to : BroadcastType = BroadcastType::Global)
Source
destination
destination=(destination : BACnet::NPDU::Destination)
destination_address
Source
destination_address=(address : String | Bytes | Nil)
Source
destination_broadcast?
Source
destination_specifier

Contains a destination address

Source
destination_specifier=(destination_specifier : UInt8)

Contains a destination address

destination_specifier=(value : Bool)

Contains a destination address

Source
expecting_reply
Source
expecting_reply=(expecting_reply : UInt8)
expecting_reply=(value : Bool)
Source
expecting_reply?
Source
hop_count
hop_count=(hop_count : UInt8)
network_layer_message

true == network layer message, message type field is present

Source
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

Source
network_message_type
network_message_type=(network_message_type : UInt8)
priority
Source
priority=(priority : UInt8)
priority=(value : BACnet::Priority)
Source
read_mac(group)
Source
reserved_1
reserved_1=(reserved_1 : UInt8)
reserved_2
reserved_2=(reserved_2 : UInt8)
source
source=(source : BACnet::NPDU::Source)
source_address
Source
source_address=(address : String | Bytes | Nil)
Source
source_specifier

Contains a source address

Source
source_specifier=(source_specifier : UInt8)

Contains a source address

source_specifier=(value : Bool)

Contains a source address

Source
vendor_id
vendor_id=(vendor_id : UInt16)
version

NPCI

version=(version : UInt8)

NPCI

Nested types