Functions | |
__STATIC_INLINE void | Cy_SysClk_DelayCounterInit (uint16_t delayCount) |
Initializes the programmable delay (PGM_DELAY) counter reload value. More... | |
__STATIC_INLINE void | Cy_SysClk_DelayCounterEnable (void) |
Enables the PGM_DELAY block. More... | |
__STATIC_INLINE bool | Cy_SysClk_DelayCounterIsEnabled (void) |
Checks the PGM_DELAY block enable/disable state. More... | |
__STATIC_INLINE void | Cy_SysClk_DelayCounterDisable (void) |
Disables the PGM_DELAY block. More... | |
__STATIC_INLINE void | Cy_SysClk_DelayCounterReload (void) |
Reloads the PGM_DELAY counter with the delay count value. More... | |
__STATIC_INLINE void Cy_SysClk_DelayCounterInit | ( | uint16_t | delayCount | ) |
Initializes the programmable delay (PGM_DELAY) counter reload value.
This API is available on devices with the CSV Feature (i.e. PSOC 4500S and 4100S Max). Refer to the Device Datasheet to check the CSV feature support.
delayCount | Valid range 0-65535, device default value is 256. Sets the # of counts of IMO clock before system reset is asserted. |
__STATIC_INLINE void Cy_SysClk_DelayCounterEnable | ( | void | ) |
Enables the PGM_DELAY block.
A programmable delay counter starts at delay count value (see Cy_SysClk_DelayCounterInit API) and counts down.
The PGM_DELAY block will assert system reset when the counter reaches zero unless firmware intervenes and reloads the counter using Cy_SysClk_DelayCounterReload() function.
Also for the PGM_DELAY counter proper starting the Cy_SysClk_DelayCounterReload() function should be called before this function.
This API is available on devices with the CSV Feature (i.e. PSOC 4500S and 4100S Max). Refer to the Device Datasheet to check the CSV feature support.
__STATIC_INLINE bool Cy_SysClk_DelayCounterIsEnabled | ( | void | ) |
Checks the PGM_DELAY block enable/disable state.
This API is available on devices with the CSV Feature (i.e. PSOC 4500S and 4100S Max). Refer to the Device TRM to check the CSV feature support.
__STATIC_INLINE void Cy_SysClk_DelayCounterDisable | ( | void | ) |
Disables the PGM_DELAY block.
This API is available on devices with the CSV Feature (i.e. PSOC 4500S and 4100S Max). Refer to the Device Datasheet to check the CSV feature support.
__STATIC_INLINE void Cy_SysClk_DelayCounterReload | ( | void | ) |
Reloads the PGM_DELAY counter with the delay count value.
This API is available on devices with the CSV Feature (i.e. PSOC 4500S and 4100S Max). Refer to the Device Datasheet to check the CSV feature support.
For the PGM_DELAY counter proper functioning, this function should be called before Cy_SysClk_DelayCounterEnable.