mFrame
|
公開方法(Public Methods) | |
virtual | ~SPC (void) override |
Destroy the object. | |
![]() | |
Object (void) | |
Construct a new Object object. | |
virtual | ~Object (void) override |
Destroy the Object object. | |
void * | operator new (size_t n) |
void * | operator new (size_t n, void *p) |
mframe::lang::Object & | getObject (void) override |
取得類Object | |
void | delay (int milliseconds) const |
函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1),線程會立即重新安排。 | |
bool | equals (Object *object) const |
函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1),線程會立即重新安排。 | |
bool | equals (Object &object) const |
函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1),線程會立即重新安排。 | |
void | wait (void) const |
導致當前線程等待,直到另一個線程調用此對象的notify()方法或notifyAll()方法,或指定的時間 已過。 | |
bool | wait (int timeout) const |
導致當前線程等待,直到另一個線程調用此對象的 notify()方法或 notifyAll()方法,或其他一些線 程中斷當前線程,或一定量的實時時間。 | |
bool | yield (void) const |
函數yield()將控制權傳遞給處於READY狀態且具有相同優先級的下一個線程。 如果在READY狀態下沒有其他優先級相同的線程,則當前線程繼續執行,不會發生線程切換。 | |
int | lock (void) const |
核心鎖定,在調用unlock以前將不會進行執行緒切換 | |
int | unlock (void) const |
核心解鎖。 | |
mframe::sys::Thread * | currentThread (void) const |
取得當前的執行緒 | |
virtual int | hashcode (void) const |
返回對象的哈希碼值。支持這種方法是為了散列表,如HashMap提供的那樣。 | |
![]() | |
virtual | ~Interface (void)=default |
Destroy the struct object. | |
靜態公開方法(Static Public Methods) | |
static uint8 | getPeriphIOIsolationStatus (Register &base) |
Gets Isolation status for each power domains. | |
static void | clearPeriphIOIsolationFlag (Register &base) |
Clears peripherals and I/O pads isolation flags for each power domains. | |
static bool | getBusyStatusFlag (Register &base) |
Gets SPC busy status flag. | |
static bool | checkLowPowerReqest (Register &base) |
Checks system low power request. | |
static void | clearLowPowerRequest (Register &base) |
Clears system low power request, set SPC in active mode. | |
static bool | checkSwitchState (Register &base) |
Checks whether the power switch is on. | |
static PowerDomainLowPowerMode | getPowerDomainLowPowerMode (Register &base, PowerDomainID powerDomainId) |
Gets selected power domain's requested low power mode. | |
static bool | checkPowerDomainLowPowerRequest (Register &base, PowerDomainID powerDomainId) |
Checks power domain's low power request. | |
static void | clearPowerDomainLowPowerRequestFlag (Register &base, PowerDomainID powerDomainId) |
Clears selected power domain's low power request flag. | |
static void | trimSRAMLdoRefVoltage (Register &base, uint8 trimValue) |
Trims SRAM retention regulator reference voltage, trim step is 12 mV, range is around 0.48V to 0.85V. | |
static void | enableSRAMLdo (Register &base, bool enable) |
Enables/disables SRAM retention LDO. | |
static void | retainSRAMArray (Register &base, uint8 mask) |
static void | setLowPowerRequestConfig (Register &base, const LowPowerRequestConfig &config) |
Configs Low power request output pin. | |
static void | enableIntegratedPowerSwitchManually (Register &base, bool enable) |
Enables/disables the integrated power switch manually. | |
static void | enableIntegratedPowerSwitchAutomatically (Register &base, bool sleepGate, bool wakeupUngate) |
Enables/disables the integrated power switch automatically. | |
static void | setSRAMOperateVoltage (Register &base, const SramVoltageConfig &config) |
Set SRAM operate voltage. | |
static BandgapMode | getActiveModeBandgapMode (Register &base) |
Gets the Bandgap mode in Active mode. | |
static uint32 | getActiveModeVoltageDetectStatus (Register &base) |
Gets all voltage detectors status in Active mode. | |
static chip::spc::Status | setActiveModeBandgapModeConfig (Register &base, chip::spc::BandgapMode mode) |
Configs Bandgap mode in Active mode. | |
static void | setActiveModeVoltageTrimDelay (Register &base, uint16 delay) |
Sets the delay when the regulators change voltage level in Active mode. | |
static chip::spc::Status | setActiveModeRegulatorsConfig (Register &base, const ActiveModeRegulatorsConfig &config) |
Configs all settings of regulators in Active mode at a time. | |
static void | enableActiveModeAnalogModules (Register &base, uint32 maskValue) |
Enables analog modules in active mode. | |
static void | disableActiveModeAnalogModules (Register &base, uint32 maskValue) |
Disables analog modules in active mode. | |
static uint32 | getActiveModeEnabledAnalogModules (Register &base) |
Gets enabled analog modules that enabled in active mode. | |
static chip::spc::BandgapMode | getLowPowerModeBandgapMode (Register &base) |
Gets the Bandgap mode in Low Power mode. | |
static uint32 | getLowPowerModeVoltageDetectStatus (Register &base) |
Gets the status of all voltage detectors in Low Power mode. | |
static void | enableLowPowerModeLowPowerIREF (Register &base, bool enable) |
Enables/Disables Low Power IREF in low power modes. | |
static chip::spc::Status | setLowPowerModeBandgapmodeConfig (Register &base, chip::spc::BandgapMode mode) |
Configs Bandgap mode in Low Power mode. | |
static void | enableSRAMLdOLowPowerModeIREF (Register &base, bool enable) |
Enables/disables SRAM_LDO deep power low power IREF. | |
static void | setLowPowerWakeUpDelay (Register &base, uint16 delay) |
Sets the delay when exit the low power modes. | |
static chip::spc::Status | setLowPowerModeRegulatorsConfig (Register &base, const LowPowerModeRegulatorsConfig *config) |
Configs all settings of regulators in Low power mode at a time. | |
static void | enableLowPowerModeAnalogModules (Register &base, uint32 maskValue) |
Enables analog modules in low power modes. | |
static void | disableLowPowerModeAnalogModules (Register &base, uint32 maskValue) |
Disables analog modules in low power modes. | |
static uint32 | getLowPowerModeEnabledAnalogModules (Register &base) |
Gets enabled analog modules that enabled in low power modes. | |
static uint8 | getVoltageDetectStatusFlag (Register &base) |
Get Voltage Detect Status Flags. | |
static void | clearVoltageDetectStatusFlag (Register &base, uint8 mask) |
Clear Voltage Detect Status Flags. | |
static void | setCoreVoltageDetectConfig (Register &base, const CoreVoltageDetectConfig &config) |
Configs CORE voltage detect options. | |
static void | lockCoreVoltageDetectResetSetting (Register &base) |
Locks Core voltage detect reset setting. | |
static void | unlockCoreVoltageDetectResetSetting (Register &base) |
Unlocks Core voltage detect reset setting. | |
static chip::spc::Status | enableActiveModeCoreLowVoltageDetect (Register &base, bool enable) |
Enables/Disables the Core Low Voltage Detector in Active mode. | |
static chip::spc::Status | enableLowPowerModeCoreLowVoltageDetect (Register &base, bool enable) |
Enables/Disables the Core Low Voltage Detector in Low Power mode. | |
static void | setSystemVDDLowVoltageLevel (Register &base, LowVoltageLevelSelect level) |
Set system VDD Low-voltage level selection. | |
static void | setSystemVoltageDetectConfig (Register &base, const SystemVoltageDetectConfig &config) |
Configs SYS voltage detect options. | |
static void | lockSystemVoltageDetectResetSetting (Register &base) |
Lock System voltage detect reset setting. | |
static void | unlockSystemVoltageDetectResetSetting (Register &base) |
Unlock System voltage detect reset setting. | |
static chip::spc::Status | enableActiveModeSystemHighVoltageDetect (Register &base, bool enable) |
Enables/Disables the System High Voltage Detector in Active mode. | |
static chip::spc::Status | enableActiveModeSystemLowVoltageDetect (Register &base, bool enable) |
Enables/Disable the System Low Voltage Detector in Active mode. | |
static chip::spc::Status | enableLowPowerModeSystemHighVoltageDetect (Register &base, bool enable) |
Enables/Disables the System High Voltage Detector in Low Power mode. | |
static chip::spc::Status | enableLowPowerModeSystemLowVoltageDetect (Register &base, bool enable) |
Enables/Disables the System Low Voltage Detector in Low Power mode. | |
static void | setExternalVoltageDomainsConfig (Register &base, uint8 lowPowerIsoMask, uint8 IsoMask) |
Configs external voltage domains. | |
static uint8 | getExternalDomainsStatus (Register &base) |
Gets External Domains status. | |
static chip::spc::Status | setActiveModeCoreLDORegulatorConfig (Register &base, const ActiveModeCoreLdoOption &option) |
Configs Core LDO Regulator in Active mode. | |
static chip::spc::Status | setActiveModeCoreLDORegulatorVoltageLevel (Register &base, CoreLdoVoltageLevel voltageLevel) |
Set Core LDO Regulator Voltage level in Active mode. | |
static CoreLdoVoltageLevel | getActiveModeCoreLDOVDDVoltageLevel (Register &base) |
Gets CORE LDO Regulator Voltage level. | |
static chip::spc::Status | setActiveModeCoreLDORegulatorDriveStrength (Register &base, CoreLdoDriveStrength driveStrength) |
Set Core LDO VDD Regulator Drive Strength in Active mode. | |
static CoreLdoDriveStrength | getActiveModeCoreLDODriveStrength (Register &base) |
Gets CORE LDO VDD Regulator Drive Strength in Active mode. | |
static chip::spc::Status | setLowPowerModeCoreLDORegulatorConfig (Register &base, const LowPowerModeCoreLdoOption &option) |
Configs CORE LDO Regulator in low power mode. | |
static chip::spc::Status | setLowPowerModeCoreLDORegulatorVoltageLevel (Register &base, CoreLdoVoltageLevel voltageLevel) |
Set Core LDO VDD Regulator Voltage level in Low power mode. | |
static CoreLdoVoltageLevel | getLowPowerCoreLDOVDDVoltageLevel (Register &base) |
Gets the CORE LDO VDD Regulator Voltage Level for Low Power modes. | |
static chip::spc::Status | setLowPowerModeCoreLDORegulatorDriveStrength (Register &base, CoreLdoDriveStrength driveStrength) |
Set Core LDO VDD Regulator Drive Strength in Low power mode. | |
static CoreLdoDriveStrength | getLowPowerCoreLDOVDDDriveStrength (Register &base) |
Gets CORE LDO VDD Drive Strength for Low Power modes. | |
static constexpr uint32 | VERID_FEATURE (uint32 value) |
VERID - FEATURE. | |
static constexpr uint32 | VERID_MINOR (uint32 value) |
VERID - MINOR. | |
static constexpr uint32 | VERID_MAJOR (uint32 value) |
VERID - MAJOR. | |
static constexpr uint32 | SC_BUSY (uint32 value) |
SC - BUSY. | |
static constexpr uint32 | SC_SPC_LP_REQ (uint32 value) |
SC - SPC_LP_REQ. | |
static constexpr uint32 | SC_SPC_LP_MODE (uint32 value) |
SC - SPC_LP_MODE. | |
static constexpr uint32 | SC_ISO_CLR (uint32 value) |
SC - ISO_CLR. | |
static constexpr uint32 | SC_SWITCH_STATE (uint32 value) |
SC - SWITCH_STATE. | |
static constexpr uint32 | LPREQ_CFG_LPREQOE (uint32 value) |
LPREQ_CFG - LPREQOE. | |
static constexpr uint32 | LPREQ_CFG_LPREQPOL (uint32 value) |
LPREQ_CFG - LPREQPOL. | |
static constexpr uint32 | LPREQ_CFG_LPREQOV (uint32 value) |
LPREQ_CFG - LPREQOV. | |
static constexpr uint32 | CFG_INTG_PWSWTCH_SLEEP_EN (uint32 value) |
CFG - INTG_PWSWTCH_SLEEP_EN. | |
static constexpr uint32 | CFG_INTG_PWSWTCH_WKUP_EN (uint32 value) |
CFG - INTG_PWSWTCH_WKUP_EN. | |
static constexpr uint32 | CFG_INTG_PWSWTCH_SLEEP_ACTIVE_EN (uint32 value) |
CFG - INTG_PWSWTCH_SLEEP_ACTIVE_EN. | |
static constexpr uint32 | CFG_INTG_PWSWTCH_WKUP_ACTIVE_EN (uint32 value) |
CFG - INTG_PWSWTCH_WKUP_ACTIVE_EN. | |
static constexpr uint32 | PD_STATUS_PWR_REQ_STATUS (uint32 value) |
PD_STATUS - PWR_REQ_STATUS. | |
static constexpr uint32 | PD_STATUS_PD_LP_REQ (uint32 value) |
PD_STATUS - PD_LP_REQ. | |
static constexpr uint32 | PD_STATUS_LP_MODE (uint32 value) |
PD_STATUS - LP_MODE. | |
static constexpr uint32 | SRAMCTL_VSM (uint32 value) |
SRAMCTL - VSM. | |
static constexpr uint32 | SRAMCTL_REQ (uint32 value) |
SRAMCTL - REQ. | |
static constexpr uint32 | SRAMCTL_ACK (uint32 value) |
SRAMCTL - ACK. | |
static constexpr uint32 | SRAMRETLDO_REFTRIM_REFTRIM (uint32 value) |
SRAMRETLDO_REFTRIM - REFTRIM. | |
static constexpr uint32 | SRAMRETLDO_CNTRL_SRAMLDO_ON (uint32 value) |
SRAMRETLDO_CNTRL - SRAMLDO_ON. | |
static constexpr uint32 | SRAMRETLDO_CNTRL_SRAM_RET_EN (uint32 value) |
SRAMRETLDO_CNTRL - SRAM_RET_EN. | |
static constexpr uint32 | ACTIVE_CFG_CORELDO_VDD_DS (uint32 value) |
ACTIVE_CFG - CORELDO_VDD_DS. | |
static constexpr uint32 | ACTIVE_CFG_CORELDO_VDD_LVL (uint32 value) |
ACTIVE_CFG - CORELDO_VDD_LVL. | |
static constexpr uint32 | ACTIVE_CFG_BGMODE (uint32 value) |
ACTIVE_CFG - BGMODE. | |
static constexpr uint32 | ACTIVE_CFG_VDD_VD_DISABLE (uint32 value) |
ACTIVE_CFG - VDD_VD_DISABLE. | |
static constexpr uint32 | ACTIVE_CFG_CORE_LVDE (uint32 value) |
ACTIVE_CFG - CORE_LVDE. | |
static constexpr uint32 | ACTIVE_CFG_SYS_LVDE (uint32 value) |
ACTIVE_CFG - SYS_LVDE. | |
static constexpr uint32 | ACTIVE_CFG_SYS_HVDE (uint32 value) |
ACTIVE_CFG - SYS_HVDE. | |
static constexpr uint32 | ACTIVE_CFG1_SOC_CNTRL (uint32 value) |
ACTIVE_CFG1 - SOC_CNTRL. | |
static constexpr uint32 | LP_CFG_CORELDO_VDD_DS (uint32 value) |
LP_CFG - CORELDO_VDD_DS. | |
static constexpr uint32 | LP_CFG_CORELDO_VDD_LVL (uint32 value) |
LP_CFG - CORELDO_VDD_LVL. | |
static constexpr uint32 | LP_CFG_SRAMLDO_DPD_ON (uint32 value) |
LP_CFG - SRAMLDO_DPD_ON. | |
static constexpr uint32 | LP_CFG_BGMODE (uint32 value) |
LP_CFG - BGMODE. | |
static constexpr uint32 | LP_CFG_LP_IREFEN (uint32 value) |
LP_CFG - LP_IREFEN. | |
static constexpr uint32 | LP_CFG_CORE_LVDE (uint32 value) |
LP_CFG - CORE_LVDE. | |
static constexpr uint32 | LP_CFG_SYS_LVDE (uint32 value) |
LP_CFG - SYS_LVDE. | |
static constexpr uint32 | LP_CFG_SYS_HVDE (uint32 value) |
LP_CFG - SYS_HVDE. | |
static constexpr uint32 | LP_CFG1_SOC_CNTRL (uint32 value) |
LP_CFG1 - SOC_CNTRL. | |
static constexpr uint32 | LPWKUP_DELAY_LPWKUP_DELAY (uint32 value) |
LPWKUP_DELAY - LPWKUP_DELAY. | |
static constexpr uint32 | ACTIVE_VDELAY_ACTIVE_VDELAY (uint32 value) |
ACTIVE_VDELAY - ACTIVE_VDELAY. | |
static constexpr uint32 | VD_STAT_COREVDD_LVDF (uint32 value) |
VD_STAT - COREVDD_LVDF. | |
static constexpr uint32 | VD_STAT_SYSVDD_LVDF (uint32 value) |
VD_STAT - SYSVDD_LVDF. | |
static constexpr uint32 | VD_STAT_SYSVDD_HVDF (uint32 value) |
VD_STAT - SYSVDD_HVDF. | |
static constexpr uint32 | VD_CORE_CFG_LVDRE (uint32 value) |
VD_CORE_CFG - LVDRE. | |
static constexpr uint32 | VD_CORE_CFG_LVDIE (uint32 value) |
VD_CORE_CFG - LVDIE. | |
static constexpr uint32 | VD_CORE_CFG_LOCK (uint32 value) |
VD_CORE_CFG - LOCK. | |
static constexpr uint32 | VD_SYS_CFG_LVDRE (uint32 value) |
VD_SYS_CFG - LVDRE. | |
static constexpr uint32 | VD_SYS_CFG_LVDIE (uint32 value) |
VD_SYS_CFG - LVDIE. | |
static constexpr uint32 | VD_SYS_CFG_HVDRE (uint32 value) |
VD_SYS_CFG - HVDRE. | |
static constexpr uint32 | VD_SYS_CFG_HVDIE (uint32 value) |
VD_SYS_CFG - HVDIE. | |
static constexpr uint32 | VD_SYS_CFG_LVSEL (uint32 value) |
VD_SYS_CFG - LVSEL. | |
static constexpr uint32 | VD_SYS_CFG_LOCK (uint32 value) |
VD_SYS_CFG - LOCK. | |
static constexpr uint32 | EVD_CFG_EVDISO (uint32 value) |
EVD_CFG - EVDISO. | |
static constexpr uint32 | EVD_CFG_EVDLPISO (uint32 value) |
EVD_CFG - EVDLPISO. | |
static constexpr uint32 | EVD_CFG_EVDSTAT (uint32 value) |
EVD_CFG - EVDSTAT. | |
static constexpr uint32 | EVD_CFG_REG_EVDISO (uint32 value) |
static constexpr uint32 | EVD_CFG_REG_EVDLPISO (uint32 value) |
static constexpr uint32 | EVD_CFG_REG_EVDSTAT (uint32 value) |
|
inlinestaticconstexpr |
ACTIVE_CFG1 - SOC_CNTRL.
Active Power Mode Configuration 1 - Active Config Chip Control
|
inlinestaticconstexpr |
ACTIVE_CFG - BGMODE.
Active Power Mode Configuration - Bandgap Mode
|
inlinestaticconstexpr |
ACTIVE_CFG - CORE_LVDE.
Active Power Mode Configuration - Core Low-Voltage Detection Enable
|
inlinestaticconstexpr |
ACTIVE_CFG - CORELDO_VDD_DS.
Active Power Mode Configuration - LDO_CORE VDD Drive Strength
|
inlinestaticconstexpr |
ACTIVE_CFG - CORELDO_VDD_LVL.
Active Power Mode Configuration - LDO_CORE VDD Regulator Voltage Level
|
inlinestaticconstexpr |
ACTIVE_CFG - SYS_HVDE.
Active Power Mode Configuration - System High-Voltage Detection Enable
|
inlinestaticconstexpr |
ACTIVE_CFG - SYS_LVDE.
Active Power Mode Configuration - System Low-Voltage Detection Enable
|
inlinestaticconstexpr |
ACTIVE_CFG - VDD_VD_DISABLE.
Active Power Mode Configuration - VDD Voltage Detect Disable
|
inlinestaticconstexpr |
ACTIVE_VDELAY - ACTIVE_VDELAY.
Active Voltage Trim Delay - Active Voltage Delay
|
inlinestaticconstexpr |
CFG - INTG_PWSWTCH_SLEEP_ACTIVE_EN.
SPC Configuration - Integrated Power Switch Active Enable
|
inlinestaticconstexpr |
CFG - INTG_PWSWTCH_SLEEP_EN.
SPC Configuration - Integrated Power Switch Sleep Enable
|
inlinestaticconstexpr |
CFG - INTG_PWSWTCH_WKUP_ACTIVE_EN.
SPC Configuration - Integrated Power Switch Wake-up Enable
|
inlinestaticconstexpr |
CFG - INTG_PWSWTCH_WKUP_EN.
SPC Configuration - Integrated Power Switch Wake-up Enable
|
inlinestatic |
|
inlinestatic |
Checks power domain's low power request.
base | SPC peripheral base address. |
powerDomainId | Power Domain Id, please refer to PowerDomainID. |
|
inlinestatic |
Checks whether the power switch is on.
base | SPC peripheral base address. |
|
inlinestatic |
|
inlinestatic |
Clears peripherals and I/O pads isolation flags for each power domains.
This function clears peripherals and I/O pads isolation flags for each power domains. After recovering from the POWERDOWN mode, user must invoke this function to release the I/O pads and certain peripherals to their normal run mode state. Before invoking this function, user must restore chip configuration in particular pin configuration for enabled WUU wakeup pins.
base | SPC peripheral base address. |
|
inlinestatic |
Clears selected power domain's low power request flag.
base | SPC peripheral base address. |
powerDomainId | Power Domain Id, please refer to PowerDomainID. |
|
inlinestatic |
Clear Voltage Detect Status Flags.
base | SPC peripheral base address. |
mask | The mask of the voltage detect status flags. See _spc_voltage_detect_flags for details. |
|
inlinestatic |
Disables analog modules in active mode.
base | SPC peripheral base address. |
maskValue | The mask of analog modules to disable in active mode, should be the OR'ed value of spc_analog_module_control. |
|
inlinestatic |
Disables analog modules in low power modes.
base | SPC peripheral base address. |
maskValue | The mask of analog modules to disable in low power modes, should be OR'ed value of spc_analog_module_control. |
|
inlinestatic |
Enables analog modules in active mode.
base | SPC peripheral base address. |
maskValue | The mask of analog modules to enable in active mode, should be the OR'ed value of spc_analog_module_control. |
|
static |
Enables/Disables the Core Low Voltage Detector in Active mode.
base | SPC peripheral base address. |
enable | Enable/Disable Core LVD. true - Enable Core Low voltage detector in active mode. false - Disable Core Low voltage detector in active mode. |
|
static |
Enables/Disables the System High Voltage Detector in Active mode.
base | SPC peripheral base address. |
enable | Enable/Disable System HVD. true - Enable System High voltage detector in active mode. false - Disable System High voltage detector in active mode. |
|
static |
Enables/Disable the System Low Voltage Detector in Active mode.
base | SPC peripheral base address. |
enable | Enable/Disable System LVD. true - Enable System Low voltage detector in active mode. false - Disable System Low voltage detector in active mode. |
|
inlinestatic |
Enables/disables the integrated power switch automatically.
To gate the integrated power switch when chip enter low power modes, and ungate the switch after wake-up from low power modes:
base | SPC peripheral base address. |
sleepGate | Enable the integrated power switch when chip enter low power modes: - \b true SPC static_asserts an output pin at low-power entry to power-gate the switch; - \b false SPC does not static_assert an output pin at low-power entry to power-gate the switch. |
wakeupUngate | Enables the switch after wake-up from low power modes: - \b true SPC static_asserts an output pin at low-power exit to power-ungate the switch; - \b false SPC does not static_assert an output pin at low-power exit to power-ungate the switch. |
|
inlinestatic |
Enables/disables the integrated power switch manually.
base | SPC peripheral base address. |
enable | Used to enable/disable the integrated power switch:
|
|
inlinestatic |
Enables analog modules in low power modes.
base | SPC peripheral base address. |
maskValue | The mask of analog modules to enable in low power modes, should be OR'ed value of spc_analog_module_control. |
|
static |
Enables/Disables the Core Low Voltage Detector in Low Power mode.
This function enables/disables the Core Low Voltage Detector. If enabled the Core Low Voltage detector. The Bandgap mode in low power mode must be programmed so that Bandgap is enabled.
base | SPC peripheral base address. |
enable | Enable/Disable Core HVD. true - Enable Core Low voltage detector in low power mode. false - Disable Core Low voltage detector in low power mode. |
|
inlinestatic |
Enables/Disables Low Power IREF in low power modes.
This function enables/disables Low Power IREF. Low Power IREF can only get disabled in Deep power down mode. In other low power modes, the Low Power IREF is always enabled.
base | SPC peripheral base address. |
enable | Enable/Disable Low Power IREF. true - Enable Low Power IREF for Low Power modes. false - Disable Low Power IREF for Deep Power Down mode. |
|
static |
Enables/Disables the System High Voltage Detector in Low Power mode.
base | SPC peripheral base address. |
enable | Enable/Disable System HVD. true - Enable System High voltage detector in low power mode. false - Disable System High voltage detector in low power mode. |
|
static |
Enables/Disables the System Low Voltage Detector in Low Power mode.
base | SPC peripheral base address. |
enable | Enable/Disable System HVD. true - Enable System Low voltage detector in low power mode. false - Disable System Low voltage detector in low power mode. |
|
inlinestatic |
Enables/disables SRAM retention LDO.
base | SPC peripheral base address. |
enable | Used to enable/disable SRAM LDO :
|
|
inlinestatic |
Enables/disables SRAM_LDO deep power low power IREF.
base | SPC peripheral base address. |
enable | Used to enable/disable low power IREF :
|
|
inlinestaticconstexpr |
EVD_CFG - EVDISO.
External Voltage Domain Configuration - External Voltage Domain Isolation
|
inlinestaticconstexpr |
EVD_CFG - EVDLPISO.
External Voltage Domain Configuration - External Voltage Domain Low-Power Isolation
|
inlinestaticconstexpr |
EVD_CFG - EVDSTAT.
External Voltage Domain Configuration - External Voltage Domain Status
|
inlinestatic |
Gets the Bandgap mode in Active mode.
base | SPC peripheral base address. |
|
inlinestatic |
Gets CORE LDO VDD Regulator Drive Strength in Active mode.
base | SPC peripheral base address. |
|
inlinestatic |
Gets CORE LDO Regulator Voltage level.
This function returns the voltage level of CORE LDO Regulator in Active mode.
base | SPC peripheral base address. |
|
inlinestatic |
Gets enabled analog modules that enabled in active mode.
base | SPC peripheral base address. |
|
inlinestatic |
Gets all voltage detectors status in Active mode.
base | SPC peripheral base address. |
|
inlinestatic |
Gets SPC busy status flag.
This function gets SPC busy status flag. When SPC executing any type of power mode transition in ACTIVE mode or any of the SOC low power mode, the SPC busy status flag is set and this function returns true. When changing CORE LDO voltage level and DCDC voltage level in ACTIVE mode, the SPC busy status flag is set and this function return true.
base | SPC peripheral base address. |
|
inlinestatic |
Gets External Domains status.
base | SPC peripheral base address. |
|
inlinestatic |
Gets CORE LDO VDD Drive Strength for Low Power modes.
base | SPC peripheral base address. |
|
inlinestatic |
Gets the CORE LDO VDD Regulator Voltage Level for Low Power modes.
base | SPC peripheral base address. |
|
inlinestatic |
Gets the Bandgap mode in Low Power mode.
base | SPC peripheral base address. |
|
inlinestatic |
Gets enabled analog modules that enabled in low power modes.
base | SPC peripheral base address. |
|
inlinestatic |
Gets the status of all voltage detectors in Low Power mode.
base | SPC peripheral base address. |
|
static |
Gets Isolation status for each power domains.
This function gets the status which indicates whether certain peripheral and the IO pads are in a latched state as a result of having been in POWERDOWN mode.
base | SPC peripheral base address. |
|
static |
Gets selected power domain's requested low power mode.
base | SPC peripheral base address. |
powerDomainId | Power Domain Id, please refer to PowerDomainID. |
|
inlinestatic |
Get Voltage Detect Status Flags.
base | SPC peripheral base address. |
|
inlinestatic |
Locks Core voltage detect reset setting.
This function locks core voltage detect reset setting. After invoking this function any configuration of Core voltage detect reset will be ignored.
base | SPC peripheral base address. |
|
inlinestatic |
Lock System voltage detect reset setting.
This function locks system voltage detect reset setting. After invoking this function any configuration of System Voltage detect reset will be ignored.
base | SPC peripheral base address. |
|
inlinestaticconstexpr |
LP_CFG1 - SOC_CNTRL.
Low Power Mode Configuration 1 - Low-Power Configuration Chip Control
|
inlinestaticconstexpr |
LP_CFG - BGMODE.
Low-Power Mode Configuration - Bandgap Mode
|
inlinestaticconstexpr |
LP_CFG - CORE_LVDE.
Low-Power Mode Configuration - Core Low Voltage Detect Enable
|
inlinestaticconstexpr |
LP_CFG - CORELDO_VDD_DS.
Low-Power Mode Configuration - LDO_CORE VDD Drive Strength
|
inlinestaticconstexpr |
LP_CFG - CORELDO_VDD_LVL.
Low-Power Mode Configuration - LDO_CORE VDD Regulator Voltage Level
|
inlinestaticconstexpr |
LP_CFG - LP_IREFEN.
Low-Power Mode Configuration - Low-Power IREF Enable
|
inlinestaticconstexpr |
LP_CFG - SRAMLDO_DPD_ON.
Low-Power Mode Configuration - SRAM_LDO Deep Power Low Power IREF Enable
|
inlinestaticconstexpr |
LP_CFG - SYS_HVDE.
Low-Power Mode Configuration - System High Voltage Detect Enable
|
inlinestaticconstexpr |
LP_CFG - SYS_LVDE.
Low-Power Mode Configuration - System Low Voltage Detect Enable
|
inlinestaticconstexpr |
LPREQ_CFG - LPREQOE.
Low-Power Request Configuration - Low-Power Request Output Enable
|
inlinestaticconstexpr |
LPREQ_CFG - LPREQOV.
Low-Power Request Configuration - Low-Power Request Output Override
|
inlinestaticconstexpr |
LPREQ_CFG - LPREQPOL.
Low-Power Request Configuration - Low-Power Request Output Pin Polarity Control
|
inlinestaticconstexpr |
LPWKUP_DELAY - LPWKUP_DELAY.
Low Power Wake-Up Delay - Low-Power Wake-Up Delay
|
inlinestaticconstexpr |
PD_STATUS - LP_MODE.
SPC Power Domain Mode Status - Power Domain Low Power Mode Request
|
inlinestaticconstexpr |
PD_STATUS - PD_LP_REQ.
SPC Power Domain Mode Status - Power Domain Low Power Request Flag
|
inlinestaticconstexpr |
PD_STATUS - PWR_REQ_STATUS.
SPC Power Domain Mode Status - Power Request Status Flag
|
inlinestatic |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
SC - ISO_CLR.
Status Control - Isolation Clear Flags
|
inlinestaticconstexpr |
SC - SPC_LP_MODE.
Status Control - Power Domain Low-Power Mode Request
|
inlinestaticconstexpr |
SC - SPC_LP_REQ.
Status Control - SPC Power Mode Configuration Status Flag
|
inlinestaticconstexpr |
SC - SWITCH_STATE.
Status Control - Power Switch State
|
static |
Configs Bandgap mode in Active mode.
base | SPC peripheral base address. |
mode | The Bandgap mode be selected. |
|
static |
Configs Core LDO Regulator in Active mode.
base | SPC peripheral base address. |
option | Pointer to the ActiveModeCoreLdoOption structure. |
|
static |
Set Core LDO VDD Regulator Drive Strength in Active mode.
base | SPC peripheral base address. |
driveStrength | Specify the drive strength of CORE LDO Regulator in Active mode, please refer to CoreLdoDriveStrength. |
|
static |
Set Core LDO Regulator Voltage level in Active mode.
base | SPC peripheral base address. |
voltageLevel | Specify the voltage level of CORE LDO Regulator in Active mode, please refer to CoreLdoVoltageLevel. |
|
static |
Configs all settings of regulators in Active mode at a time.
base | SPC peripheral base address. |
config | Pointer to ActiveModeRegulatorsConfig structure. |
|
inlinestatic |
|
static |
Configs CORE voltage detect options.
base | SPC peripheral base address. |
config | Pointer to core_voltage_detect_config_t structure. |
|
static |
Configs external voltage domains.
This function configs external voltage domains isolation.
base | SPC peripheral base address. |
lowPowerIsoMask | The mask of external domains isolate enable during low power mode. Please read the Reference Manual for the Bitmap. |
IsoMask | The mask of external domains isolate. Please read the Reference Manual for the Bitmap. |
|
static |
Configs Bandgap mode in Low Power mode.
base | SPC peripheral base address. |
mode | The Bandgap mode be selected. |
|
static |
Configs CORE LDO Regulator in low power mode.
This function configs CORE LDO Regulator in Low Power mode. If CORE LDO VDD Drive Strength is set to Normal, the CORE LDO VDD regulator voltage level in Active mode must be equal to the voltage level in Low power mode. And the Bandgap must be programmed to select bandgap enabled. Core VDD voltage levels for the Core LDO low power regulator can only be changed when the CORE LDO Drive Strength set as Normal.
base | SPC peripheral base address. |
option | Pointer to the LowPowerModeCoreLdoOption structure. |
|
static |
Set Core LDO VDD Regulator Drive Strength in Low power mode.
base | SPC peripheral base address. |
driveStrength | Specify drive strength of CORE LDO in low power mode. |
|
static |
Set Core LDO VDD Regulator Voltage level in Low power mode.
base | SPC peripheral base address. |
voltageLevel | Voltage level of CORE LDO Regulator in Low power mode, please refer to CoreLdoVoltageLevel. |
|
static |
Configs all settings of regulators in Low power mode at a time.
base | SPC peripheral base address. |
config | Pointer to LowPowerModeRegulatorsConfig structure. |
|
static |
Configs Low power request output pin.
This function config the low power request output pin
base | SPC peripheral base address. |
config | Pointer the spc_lowpower_request_config_t structure. |
|
inlinestatic |
|
static |
Set SRAM operate voltage.
base | SPC peripheral base address. |
config | The pointer to SramVoltageConfig, specifies the configuration of sram voltage. |
|
static |
Set system VDD Low-voltage level selection.
This function selects the system VDD low-voltage level. Changing system VDD low-voltage level must be done after disabling the System VDD low voltage reset and interrupt.
base | SPC peripheral base address. |
level | System VDD Low-Voltage level selection. |
|
static |
Configs SYS voltage detect options.
This function config SYS voltage detect options.
base | SPC peripheral base address. |
config | Pointer to SystemVoltageDetectConfig structure. |
|
inlinestaticconstexpr |
SRAMCTL - ACK.
SRAM Control - SRAM Voltage Update Request Acknowledge
|
inlinestaticconstexpr |
SRAMCTL - REQ.
SRAM Control - SRAM Voltage Update Request
|
inlinestaticconstexpr |
SRAMCTL - VSM.
SRAM Control - Voltage Select Margin
|
inlinestaticconstexpr |
SRAMRETLDO_CNTRL - SRAM_RET_EN.
SRAM Retention LDO Control - SRAM Retention
|
inlinestaticconstexpr |
SRAMRETLDO_CNTRL - SRAMLDO_ON.
SRAM Retention LDO Control - SRAM LDO Regulator Enable
|
inlinestaticconstexpr |
SRAMRETLDO_REFTRIM - REFTRIM.
SRAM Retention Reference Trim - Reference Trim. Voltage range is around 0.48V - 0.85V. Trim step is 12 mV.
|
inlinestatic |
Trims SRAM retention regulator reference voltage, trim step is 12 mV, range is around 0.48V to 0.85V.
base | SPC peripheral base address. |
trimValue | Reference voltage trim value. |
|
inlinestatic |
Unlocks Core voltage detect reset setting.
This function unlocks core voltage detect reset setting. If locks the Core voltage detect reset setting, invoking this function to unlock.
base | SPC peripheral base address. |
|
inlinestatic |
Unlock System voltage detect reset setting.
This function unlocks system voltage detect reset setting. If locks the System voltage detect reset setting, invoking this function to unlock.
base | SPC peripheral base address. |
|
inlinestaticconstexpr |
VD_CORE_CFG - LOCK.
Core Voltage Detect Configuration - Core Voltage Detect Reset Enable Lock
|
inlinestaticconstexpr |
VD_CORE_CFG - LVDIE.
Core Voltage Detect Configuration - Core LVD Interrupt Enable
|
inlinestaticconstexpr |
VD_CORE_CFG - LVDRE.
Core Voltage Detect Configuration - Core LVD Reset Enable
|
inlinestaticconstexpr |
VD_STAT - COREVDD_LVDF.
Voltage Detect Status - Core Low-Voltage Detect Flag
|
inlinestaticconstexpr |
VD_STAT - SYSVDD_HVDF.
Voltage Detect Status - System HVD Flag
|
inlinestaticconstexpr |
VD_STAT - SYSVDD_LVDF.
Voltage Detect Status - System Low-Voltage Detect Flag
|
inlinestaticconstexpr |
VD_SYS_CFG - HVDIE.
System Voltage Detect Configuration - System HVD Interrupt Enable
|
inlinestaticconstexpr |
VD_SYS_CFG - HVDRE.
System Voltage Detect Configuration - System HVD Reset Enable
|
inlinestaticconstexpr |
VD_SYS_CFG - LOCK.
System Voltage Detect Configuration - System Voltage Detect Reset Enable Lock
|
inlinestaticconstexpr |
VD_SYS_CFG - LVDIE.
System Voltage Detect Configuration - System LVD Interrupt Enable
|
inlinestaticconstexpr |
VD_SYS_CFG - LVDRE.
System Voltage Detect Configuration - System LVD Reset Enable
|
inlinestaticconstexpr |
VD_SYS_CFG - LVSEL.
System Voltage Detect Configuration - System Low-Voltage Level Select
|
inlinestaticconstexpr |
VERID - FEATURE.
Version ID - Feature Specification Number
|
inlinestaticconstexpr |
VERID - MAJOR.
Version ID - Major Version Number
|
inlinestaticconstexpr |
VERID - MINOR.
Version ID - Minor Version Number