/* Status command helper function. Display the output coding of the ADC. */
static int32_t cn0414_status_output_coding(struct cn0414_dev *dev)
/* Status command helper function. Display the output coding of the ADC. */
static int32_t cn0414_status_output_coding(struct cn0414_dev *dev)
{
	int32_t ret;
	ad717x_st_reg *temp_ptr;
	temp_ptr = AD717X_GetReg(dev->ad4111_device, AD717X_SETUPCON0_REG);
	ret = usr_uart_write_string(dev->uart_descriptor,
				    (uint8_t*)"ADC output coding: ");
	if(ret != CN0414_SUCCESS)
		return ret;
	if((temp_ptr->value & AD717X_SETUP_CONF_REG_BI_UNIPOLAR) == 0)
		return usr_uart_write_string(dev->uart_descriptor,
					     (uint8_t*)"UNIPOLAR\n");
	else
		return usr_uart_write_string(dev->uart_descriptor,
					     (uint8_t*)"BIPOLAR\n");
}