/* Process function helper. Displays floating channels based on the channel status register in the device structure. */
static int32_t cn0414_process_disp_floating_channels(struct cn0414_dev *dev)
/* Process function helper. Displays floating channels based on the channel status register in the device structure. */
static int32_t cn0414_process_disp_floating_channels(struct cn0414_dev *dev)
{
	int32_t ret = 0;
	uint8_t i;
	for(i = 0; i < ADC_VOLTAGE_CHAN_NO; i++) {
		if(dev->chan_voltage_status[i] == 1) {
			ret = usr_uart_write_string(dev->uart_descriptor,
						    (uint8_t*)"\nChannel ");
			if(ret != CN0414_SUCCESS)
				return ret;
			ret = usr_uart_write_string(dev->uart_descriptor,
						    adc_chan_names[i]);
			if(ret != CN0414_SUCCESS)
				return ret;
			ret = usr_uart_write_string(dev->uart_descriptor,
						    (uint8_t*)" FLOATING\n");
			if(ret != CN0414_SUCCESS)
				return ret;
			dev->chan_voltage_status[i] = 2;
		}
	}
	return ret;
}