1.37.18.26 SERCOMx_USART_FrequencyGet Function
C
/* x = SERCOM instance number */
/* Blocking, non-blocking and ring buffer mode */
uint32_t SERCOMx_USART_FrequencyGet( void )
Summary
Provides the given SERCOM peripheral frequency.
Description
This function provides the frequency at which the given SERCOM operates.
Precondition
SERCOMx_USART_Initialize must have been called for the associated USART instance.
Parameters
None.
Returns
The frequency (in Hz) at which the timer's counter increments.
Example
uint32_t frequency = 0;
SERCOM0_USART_Initialize();
frequency = SERCOM0_USART_FrequencyGet();
Remarks
None.