include/adc.h
/**
 * @brief Set a read request.
 *
 * This routine sends a read or sampling request to the ADC hardware block.
 * A sequence table describes the read request.
 * The routine returns once the ADC completes the read sequence.
 * The sample data can be retrieved from the memory buffers in
 * the sequence table structure.
 *
 * @param dev Pointer to the device structure for the driver instance.
 * @param seq_table Pointer to the structure representing the sequence table.
 *
 * @retval 0 On success
 * @retval else Otherwise.
 */
@brief Set a read request.
This routine sends a read or sampling request to the ADC hardware block.
A sequence table describes the read request.
The routine returns once the ADC completes the read sequence.
The sample data can be retrieved from the memory buffers in
the sequence table structure.

@param dev Pointer to the device structure for the driver instance.
@param seq_table Pointer to the structure representing the sequence table.

@retval 0 On success
@retval else Otherwise.
@brief Set a read request . This routine sends a read or sampling request to the ADC hardware block . A sequence table describes the read request . The routine returns once the ADC completes the read sequence . The sample data can be retrieved from the memory buffers in the sequence table structure . @param dev Pointer to the device structure for the driver instance . @param seq_table Pointer to the structure representing the sequence table . @retval 0 On success @retval else Otherwise .
static inline int adc_read(struct device *dev, struct adc_seq_table *seq_table)
{
	const struct adc_driver_api *api = dev->driver_api;
	return api->read(dev, seq_table);
}
static inline int adc_read ( struct device * dev , struct adc_seq_table * seq_table ) { const struct adc_driver_api * api = dev -> driver_api ; return api -> read ( dev , seq_table ) ; }
@brief Set a read request.
@brief Set a read request .