BACnet.Protocol.NpciTarget (bacstack v0.0.1)

View Source

Network 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 LayerDLENSLENEncoding Rules
ARCnet11MAC layer representation
BACnet/IP66IP address and Port (ASHRAE 135 Annex J.1.2)
Ethernet66MAC layer representation
LonTalk (broadcast)22Special encoding (ASHRAE 135 6.2.2.2)
LonTalk (multicast)22Special encoding (ASHRAE 135 6.2.2.2)
LonTalk (unicast)22Special encoding (ASHRAE 135 6.2.2.2)
LonTalk (Neuron ID)76Special encoding (ASHRAE 135 6.2.2.2)
MS/TP11MAC layer representation
ZigBee33VMAC 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.

Types

t()

Represents a NPCI target, such as used for source or destination.

Guards

is_global_broadcast(target)

(macro)

Checks if the NPCI target is a global broadcast (net == 65535).

is_remote_broadcast(target)

(macro)

Checks if the NPCI target is a remote broadcast (address == nil).

is_remote_station(target)

(macro)

Checks if the NPCI target is neither a global broadcast nor a remote broadcast.

Types

t()

@type t() :: %BACnet.Protocol.NpciTarget{
  address: non_neg_integer() | nil,
  net: 1..65535
}

Represents a NPCI target, such as used for source or destination.