asf/sam/drivers/pwm/pwm.c
uint32_t pwm_cmp_get_period_counter(Pwm *p_pwm, uint32_t ul_cmp_unit)
{
	return (PWM_CMPM_CPRCNT(p_pwm->PWM_CMP[ul_cmp_unit].PWM_CMPM)
			>> PWM_CMPM_CPRCNT_Pos);
}
/**
 * \brief Report the value of the comparison period counter.
 *
 * \param p_pwm	Pointer to a PWM instance.
 * \param ul_cmp_unit PWM comparison unit number.
 *
 * \return Value of the comparison period counter.
 */
\brief Report the value of the comparison period counter.
\param p_pwm Pointer to a PWM instance.
\param ul_cmp_unit PWM comparison unit number.

\return Value of the comparison period counter.
\ brief Report the value of the comparison period counter . \ param p_pwm Pointer to a PWM instance . \ param ul_cmp_unit PWM comparison unit number . \ return Value of the comparison period counter .
uint32_t pwm_cmp_get_period_counter(Pwm *p_pwm, uint32_t ul_cmp_unit)
{
	return (PWM_CMPM_CPRCNT(p_pwm->PWM_CMP[ul_cmp_unit].PWM_CMPM)
			>> PWM_CMPM_CPRCNT_Pos);
}
uint32_t pwm_cmp_get_period_counter ( Pwm * p_pwm , uint32_t ul_cmp_unit ) { return ( PWM_CMPM_CPRCNT ( p_pwm -> PWM_CMP [ ul_cmp_unit ] . PWM_CMPM ) >> PWM_CMPM_CPRCNT_Pos ) ; }
\brief Report the value of the comparison period counter.
\ brief Report the value of the comparison period counter .