def METHOD_NAME(self):
    startbit, endbit = self.descr.bits
    value_mask = 2 ** (endbit - startbit) - 1
    value_corrected = self.value & value_mask
    value_shifted = value_corrected << startbit
    value_mask_shifted = value_mask << startbit
    return EncodedOBValue(value_shifted, value_mask_shifted, self)