BACnet.Protocol.NpciTarget (bacstack v0.0.1)
View SourceNetwork Protocol Control Information targets are used to describe
source and destination targets (network and address information) inside
of Network Protocol Control Information (BACnet.Protocol.NPCI
).
BACnet describes the following address sizes for the different transport layers (data link layer):
Data Link Layer | DLEN | SLEN | Encoding Rules |
---|---|---|---|
ARCnet | 1 | 1 | MAC layer representation |
BACnet/IP | 6 | 6 | IP address and Port (ASHRAE 135 Annex J.1.2) |
Ethernet | 6 | 6 | MAC layer representation |
LonTalk (broadcast) | 2 | 2 | Special encoding (ASHRAE 135 6.2.2.2) |
LonTalk (multicast) | 2 | 2 | Special encoding (ASHRAE 135 6.2.2.2) |
LonTalk (unicast) | 2 | 2 | Special encoding (ASHRAE 135 6.2.2.2) |
LonTalk (Neuron ID) | 7 | 6 | Special encoding (ASHRAE 135 6.2.2.2) |
MS/TP | 1 | 1 | MAC layer representation |
ZigBee | 3 | 3 | VMAC address (ASHRAE 135 Annex H.7) |
Summary
Guards
Checks if the NPCI target is a global broadcast (net == 65535).
Checks if the NPCI target is a remote broadcast (address == nil).
Checks if the NPCI target is neither a global broadcast nor a remote broadcast.
Guards
Checks if the NPCI target is a global broadcast (net == 65535).
Checks if the NPCI target is a remote broadcast (address == nil).
Checks if the NPCI target is neither a global broadcast nor a remote broadcast.
Types
@type t() :: %BACnet.Protocol.NpciTarget{ address: non_neg_integer() | nil, net: 1..65535 }
Represents a NPCI target, such as used for source or destination.