/* Status command helper function. Display the update rate of the ADC registers. */
static int32_t cn0414_status_update_rate(struct cn0414_dev *dev)
/* Status command helper function. Display the update rate of the ADC registers. */
static int32_t cn0414_status_update_rate(struct cn0414_dev *dev)
{
	int32_t ret;
	uint8_t buff[20];
	ret = usr_uart_write_string(dev->uart_descriptor,
				    (uint8_t*)"Channel update rate: ");
	if(ret != CN0414_SUCCESS)
		return ret;
	sprintf((char *)buff, "%f", dev->adc_update_desc->f_update);
	ret = usr_uart_write_string(dev->uart_descriptor, buff);
	if(ret != CN0414_SUCCESS)
		return ret;
	return usr_uart_write_string(dev->uart_descriptor, (uint8_t*)"Hz\n");
}