protected void UpdateCbChannelId()
{
// TODO: check this logic
if (ChannelId <= Byte.MaxValue)
{
HeaderBits.CbChannelId = cbChId_Values.OneByte;
}
else if (ChannelId <= UInt16.MaxValue)
{
HeaderBits.CbChannelId = cbChId_Values.TwoBytes;
}
else if (ChannelId <= UInt32.MaxValue)
{
HeaderBits.CbChannelId = cbChId_Values.FourBytes;
}
}