private uint GetSectionValue(uint value, int section) { int zeroBasedSection = (section % 16) - 1; var sectionValue = value >> (zeroBasedSection * 2) & 0x03; return sectionValue; }