@staticmethod
def _adp_bias_volts_to_raw_convert(value, inverse):
    """Convert ADP bias from user values to internal values (or reverse)."""
    ret = 0.0
    if inverse:
        ret = -(value * 5 * 18.18 / 4096) + 122
    else:
        ret = (-122 - value) * 4096 / (5 * 18.18)
    return ret
