def swapbytes(bytes_in):
    """Swaps a list of bytes to conform with TI's documentation

    Example:
        input = [0x0f, 0x00]
        output = swapbytes(input)
        print output
        >>> [0x00, 0x0f]

    Args:
        bytes_in (2 element list): a list of bytes to swap
    Returns:
        list: The swapped bytes
    """
    bytes_in[0], bytes_in[1] = bytes_in[1], bytes_in[0]
    return bytes_in