HdlcAddressCreate(HdlcAddressingScheme, UInt16, UInt16) Method

Transforms HDLC address parts into raw bytes that could be sent to a meter

Definition

Namespace: OddPrg.Protocols.Hdlc
Assembly: OddPrg.Frames.Hdlc (in OddPrg.Frames.Hdlc.dll) Version: 1.0.0.2 (1.0.0.2)
C#
public static ByteBuffer Create(
	HdlcAddressingScheme scheme,
	ushort upperAddress,
	ushort lowerAddress
)

Parameters

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
 

Return Value

ByteBuffer

See Also