def nbit_le_list_to_byte_list(data, bitwidth):
    """! @brief Convert a list of n-bit values into a byte list.
    
    @param data List of n-bit values.
    @param bitwidth Width in bits of the input vales.
    @result List of integer bytes.
    """
    return [(x >> shift) & 0xff for x in data for shift in range(0, bitwidth, 8)]