HdlcAddressParse Method
Parses raw bytes received from a meter to HDLC address parts
Namespace: OddPrg.Protocols.HdlcAssembly: OddPrg.Frames.Hdlc (in OddPrg.Frames.Hdlc.dll) Version: 1.0.0.2 (1.0.0.2)
public static void Parse(
ByteBuffer rawData,
out HdlcAddressingScheme scheme,
out ushort upperAddress,
out ushort lowerAddress
)
Parameters
- rawData ByteBuffer
- 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
-