CAT2 Peripheral Driver Library

Functions

__STATIC_INLINE void Cy_SysClk_HposcEnable (void)
 Enables the HPOSC. More...
 
__STATIC_INLINE bool Cy_SysClk_HposcIsEnabled (void)
 Returns the HPOSC enable/disable state. More...
 
__STATIC_INLINE cy_en_sysclk_status_t Cy_SysClk_HposcDisable (void)
 Disables the HPOSC. More...
 

Detailed Description

Function Documentation

◆ Cy_SysClk_HposcEnable()

__STATIC_INLINE void Cy_SysClk_HposcEnable ( void  )

Enables the HPOSC.

Note
Applicable to PSOC4 HVMS/PA only.
Function Usage
/* Scenario: The HFCLK needs to be sourced by the HPOSC instead of the IMO. */
/* Enable the HPOSC */
/* Now switch the HFCLK source to HPOSC */
/* Disable the IMO */

◆ Cy_SysClk_HposcIsEnabled()

__STATIC_INLINE bool Cy_SysClk_HposcIsEnabled ( void  )

Returns the HPOSC enable/disable state.

Note
Applicable to PSOC4 HVMS/PA only.
Function Usage
/* Scenario: HPOSC is not needed - shut it down to reduce power consumption. */
{
Cy_SysClk_HposcDisable(); /* Disable the HPOSC */
}

◆ Cy_SysClk_HposcDisable()

__STATIC_INLINE cy_en_sysclk_status_t Cy_SysClk_HposcDisable ( void  )

Disables the HPOSC.

HPOSC can't be disabled if the HPOSC is selected as a HFCLK source.

Returns
Error / status code, cy_en_sysclk_status_t :
CY_SYSCLK_SUCCESS - HPOSC successfully disabled
CY_SYSCLK_INVALID_STATE - Cannot disable the HPOSC if selected as the HFCLK source.
Note
Applicable to PSOC4 HVMS/PA only.
Function Usage
/* Scenario: HPOSC is not needed - shut it down to reduce power consumption. */
{
Cy_SysClk_HposcDisable(); /* Disable the HPOSC */
}