def msbit2lsbit(b, length):
    """
    Convert from lsbit of signal data to msbit of signal data, when bit numbering is msb0
    Reference: https://github.com/ebroecker/canmatrix/wiki/signal-Byteorder
    :param b: msbit in msb0 numbering
    :param length: signal length in bits
    :return: lsbit in msb0 numbering
    """
    return b + length - 1