MTB CAT1 Peripheral driver library

General Description

Functions

uint32_t Cy_SysClk_AltHfGetFrequency (void)
 Reports the frequency of the Alternative High-Frequency Clock. More...
 
cy_en_sysclk_status_t Cy_SysClk_AltHfEnable (uint32_t timeoutus)
 Enables the ATLHF. More...
 
bool Cy_SysClk_IsAltHfEnabled (void)
 Reports if ALTHF is enabled or not. More...
 

Function Documentation

◆ Cy_SysClk_AltHfGetFrequency()

uint32_t Cy_SysClk_AltHfGetFrequency ( void  )

Reports the frequency of the Alternative High-Frequency Clock.

Note
This API is available for CAT1A (excluding TVIIBE) and CAT1B devices.
Function Usage
/* BLE ECO configuration: ECO Frequency: 32 MHZ, Divider: 2 */
/* Start-up time(uS): 1500, Load cap(pF): 9.9 */
uint32_t startTime = (uint32_t)(1500 / 31.25);
uint32_t loadCap = (uint32_t)((9.9 - 7.5) / 0.075);
/* Configure the BLE ECO clock */
/* In case if there is a need to get the BLE ECO frequency */
uint32_t bleEcoFreq = Cy_SysClk_AltHfGetFrequency();

◆ Cy_SysClk_AltHfEnable()

cy_en_sysclk_status_t Cy_SysClk_AltHfEnable ( uint32_t  timeoutus)

Enables the ATLHF.

Note
This API is available for CAT1B devices.
Returns
Error / status code:
CY_SYSCLK_SUCCESS - ALTHF successfully disabled
CY_SYSCLK_TIMEOUT - ALTHF enabling failed due to timeout

◆ Cy_SysClk_IsAltHfEnabled()

bool Cy_SysClk_IsAltHfEnabled ( void  )

Reports if ALTHF is enabled or not.

Note
This API is available for CAT1B devices.
Returns
Status of ALTHF
true = Enabled
false = Not Enabled