static UInt32 GetLongInvokeIDPriority(GXDLMSSettings settings)
{
UInt32 value = 0;
if (settings.Priority == Priority.High)
{
value = 0x80000000;
}
if (settings.ServiceClass == ServiceClass.Confirmed)
{
value |= 0x40000000;
}
value |= (UInt32)(settings.longInvokeID & 0xFFFFFF);
++settings.longInvokeID;
return value;
}