Functions | |
void | UUPS_clearInterrupt (uint16_t baseAddress, uint8_t mask) |
Clears UUPS interrupts. More... | |
void | UUPS_enableInterrupt (uint16_t baseAddress, uint8_t mask) |
Enables UUPS interrupts. More... | |
void | UUPS_disableInterrupt (uint16_t baseAddress, uint8_t mask) |
Disables selected UUPS interrupt sources. More... | |
uint8_t | UUPS_getInterruptStatus (uint16_t baseAddress, uint16_t mask) |
Gets the current UUPS interrupt status. More... | |
void | UUPS_stopMeasurement (uint16_t baseAddress) |
Stops USS measurement. More... | |
void | UUPS_turnOffPower (uint16_t baseAddress) |
Turns down USS power. More... | |
void | UUPS_turnOnPower (uint16_t baseAddress, uint16_t triggerSource) |
Turns on USS power and PLL. More... | |
void | UUPS_enableASQ (uint16_t baseAddress) |
Enables USS acquistion sequencer (ASQ). More... | |
uint8_t | UUPS_getPowerModeStatus (uint16_t baseAddress) |
Goes to the specified power mode. More... | |
uint8_t | UUPS_isBusy (uint16_t baseAddress) |
Returns current USS busy status. More... | |
uint8_t | UUPS_isLDOReady (uint16_t baseAddress) |
Returns whether USS LDO is ready. More... | |
void | UUPS_setLowPowerBiasHoldOffDelay (uint16_t baseAddress, uint16_t holdOffDelay) |
Sets the low power bias hold off delay. More... | |
void | UUPS_holdUSSInResetState (uint16_t baseAddress) |
Hold USS (and sub modules) logic in reset state. More... | |
void | UUPS_releaseUSSFromResetState (uint16_t baseAddress) |
Release USS (and sub modules) from reset state for operation. More... | |
void UUPS_clearInterrupt | ( | uint16_t | baseAddress, |
uint8_t | mask | ||
) |
Clears UUPS interrupts.
The UUPS interrupt source is cleared, so that it no longer asserts. If the interrupt is not enabled, the corresponding bit in the RIS register bit will be cleared. If the interrupt is enabled, the corresponding bit both MIS and RIS registers will be both cleared.
baseAddress | is the base address of the UUPS module. |
mask | is the logical OR of any of the following:
|
void UUPS_disableInterrupt | ( | uint16_t | baseAddress, |
uint8_t | mask | ||
) |
Disables selected UUPS interrupt sources.
Disables the indicated UUPS interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor.
baseAddress | is the base address of the UUPS module. |
mask | is the logical OR of any of the following:
|
void UUPS_enableASQ | ( | uint16_t | baseAddress | ) |
Enables USS acquistion sequencer (ASQ).
This enable the USS acquistion sequencer (ASQ). ASQ must be enabled before applying a USS_PWRREQ signal.
baseAddress | is the base address of the UUPS module. |
void UUPS_enableInterrupt | ( | uint16_t | baseAddress, |
uint8_t | mask | ||
) |
Enables UUPS interrupts.
Enables the indicated UUPS interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor. Does not clear interrupt flags.
baseAddress | is the base address of the UUPS module. |
mask | is the logical OR of any of the following:
|
uint8_t UUPS_getInterruptStatus | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Gets the current UUPS interrupt status.
This returns the interrupt status for the UUPS module based on which flag is passed.
baseAddress | is the base address of the UUPS module. |
mask | is the logical OR of any of the following:
|
uint8_t UUPS_getPowerModeStatus | ( | uint16_t | baseAddress | ) |
Goes to the specified power mode.
This function makes USS go to the specified power mode.
baseAddress | is the base address of the UUPS module. |
powerMode | is the desired power mode to go to. |
This gets current USS power mode status.
baseAddress | is the base address of the UUPS module. |
void UUPS_holdUSSInResetState | ( | uint16_t | baseAddress | ) |
Hold USS (and sub modules) logic in reset state.
Useful if HSPLL gets stuck. Cycle USS into reset state with this function, and then release from reset state with UUPS_releaseUSSFromResetState. USS is default released from reset, and ready for operation (still required to be powered up).
baseAddress | is the base address of the UUPS module. |
uint8_t UUPS_isBusy | ( | uint16_t | baseAddress | ) |
Returns current USS busy status.
This returns current USS busy status depending on whether USS is performing a measurement.
baseAddress | is the base address of the UUPS module. |
uint8_t UUPS_isLDOReady | ( | uint16_t | baseAddress | ) |
Returns whether USS LDO is ready.
This returns USS LDO ready status.
baseAddress | is the base address of the UUPS module. |
void UUPS_releaseUSSFromResetState | ( | uint16_t | baseAddress | ) |
Release USS (and sub modules) from reset state for operation.
Useful if HSPLL gets stuck. Cycle USS into reset state with this UUPS_holdUSSInResetState, and then release from reset state with this function. USS is default released from reset, and ready for operation (still required to be powered up).
baseAddress | is the base address of the UUPS module. |
void UUPS_setLowPowerBiasHoldOffDelay | ( | uint16_t | baseAddress, |
uint16_t | holdOffDelay | ||
) |
Sets the low power bias hold off delay.
Defines the duration of the hold off delay for low power bias mode. Low power bias mode can be enabled from SAPH module. The hold off delay is inserted from "OFF state" to "READY state" and from "STANDBY state" to "READY state". Affects extra delay in Register Mode and Auto Mode. Reset type: PUC
baseAddress | is the base address of the UUPS module. |
holdOffDelay | is the desired amount of additional hold off delay. 512 REFCLKS = ~100us, 1024 REFCLKS = ~200us, 1536 REFCLKS = ~300us. They map to the same values. Valid values are:
|
void UUPS_stopMeasurement | ( | uint16_t | baseAddress | ) |
Stops USS measurement.
This stops the USS current measurement.
baseAddress | is the base address of the UUPS module. |
void UUPS_turnOffPower | ( | uint16_t | baseAddress | ) |
Turns down USS power.
This stops the current measurement and turn off USS module.
baseAddress | is the base address of the UUPS module. |
void UUPS_turnOnPower | ( | uint16_t | baseAddress, |
uint16_t | triggerSource | ||
) |
Turns on USS power and PLL.
This turns on USS power and PLL with specified power-up trigger source. When an external trigger source is selected, this function has no effect.
baseAddress | is the base address of the UUPS module. |
triggerSource | is the specified power-up trigger source. Valid values are:
|