include/counter.h
/**
 * @brief Stop counter device.
 * @param dev Pointer to the device structure for the driver instance.
 *
 * @retval 0 If successful.
 * @retval -ENODEV if the device doesn't support stopping the
 *                        counter.
 */
@brief Stop counter device.
@param dev Pointer to the device structure for the driver instance.

@retval 0 If successful.
@retval -ENODEV if the device doesn't support stopping the
counter.
@brief Stop counter device . @param dev Pointer to the device structure for the driver instance . @retval 0 If successful . @retval - ENODEV if the device doesn ' t support stopping the counter .
static inline int counter_stop(struct device *dev)
{
	const struct counter_driver_api *api = dev->driver_api;
	return api->stop(dev);
}
static inline int counter_stop ( struct device * dev ) { const struct counter_driver_api * api = dev -> driver_api ; return api -> stop ( dev ) ; }
@brief Stop counter device.
@brief Stop counter device .