def encode_2_uint12(val, val2):
    """
    Format two values as two unsigned 12 bit integers

    Specs:
        **2_uint12 len**: 3 bytes

        **Format string**: 'o'
    """
    full3bytes = (val << 12) + val2
    return full3bytes.to_bytes(3, 'little', signed=False)