1.2.21.26 1.3.25.26 1.4.21.26 1.5.25.26 1.6.22.26 1.7.23.26 1.9.19.26 1.29.23.26 1.30.18.26 1.31.18.26 1.32.26.26 1.33.16.26 1.37.18.26 1.38.21.26 1.39.18.26 1.40.20.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.