include/counter.h
/**
 * @brief Start counter device in free running mode.
 *
 * Start the counter device. If the device is a 'countup' counter, the
 * counter initial value is set to zero. If it is a 'countdown' counter,
 * the initial value is set to the maximum value supported by the device.
 *
 * @param dev Pointer to the device structure for the driver instance.
 *
 * @retval 0 If successful.
 * @retval Negative errno code if failure.
 */
@brief Start counter device in free running mode.
Start the counter device. If the device is a 'countup' counter, the
counter initial value is set to zero. If it is a 'countdown' counter,
the initial value is set to the maximum value supported by the device.

@param dev Pointer to the device structure for the driver instance.

@retval 0 If successful.
@retval Negative errno code if failure.
@brief Start counter device in free running mode . Start the counter device . If the device is a ' countup ' counter the counter initial value is set to zero . If it is a ' countdown ' counter the initial value is set to the maximum value supported by the device . @param dev Pointer to the device structure for the driver instance . @retval 0 If successful . @retval Negative errno code if failure .
static inline int counter_start(struct device *dev)
{
	const struct counter_driver_api *api = dev->driver_api;
	return api->start(dev);
}
static inline int counter_start ( struct device * dev ) { const struct counter_driver_api * api = dev -> driver_api ; return api -> start ( dev ) ; }
@brief Start counter device in free running mode.
@brief Start counter device in free running mode .