Functions | |
cy_en_SysFault_status_t | Cy_SysFault_Init (FAULT_STRUCT_Type *base, cy_stc_SysFault_t *config) |
Initializes the SysFault for recording faults. More... | |
void | Cy_SysFault_ClearStatus (FAULT_STRUCT_Type *base) |
Clears status register. More... | |
cy_en_SysFault_source_t | Cy_SysFault_GetErrorSource (FAULT_STRUCT_Type *base) |
Returns the source of error for the Fault. More... | |
uint32_t | Cy_SysFault_GetFaultData (FAULT_STRUCT_Type *base, cy_en_SysFault_Data_t dataSet) |
Returns the Fault information for the provided dataSet. More... | |
uint32_t | Cy_SysFault_GetPendingFault (FAULT_STRUCT_Type *base, cy_en_SysFault_Set_t pendingFault) |
Returns the sources of pending fault that are not captured. More... | |
void | Cy_SysFault_SetMaskByIdx (FAULT_STRUCT_Type *base, cy_en_SysFault_source_t idx) |
Enable the Fault to be captured. More... | |
void | Cy_SysFault_ClearMaskByIdx (FAULT_STRUCT_Type *base, cy_en_SysFault_source_t idx) |
Disable the faults to be captured. More... | |
uint32_t | Cy_SysFault_GetInterruptStatus (FAULT_STRUCT_Type *base) |
Returns the status of the interrupt. More... | |
void | Cy_SysFault_ClearInterrupt (FAULT_STRUCT_Type *base) |
Clears Active Interrupt Source. More... | |
void | Cy_SysFault_SetInterrupt (FAULT_STRUCT_Type *base) |
Triggers an interrupt via a software write. More... | |
void | Cy_SysFault_SetInterruptMask (FAULT_STRUCT_Type *base) |
Sets an interrupt mask. More... | |
void | Cy_SysFault_ClearInterruptMask (FAULT_STRUCT_Type *base) |
Clears an interrupt mask. More... | |
uint32_t | Cy_SysFault_GetInterruptMask (FAULT_STRUCT_Type *base) |
Returns the interrupt mask. More... | |
uint32_t | Cy_SysFault_GetInterruptStatusMasked (FAULT_STRUCT_Type *base) |
Returns whether masked interrupt triggered the interrupt. More... | |
cy_en_SysFault_status_t Cy_SysFault_Init | ( | FAULT_STRUCT_Type * | base, |
cy_stc_SysFault_t * | config | ||
) |
Initializes the SysFault for recording faults.
base | The pointer to a Fault structure instance. |
config | The pointer to a Configuration structure. |
void Cy_SysFault_ClearStatus | ( | FAULT_STRUCT_Type * | base | ) |
Clears status register.
base | The pointer to a Fault structure instance. |
cy_en_SysFault_source_t Cy_SysFault_GetErrorSource | ( | FAULT_STRUCT_Type * | base | ) |
Returns the source of error for the Fault.
base | The pointer to a Fault structure instance. |
uint32_t Cy_SysFault_GetFaultData | ( | FAULT_STRUCT_Type * | base, |
cy_en_SysFault_Data_t | dataSet | ||
) |
Returns the Fault information for the provided dataSet.
base | The pointer to a Fault structure instance. |
dataSet | Instance of data register. |
uint32_t Cy_SysFault_GetPendingFault | ( | FAULT_STRUCT_Type * | base, |
cy_en_SysFault_Set_t | pendingFault | ||
) |
Returns the sources of pending fault that are not captured.
base | The pointer to a Fault structure instance. |
pendingFault | Instance of PENDING register. PENDING0 returns the occurred pending Faults in the range of 0-31 Fault ID. |
void Cy_SysFault_SetMaskByIdx | ( | FAULT_STRUCT_Type * | base, |
cy_en_SysFault_source_t | idx | ||
) |
Enable the Fault to be captured.
base | The pointer to a Fault structure instance. |
idx | The Fault id to be set in the mask register. |
void Cy_SysFault_ClearMaskByIdx | ( | FAULT_STRUCT_Type * | base, |
cy_en_SysFault_source_t | idx | ||
) |
Disable the faults to be captured.
base | The pointer to a Fault structure instance. |
idx | The fault id to be cleared in the mask register. |
uint32_t Cy_SysFault_GetInterruptStatus | ( | FAULT_STRUCT_Type * | base | ) |
Returns the status of the interrupt.
base | The pointer to a Fault structure instance. |
void Cy_SysFault_ClearInterrupt | ( | FAULT_STRUCT_Type * | base | ) |
Clears Active Interrupt Source.
base | The pointer to a Fault structure instance. |
void Cy_SysFault_SetInterrupt | ( | FAULT_STRUCT_Type * | base | ) |
Triggers an interrupt via a software write.
base | The pointer to a Fault structure instance. |
void Cy_SysFault_SetInterruptMask | ( | FAULT_STRUCT_Type * | base | ) |
Sets an interrupt mask.
base | The pointer to a Fault structure instance. |
void Cy_SysFault_ClearInterruptMask | ( | FAULT_STRUCT_Type * | base | ) |
Clears an interrupt mask.
base | The pointer to a Fault structure instance. |
uint32_t Cy_SysFault_GetInterruptMask | ( | FAULT_STRUCT_Type * | base | ) |
Returns the interrupt mask.
base | The pointer to a Fault structure instance. |
uint32_t Cy_SysFault_GetInterruptStatusMasked | ( | FAULT_STRUCT_Type * | base | ) |
Returns whether masked interrupt triggered the interrupt.
base | The pointer to a Fault structure instance. |