def decode_uint40(bb):
    """
    Decode 5 bytes as an unsigned 40 bit integer

    Specs:
        * **uint40 len**: 5 bytes

        * **Format string**: 'j'
    """
    return int.from_bytes(bb, byteorder='little')