96 sBit = (((1u << numberOfBits) - 1u) & (((uint8_t)value) >> (position - 1u)));
97 return (((uint8_t)sBit) << shift);
102 return bitValue(reg, numberOfBits, (position + 1u), 0);
107 uint8_t numberOfBits,
110 uint8_t outputRegister = reg;
111 outputRegister = outputRegister & ~(
MXM_REG_MASK(shift, numberOfBits));
112 outputRegister =
bitValue(value, numberOfBits, 1, shift) | outputRegister;
113 return outputRegister;