22 #include <adi_callback.h> 23 #include <adi_processor.h> 34 #pragma diag_suppress=Pm009,Pm011 83 #if defined(__ADUCM4x50__) 203 #if defined(__ADUCM4x50__) 210 #if defined(__ADUCM4x50__) 302 #if defined(__ADUCM4x50__) 313 #elif defined(__ADUCM302x__) 339 #if defined(__ADUCM4x50__) 403 #if defined(__ADUCM4x50__) 443 const uint32_t ExtClkFreq
467 #if defined(__ADUCM4x50__) 557 const uint8_t nMulFactor,
604 uint32_t
volatile * pnInterruptOccurred,
605 const uint8_t PriorityMask
612 uint32_t
volatile * pnInterruptOccurred
620 #if defined(__ADUCM4x50__) 643 const ADI_CALLBACK pfCallback,
ADI_PWR_RESULT adi_pwr_SetClockDivider(const ADI_CLOCK_ID eClockId, const uint16_t nDiv)
Sets the clock divide factor for an individual clock group.
ADI_PWR_RESULT adi_pwr_SetVoltageRange(const ADI_PWR_VOLTAGE_RANGE eRange)
To Monitor voltage range of battery.
ADI_PWR_RESULT adi_pwr_SetPLLClockMux(const ADI_CLOCK_MUX_ID eClockID)
Sets the input clock source for PLL multiplexer.
ADI_PWR_RESULT adi_pwr_SetHPBuckLoadMode(const ADI_PWR_HPBUCK_LD_MODE eLoadMode)
Set the HP Buck load mode.
ADI_PWR_RESULT adi_pwr_EnablePMGInterrupt(const ADI_PWR_PMG_IRQ eIrq, const bool bEnable)
Enable/Disable the power management interrupt.
ADI_PWR_RESULT adi_pwr_UpdateCoreClock(void)
Updates the internal SystemCoreClock variable with current core Clock retrieved from cpu registers.
ADI_PWR_RESULT adi_pwr_SetGPIOClockOutput(const ADI_CLOCK_OUTPUT_ID eClockOutput)
Set the clock output through the GPIO.
ADI_PWR_RESULT adi_pwr_EnableHPBuck(const bool bEnable)
Enables or disables the HP Buck.
ADI_PWR_RESULT adi_pwr_EnableHPBuckLowPowerMode(const bool bEnable)
Enable or disable the HPBuck Low Power mode. The HPBUCK Low Power mode can be selected,...
ADI_PWR_RESULT adi_pwr_SetPll(uint8_t nDivFactor, const uint8_t nMulFactor, const bool bDiv2, const bool bMul2)
Program PLL frequency.
ADI_PWR_RESULT adi_pwr_EnableClockSource(const ADI_CLOCK_SOURCE_ID eClockSource, const bool bEnable)
To Enable/disable clock sources.
ADI_PWR_RESULT adi_pwr_EnterLowPowerMode(const ADI_PWR_POWER_MODE PowerMode, uint32_t volatile *pnInterruptOccurred, const uint8_t PriorityMask)
Puts the processor into given low power mode.
ADI_PWR_RESULT adi_pwr_ExitLowPowerMode(uint32_t volatile *pnInterruptOccurred)
ADI_PWR_RESULT adi_pwr_GetExtClkFreq(uint32_t *pExtClock)
Gets the system external clock frequency. Gets the clock frequency of the source connected to the ext...
ADI_PWR_RESULT adi_pwr_EnableClockInterrupt(const ADI_PWR_CLOCK_IRQ eIrq, const bool bEnable)
Enable/Disable the clock interrupt to monitor status of LFXTAL, HFXTAL and PLL.
ADI_PWR_RESULT adi_pwr_RegisterCallback(const ADI_CALLBACK pfCallback, void *pcbParam)
Registers or unregister the callback function.
ADI_PWR_RESULT adi_pwr_EnableClock(const ADI_CLOCK_GATE eClockGate, const bool bEnable)
Enable/disable individual peripheral clocks.
ADI_PWR_RESULT adi_pwr_EnableLFXTALBypass(const bool bEnable)
Enable/disable LFXTAL bypass mode.
ADI_PWR_RESULT adi_pwr_GetClockFrequency(const ADI_CLOCK_ID eClockId, uint32_t *pClock)
Get the frequency of the given clock. Obtain individual peripheral clock frequencies.
ADI_PWR_RESULT adi_pwr_SetExtClkFreq(const uint32_t ExtClkFreq)
Sets the system external clock frequency.
ADI_PWR_RESULT adi_pwr_EnableRootClockFailAutoSwitch(const bool bEnable)
To enable/disable auto switching of root clock to HFOSC upon detection of Root clock failure....
ADI_PWR_RESULT adi_pwr_SetHFOscDivFactor(const ADI_PWR_HFOSC_DIV eDivFactor)
Sets the HF Oscillator divide factor.
ADI_PWR_RESULT adi_pwr_SetRootClockMux(const ADI_CLOCK_MUX_ID eClockID)
Sets the source for the root clock multiplexer.
ADI_PWR_RESULT adi_pwr_EnableHFOscAutoDivBy1(const bool bEnable)
Enable or disable the HF oscillator automatic divide by 1 during wakeup from Flexi mode.
ADI_PWR_RESULT adi_pwr_SetRefClockMux(const ADI_CLOCK_MUX_ID eClockID)
Sets clock source for the Reference clock multiplexer.
ADI_PWR_RESULT adi_pwr_GetWakeUpStatus(ADI_PWR_WAKEUP_STATUS *peStatus)
Function to retrieve the wakeup from shut down mode status.
ADI_PWR_RESULT adi_pwr_GetClockStatus(const ADI_CLOCK_SOURCE_ID eClockSource, ADI_CLOCK_SOURCE_STATUS *peStatus)
Return the status of a clock source.
ADI_PWR_RESULT adi_pwr_Init(void)
ADI_PWR_RESULT adi_pwr_EnableLFXTALFailAutoSwitch(const bool bEnable)
Enable/Disable the LFXTAL Fail Auto switch. Enables/Disable automatic Switching of the LF Mux to LF O...
ADI_PWR_RESULT adi_pwr_SetLFClockMux(const ADI_CLOCK_MUX_ID eClockID)
Sets the input clock for low frequency clock multiplexer.