Functions | |
void | Cy_SysPm_ReghcSelectMode (cy_en_syspm_reghc_mode_t mode) |
Selects one of the supported REGHC modes. More... | |
cy_en_syspm_reghc_mode_t | Cy_SysPm_ReghcGetMode (void) |
Gets the supported REGHC modes. More... | |
void | Cy_SysPm_ReghcSelectDriveOut (cy_en_syspm_reghc_drive_out_t drvOut) |
Selects DRV_OUT setting. More... | |
cy_en_syspm_reghc_drive_out_t | Cy_SysPm_ReghcGetDriveOut (void) |
Gets the DRV_OUT setting. More... | |
void | Cy_SysPm_ReghcAdjustOutputVoltage (cy_en_syspm_reghc_vadj_t trim) |
Selects regulator output voltage adjustment. More... | |
void | Cy_SysPm_ReghcDisableIntSupplyWhileExtActive (void) |
Internal Active Linear Regulator disabled after PMIC enabled. More... | |
void | Cy_SysPm_ReghcEnableIntSupplyWhileExtActive (void) |
Internal Active Linear Regulator kept enabled. More... | |
void | Cy_SysPm_ReghcDisablePmicEnableOutput (void) |
Disables "PMIC enable" output. More... | |
void | Cy_SysPm_ReghcEnablePmicEnableOutput (bool polarity) |
Enables "PMIC enable" output. More... | |
void | Cy_SysPm_ReghcEnablePmicStatusInput (bool polarity) |
Enables receiving status from PMIC. More... | |
void | Cy_SysPm_ReghcDisablePmicStatusInput (void) |
Disables PMIC status input. More... | |
void | Cy_SysPm_ReghcSetPmicStatusWaitTime (uint16_t waitTime) |
Wait count in 4us steps after PMIC status ok. More... | |
bool | Cy_SysPm_ReghcIsConfigured (void) |
Indicates that the REGHC has been configured. More... | |
void | Cy_SysPm_ReghcSetConfigured (void) |
Set REGHC is configured. More... | |
void | Cy_SysPm_ReghcDisable (void) |
Disables REGHC. More... | |
void | Cy_SysPm_ReghcEnable (void) |
Enables REGHC. More... | |
void | Cy_SysPm_ReghcDisablePmicStatusTimeout (void) |
Disables timeout when waiting for REGHC_PMIC_STATUS_OK. More... | |
void | Cy_SysPm_ReghcEnablePmicStatusTimeout (uint8_t timeout) |
Enables timeout while waiting for REGHC_PMIC_STATUS_OK==1 when switching to PMIC. More... | |
bool | Cy_SysPm_ReghcIsEnabled (void) |
Indicates the state of the REGHC enable/disable sequencer. More... | |
bool | Cy_SysPm_ReghcIsStatusOk (void) |
Indicates the PMIC status is ok. More... | |
bool | Cy_SysPm_ReghcIsSequencerBusy (void) |
Indicates whether the REGHC circuit is busy. More... | |
void | Cy_SysPm_ReghcDisableVAdj (void) |
Device does not generate VADJ, and it must not be part of the PMIC feedback loop. More... | |
void | Cy_SysPm_ReghcEnableVAdj (void) |
Device generates VADJ when PMIC is enabled. More... | |
void | Cy_SysPm_ReghcDisablePmicInDeepSleep (void) |
Device operates from internal regulators during DEEPSLEEP. More... | |
void | Cy_SysPm_ReghcEnablePmicInDeepSleep (void) |
DEEPSLEEP transition does not change PMIC enable. More... | |
bool | Cy_SysPm_ReghcIsOcdWithinLimits (void) |
Indicates the over-current detector is operating and the current drawn from REGHC is within limits. More... | |
bool | Cy_SysPm_ReghcIsCircuitEnabledAndOperating (void) |
Indicates the REGHC circuit is enabled and operating. More... | |
cy_en_syspm_status_t | Cy_SysPm_ReghcConfigure (cy_en_syspm_reghc_mode_t mode, cy_en_syspm_reghc_vadj_t vadj) |
Configures REGHC. More... | |
cy_en_syspm_status_t | Cy_SysPm_ReghcDeConfigure (void) |
De-Configures REGHC. More... | |
void Cy_SysPm_ReghcSelectMode | ( | cy_en_syspm_reghc_mode_t | mode | ) |
Selects one of the supported REGHC modes.
mode | - PMIC or Pass Transistor |
cy_en_syspm_reghc_mode_t Cy_SysPm_ReghcGetMode | ( | void | ) |
Gets the supported REGHC modes.
void Cy_SysPm_ReghcSelectDriveOut | ( | cy_en_syspm_reghc_drive_out_t | drvOut | ) |
Selects DRV_OUT setting.
drvOut | - cy_en_syspm_reghc_drive_out_t |
cy_en_syspm_reghc_drive_out_t Cy_SysPm_ReghcGetDriveOut | ( | void | ) |
Gets the DRV_OUT setting.
void Cy_SysPm_ReghcAdjustOutputVoltage | ( | cy_en_syspm_reghc_vadj_t | trim | ) |
Selects regulator output voltage adjustment.
trim | - cy_en_syspm_reghc_vadj_t |
void Cy_SysPm_ReghcDisableIntSupplyWhileExtActive | ( | void | ) |
Internal Active Linear Regulator disabled after PMIC enabled.
OCD is disabled.
void Cy_SysPm_ReghcEnableIntSupplyWhileExtActive | ( | void | ) |
Internal Active Linear Regulator kept enabled.
See datasheet for minimum PMIC vccd input to prevent OCD.
void Cy_SysPm_ReghcDisablePmicEnableOutput | ( | void | ) |
Disables "PMIC enable" output.
void Cy_SysPm_ReghcEnablePmicEnableOutput | ( | bool | polarity | ) |
Enables "PMIC enable" output.
polarity | => true - output high, false - output low. |
void Cy_SysPm_ReghcEnablePmicStatusInput | ( | bool | polarity | ) |
Enables receiving status from PMIC.
polarity | => true/false -> receiving high/low means abnormal status. |
void Cy_SysPm_ReghcDisablePmicStatusInput | ( | void | ) |
Disables PMIC status input.
void Cy_SysPm_ReghcSetPmicStatusWaitTime | ( | uint16_t | waitTime | ) |
Wait count in 4us steps after PMIC status ok.
This is used by the hardware sequencer to allow additional settling time before disabling the internal regulator. The LSB is 32 IMO periods which results in a nominal LSB step of 4us.
waitTime | = 0 to 1023 -> (waitTime * 4us) Delay |
bool Cy_SysPm_ReghcIsConfigured | ( | void | ) |
Indicates that the REGHC has been configured.
Do not change REGHC settings after this bit is high.
void Cy_SysPm_ReghcSetConfigured | ( | void | ) |
Set REGHC is configured.
This is required to apply setting before enabling REGHC.
void Cy_SysPm_ReghcDisable | ( | void | ) |
Disables REGHC.
void Cy_SysPm_ReghcEnable | ( | void | ) |
Enables REGHC.
void Cy_SysPm_ReghcDisablePmicStatusTimeout | ( | void | ) |
Disables timeout when waiting for REGHC_PMIC_STATUS_OK.
void Cy_SysPm_ReghcEnablePmicStatusTimeout | ( | uint8_t | timeout | ) |
Enables timeout while waiting for REGHC_PMIC_STATUS_OK==1 when switching to PMIC.
Timeout expiration triggers reset.
timeout | = 1 - 255 -> (timeout * 128us) delay until reset |
bool Cy_SysPm_ReghcIsEnabled | ( | void | ) |
Indicates the state of the REGHC enable/disable sequencer.
This bit is only valid when REGHC_SEQ_BUSY==0.
bool Cy_SysPm_ReghcIsStatusOk | ( | void | ) |
Indicates the PMIC status is ok.
This includes polarity adjustment according to REGHC_PMIC_STATUS_POLARITY.
bool Cy_SysPm_ReghcIsSequencerBusy | ( | void | ) |
Indicates whether the REGHC circuit is busy.
Indicates the REGHC enable/disable sequencer is busy transitioning to/from REGHC.
void Cy_SysPm_ReghcDisableVAdj | ( | void | ) |
Device does not generate VADJ, and it must not be part of the PMIC feedback loop.
This reduces current by turning off the internal resistor divider that generates VADJ.
void Cy_SysPm_ReghcEnableVAdj | ( | void | ) |
Device generates VADJ when PMIC is enabled.
This allows the feedback loop to compensate for voltage drops in the PCB and package.
void Cy_SysPm_ReghcDisablePmicInDeepSleep | ( | void | ) |
Device operates from internal regulators during DEEPSLEEP.
If PMIC is enabled at the beginning of the DEEPSLEEP transition, hardware changes to the internal regulators and disables the PMIC.
void Cy_SysPm_ReghcEnablePmicInDeepSleep | ( | void | ) |
DEEPSLEEP transition does not change PMIC enable.
bool Cy_SysPm_ReghcIsOcdWithinLimits | ( | void | ) |
Indicates the over-current detector is operating and the current drawn from REGHC is within limits.
OCD is only a choice for transistor mode, and it is disabled for PMIC mode.
bool Cy_SysPm_ReghcIsCircuitEnabledAndOperating | ( | void | ) |
Indicates the REGHC circuit is enabled and operating.
cy_en_syspm_status_t Cy_SysPm_ReghcConfigure | ( | cy_en_syspm_reghc_mode_t | mode, |
cy_en_syspm_reghc_vadj_t | vadj | ||
) |
Configures REGHC.
mode | cy_en_syspm_reghc_mode_t. |
vadj | cy_en_syspm_reghc_vadj_t. |
cy_en_syspm_status_t Cy_SysPm_ReghcDeConfigure | ( | void | ) |
De-Configures REGHC.