class BACnet::NPDU
- BACnet::NPDU
- BinData
- Reference
- Object
Defined in:
bacnet/npdu.crConstant Summary
-
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}, {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 Method Summary
Macro Summary
- ba_cnet_apdu_indicator(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_npdu(name, onlyif = nil, verify = nil, value = nil)
Instance Method Summary
- #__format__ : IO::ByteFormat
- #assign_mac(group, address : String)
- #broadcast!(send_to : BroadcastType = BroadcastType::Global)
- #destination : BACnet::NPDU::Destination
- #destination=(destination : BACnet::NPDU::Destination)
- #destination_address
- #destination_address=(address : String | Bytes | Nil)
- #destination_broadcast?
-
#destination_specifier : Bool
Contains a destination address
-
#destination_specifier=(destination_specifier : UInt8)
Contains a destination address
-
#destination_specifier=(value : Bool)
Contains a destination address
- #expecting_reply : Bool
- #expecting_reply=(expecting_reply : UInt8)
- #expecting_reply=(value : Bool)
- #expecting_reply?
- #hop_count : UInt8
- #hop_count=(hop_count : UInt8)
-
#network_layer_message : Bool
true == network layer message, message type field is present
-
#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 : UInt8
- #network_message_type=(network_message_type : UInt8)
- #priority : BACnet::Priority
- #priority=(priority : UInt8)
- #priority=(value : BACnet::Priority)
- #read_mac(group)
- #reserved_1 : UInt8
- #reserved_1=(reserved_1 : UInt8)
- #reserved_2 : UInt8
- #reserved_2=(reserved_2 : UInt8)
- #source : BACnet::NPDU::Source
- #source=(source : BACnet::NPDU::Source)
- #source_address
- #source_address=(address : String | Bytes | Nil)
-
#source_specifier : Bool
Contains a source address
-
#source_specifier=(source_specifier : UInt8)
Contains a source address
-
#source_specifier=(value : Bool)
Contains a source address
- #vendor_id : UInt16
- #vendor_id=(vendor_id : UInt16)
-
#version : UInt8
NPCI
-
#version=(version : UInt8)
NPCI
Class Method Detail
Macro Detail
Instance Method Detail
def network_layer_message=(network_layer_message : UInt8)
#
true == network layer message, message type field is present
def network_layer_message=(value : Bool)
#
true == network layer message, message type field is present