PDComm.HsmsHeader
Struct
The 10-byte HSMS message header of a received message.
public readonly record struct HsmsHeaderParameters
| Name | Description |
|---|---|
SessionId | The session ID (device ID). |
Stream | The SECS-II stream number, without the W bit. |
Function | The SECS-II function number. |
ReplyExpected | Whether the W bit is set, meaning the sender expects a reply. |
PType | The presentation type; 0 for SECS-II. |
SType | The 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
| Name | Description |
|---|---|
SessionId | The session ID (device ID). |
Stream | The SECS-II stream number, without the W bit. |
Function | The SECS-II function number. |
ReplyExpected | Whether the W bit is set, meaning the sender expects a reply. |
PType | The presentation type; 0 for SECS-II. |
SType | The 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; }