include/counter.h
/**
 * @brief Function to get pending interrupts
 *
 * The purpose of this function is to return the interrupt
 * status register for the device.
 * This is especially useful when waking up from
 * low power states to check the wake up source.
 *
 * @param dev Pointer to the device structure for the driver instance.
 *
 * @retval 1 if the counter interrupt is pending.
 * @retval 0 if no counter interrupt is pending.
 */
@brief Function to get pending interrupts
The purpose of this function is to return the interrupt
status register for the device.
This is especially useful when waking up from
low power states to check the wake up source.

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

@retval 1 if the counter interrupt is pending.
@retval 0 if no counter interrupt is pending.
@brief Function to get pending interrupts The purpose of this function is to return the interrupt status register for the device . This is especially useful when waking up from low power states to check the wake up source . @param dev Pointer to the device structure for the driver instance . @retval 1 if the counter interrupt is pending . @retval 0 if no counter interrupt is pending .
static inline int counter_get_pending_int(struct device *dev)
{
	struct counter_driver_api *api;
	api = (struct counter_driver_api *)dev->driver_api;
	return api->get_pending_int(dev);
}
static inline int counter_get_pending_int ( struct device * dev ) { struct counter_driver_api * api ; api = ( struct counter_driver_api * ) dev -> driver_api ; return api -> get_pending_int ( dev ) ; }
@brief Function to get pending interrupts
 The purpose of this function is to return the interrupt
 status register for the device.
@brief Function to get pending interrupts The purpose of this function is to return the interrupt status register for the device .