HdlcAddressCreate(HdlcAddressingScheme, UInt16, UInt16) Method
Transforms HDLC address parts into raw bytes that could be sent to a meter
Namespace: OddPrg.Protocols.HdlcAssembly: OddPrg.Frames.Hdlc (in OddPrg.Frames.Hdlc.dll) Version: 1.0.0.2 (1.0.0.2)
public static ByteBuffer Create(
HdlcAddressingScheme scheme,
ushort upperAddress,
ushort lowerAddress
)
- scheme HdlcAddressingScheme
- Used addressing scheme.
- upperAddress UInt16
-
Upper HDLC address. Its length in bytes depends on scheme:
OneByte...1B - the only byte of HDLC address
TwoByte...1B - first byte of HDLC address
FourByte..2B - first two bytes of HDLC address
- lowerAddress UInt16
-
ByteBuffer