Jump to main content

##

# 2.79 Power, Clock and Reset (PCR) Module

The PCR module provides control of peripheral clocks, ability to reset peripherals and control of power to the peripherals.

## Library Interface

PCR peripheral library provides the following interfaces:

Functions

Name | Description
--- | ---
PCR_Initialize | Initializes the PCR module based on MCC configuration
PCR_PeripheralResetLock | Locks the peripheral reset enable register
PCR_PeripheralResetUnLock | Unlocks the peripheral reset enable register
PCR_PrivilegeEnLock | Locks privilege enable registers
PCR_PrivilegeEnUnLock | Un-locks privilege enable registers
PCR_PrivilegeDisablex | Enables access to the given peripheral block in all modes
PCR_PrivilegeEnablex | Enables access to the given peripheral block in all modes
PCR_ResetEnablex | Resets the given peripheral
PCR_SleepDisablex | Brings the module out of sleep mode and is free to use the clock as necessary
PCR_SleepEnablex | The given peripheral block is commanded to enter into sleep mode at the next available moment

Data types and constants

Name | Type | Description
--- | --- | ---
PCR_SLEEP_ENx | Enum | This enum is used to specify the peripheral block for which sleep mode needs to be enabled/disabled using the PCR_SleepEnablex()/PCR_SleepDisablex() API
PCR_RESET_ENx | Enum | This enum is used to specify the peripheral block for which reset needs to be enabled using the PCR_ResetEnablex() API
PCR_PRIV_ENx | Enum | This enum is used to specify the peripheral block for which privilege access is to be enabled/disabled using the PCR_PrivilegeEnablex()/PCR_PrivilegeDisablex() API

Note: Not all APIs maybe implemented. See the specific device family section for available APIs.