Functions | |
void | Cy_CRWDT_Init (void) |
Initializes the Challenge Response WDT (CRWDT) to its default state. More... | |
bool | Cy_CRWDT_IsEnabled (void) |
Returns the Challenge Response WDT (CRWDT) HW actual status. More... | |
void | Cy_CRWDT_Enable (void) |
Enables the Challenge Response WDT (CRWDT) More... | |
void | Cy_CRWDT_Disable (void) |
Disables the Challenge Response WDT (CRWDT) More... | |
uint8_t | Cy_CRWDT_GetChallenge (void) |
Challenge/Response WatchDog Challenge value. More... | |
uint8_t | Cy_CRWDT_CalculateResponse (uint8_t challengeValue) |
Calculates the response value according to the challenge value. More... | |
void | Cy_CRWDT_SetResponse (uint8_t responseValue) |
Sets the response value to service the Challenge Response WDT (CRWDT) More... | |
uint32_t | Cy_CRWDT_GetUpCnt (void) |
Get Up counter from Challenge Response WDT (CRWDT) More... | |
void | Cy_CRWDT_SetEarlyLimit (uint32_t early) |
Set Early limit for Challenge Response WDT (CRWDT) action. More... | |
void | Cy_CRWDT_SetWarnLimit (uint32_t warn) |
Set Warn limit for Challenge Response WDT (CRWDT) action. More... | |
void | Cy_CRWDT_SetLateLimit (uint32_t late) |
Set Late limit for Challenge Response WDT (CRWDT) action. More... | |
void | Cy_CRWDT_SetAction (uint32_t action) |
Enabling one or more actions for the CRWDT by specifying a composite action bitmask. More... | |
bool | Cy_CRWDT_GetInterruptStatus (void) |
Get interrupt status for Challenge Response WDT (CRWDT) More... | |
void | Cy_CRWDT_SetInterrupt (void) |
Triggers an interrupt with software. More... | |
void | Cy_CRWDT_ClearInterrupt (void) |
Clears the CRWDT interrupt status. More... | |
void | Cy_CRWDT_SetInterruptMask (bool enable) |
Sets the Challenge Response WDT (CRWDT) interrupt mask. More... | |
bool | Cy_CRWDT_GetInterruptStatusMasked (void) |
Reads the Challenge Response WDT (CRWDT) masked interrupt status. More... | |
void Cy_CRWDT_Init | ( | void | ) |
Initializes the Challenge Response WDT (CRWDT) to its default state.
bool Cy_CRWDT_IsEnabled | ( | void | ) |
Returns the Challenge Response WDT (CRWDT) HW actual status.
void Cy_CRWDT_Enable | ( | void | ) |
Enables the Challenge Response WDT (CRWDT)
void Cy_CRWDT_Disable | ( | void | ) |
Disables the Challenge Response WDT (CRWDT)
uint8_t Cy_CRWDT_GetChallenge | ( | void | ) |
Challenge/Response WatchDog Challenge value.
uint8_t Cy_CRWDT_CalculateResponse | ( | uint8_t | challengeValue | ) |
Calculates the response value according to the challenge value.
challengeValue | - Challenge CRC-8 code. |
void Cy_CRWDT_SetResponse | ( | uint8_t | responseValue | ) |
Sets the response value to service the Challenge Response WDT (CRWDT)
responseValue | - calculated response value to service CRWDT |
uint32_t Cy_CRWDT_GetUpCnt | ( | void | ) |
Get Up counter from Challenge Response WDT (CRWDT)
void Cy_CRWDT_SetEarlyLimit | ( | uint32_t | early | ) |
Set Early limit for Challenge Response WDT (CRWDT) action.
early | - limit for early action (24-bit) |
void Cy_CRWDT_SetWarnLimit | ( | uint32_t | warn | ) |
Set Warn limit for Challenge Response WDT (CRWDT) action.
warn | - limit for late action (24-bit) |
void Cy_CRWDT_SetLateLimit | ( | uint32_t | late | ) |
Set Late limit for Challenge Response WDT (CRWDT) action.
late | - limit for late action (24-bit) |
void Cy_CRWDT_SetAction | ( | uint32_t | action | ) |
Enabling one or more actions for the CRWDT by specifying a composite action bitmask.
action | - The type of action to be activated |
Actions details:
bool Cy_CRWDT_GetInterruptStatus | ( | void | ) |
Get interrupt status for Challenge Response WDT (CRWDT)
void Cy_CRWDT_SetInterrupt | ( | void | ) |
Triggers an interrupt with software.
Can be used to set interrupts for firmware testing.
void Cy_CRWDT_ClearInterrupt | ( | void | ) |
Clears the CRWDT interrupt status.
void Cy_CRWDT_SetInterruptMask | ( | bool | enable | ) |
Sets the Challenge Response WDT (CRWDT) interrupt mask.
This API enables or disables interrupt handling, but not enable or disable interrupt itself.
enable | true : to masking interrupt. After masking the interrupt, it is not passed to the CPU. false : to reset masking. After unmasking the interrupt, it is passed to CPU. |
bool Cy_CRWDT_GetInterruptStatusMasked | ( | void | ) |
Reads the Challenge Response WDT (CRWDT) masked interrupt status.