Skip to content
Start free evaluation

PDComm.HsmsHeader

Struct

The 10-byte HSMS message header of a received message.

public readonly record struct HsmsHeader

Parameters

NameDescription
SessionIdThe session ID (device ID).
StreamThe SECS-II stream number, without the W bit.
FunctionThe SECS-II function number.
ReplyExpectedWhether the W bit is set, meaning the sender expects a reply.
PTypeThe presentation type; 0 for SECS-II.
STypeThe session type; 0 for a data message.

Members

HsmsHeader

Constructor

The 10-byte HSMS message header of a received message.

public HsmsHeader(ushort SessionId, byte Stream, byte Function, bool ReplyExpected, byte PType, byte SType)

Parameters

NameDescription
SessionIdThe session ID (device ID).
StreamThe SECS-II stream number, without the W bit.
FunctionThe SECS-II function number.
ReplyExpectedWhether the W bit is set, meaning the sender expects a reply.
PTypeThe presentation type; 0 for SECS-II.
STypeThe session type; 0 for a data message.

Function

Property

The SECS-II function number.

public byte Function { get; init; }

PType

Property

The presentation type; 0 for SECS-II.

public byte PType { get; init; }

ReplyExpected

Property

Whether the W bit is set, meaning the sender expects a reply.

public bool ReplyExpected { get; init; }

SType

Property

The session type; 0 for a data message.

public byte SType { get; init; }

SessionId

Property

The session ID (device ID).

public ushort SessionId { get; init; }

Stream

Property

The SECS-II stream number, without the W bit.

public byte Stream { get; init; }