Functions | |
__STATIC_INLINE void | Cy_EvtGen_Enable (EVTGEN_Type *base) |
Enable the Event Generator. More... | |
__STATIC_INLINE void | Cy_EvtGen_Disable (EVTGEN_Type *base) |
Disable event generator. More... | |
__STATIC_INLINE void | Cy_EvtGen_SetStructInterrupt (EVTGEN_Type *base, uint8_t structNumber) |
Set interrupt factor of corresponding structure. More... | |
__STATIC_INLINE void | Cy_EvtGen_ClearInterrupt (EVTGEN_Type *base, uint32_t mask) |
Clear the interrupt factor. More... | |
__STATIC_INLINE void | Cy_EvtGen_ClearStructInterrupt (EVTGEN_Type *base, uint8_t structNumber) |
Clear interrupt factor of corresponding structure. More... | |
__STATIC_INLINE void | Cy_EvtGen_SetStructInterruptMask (EVTGEN_Type *base, uint8_t structNumber) |
Set interrupt mask bit of a corresponding structure. More... | |
__STATIC_INLINE bool | Cy_EvtGen_GetStructInterrupt (EVTGEN_Type *base, uint8_t structNumber) |
Get interrupt bit of corresponding structure. More... | |
__STATIC_INLINE bool | Cy_EvtGen_GetStructInterruptMasked (EVTGEN_Type *base, uint8_t structNumber) |
Get interrupt masked bit of corresponding structure. More... | |
__STATIC_INLINE void | Cy_EvtGen_SetStructInterruptDeepSleep (EVTGEN_Type *base, uint8_t structNumber) |
Set deep sleep interrupt factor of corresponding structure. More... | |
__STATIC_INLINE void | Cy_EvtGen_ClearInterruptDeepSleep (EVTGEN_Type *base, uint32_t mask) |
Clear the deep sleep interrupt factor. More... | |
__STATIC_INLINE void | Cy_EvtGen_ClearStructInterruptDeepSleep (EVTGEN_Type *base, uint8_t structNumber) |
Clear deep sleep interrupt factor of corresponding structure. More... | |
__STATIC_INLINE void | Cy_EvtGen_SetStructInterruptDeepSleepMask (EVTGEN_Type *base, uint8_t structNumber) |
Set deep sleep interrupt mask bit of a corresponding structure. More... | |
__STATIC_INLINE bool | Cy_EvtGen_GetStructInterruptDeepSleep (EVTGEN_Type *base, uint8_t structNumber) |
Get deep sleep interrupt bit of corresponding structure. More... | |
__STATIC_INLINE bool | Cy_EvtGen_GetStructInterruptDeepSleepMasked (EVTGEN_Type *base, uint8_t structNumber) |
Get deep sleep interrupt masked bit of corresponding structure. More... | |
__STATIC_INLINE uint32_t | Cy_EvtGen_GetComp0Status (EVTGEN_Type *base) |
Get comparator 0 status. More... | |
__STATIC_INLINE uint32_t | Cy_EvtGen_GetComp1Status (EVTGEN_Type *base) |
Get comparator 1 status. More... | |
__STATIC_INLINE cy_en_evtgen_counter_status_t | Cy_EvtGen_GetCounterStatus (EVTGEN_Type *base) |
Get active counter status. More... | |
__STATIC_INLINE uint32_t | Cy_EvtGen_GetCounterValue (EVTGEN_Type *base) |
Get counter value. More... | |
__STATIC_INLINE bool | Cy_EvtGen_GetRatioStatus (EVTGEN_Type *base) |
Get status ratio value. More... | |
__STATIC_INLINE bool | Cy_EvtGen_GetCompActiveEnabledStatus (EVTGEN_Type *base, uint8_t structNum) |
Get status active struct comparator enable. More... | |
__STATIC_INLINE bool | Cy_EvtGen_GetCompDeepSleepEnabledStatus (EVTGEN_Type *base, uint8_t structNum) |
Get status Deep Sleep struct comparator enable. More... | |
__STATIC_INLINE bool | Cy_EvtGen_IsCompStructEnabled (EVTGEN_Type *base, uint8_t structNum) |
Get status struct comparator enable. More... | |
cy_en_evtgen_status_t | Cy_EvtGen_Init (EVTGEN_Type *base, const cy_stc_evtgen_config_t *config) |
Initialize the event generator. More... | |
void | Cy_EvtGen_DeInit (EVTGEN_Type *base) |
Deinitialize event generator. More... | |
cy_en_evtgen_status_t | Cy_EvtGen_InitStruct (EVTGEN_Type *base, uint8_t structNum, const cy_stc_evtgen_struct_config_t *configStruct) |
Initialize a comparator structure. More... | |
void | Cy_EvtGen_DeinitStruct (EVTGEN_Type *base, uint8_t structNum) |
Deinitialize event generator struct. More... | |
void | Cy_EvtGen_UpdateActiveCompValue (EVTGEN_Type *base, uint8_t structNum, uint32_t newCompareValue) |
Update active comparator value corresponding comparator structure. More... | |
void | Cy_EvtGen_UpdateDeepSleepCompValue (EVTGEN_Type *base, uint8_t structNum, uint32_t newCompareValue) |
Update Deep Sleep comparator value corresponding comparator structure. More... | |
__STATIC_INLINE void Cy_EvtGen_Enable | ( | EVTGEN_Type * | base | ) |
Enable the Event Generator.
base | Pointer to structure describing registers |
__STATIC_INLINE void Cy_EvtGen_Disable | ( | EVTGEN_Type * | base | ) |
Disable event generator.
base | Pointer to structure describing registers |
__STATIC_INLINE void Cy_EvtGen_SetStructInterrupt | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Set interrupt factor of corresponding structure.
base | Pointer to structure describing registers |
structNumber | Number of structure. The interrupt factor of that is to be set. Valid range from 0 to 15. |
__STATIC_INLINE void Cy_EvtGen_ClearInterrupt | ( | EVTGEN_Type * | base, |
uint32_t | mask | ||
) |
Clear the interrupt factor.
base | Pointer to structure describing registers |
mask | Each bit of this parameter corresponds to each structure factor to be clear |
__STATIC_INLINE void Cy_EvtGen_ClearStructInterrupt | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Clear interrupt factor of corresponding structure.
base | Pointer to structure describing registers |
structNumber | Number of structure. The factor of that is to be clear. Valid range from 0 to 15. |
__STATIC_INLINE void Cy_EvtGen_SetStructInterruptMask | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Set interrupt mask bit of a corresponding structure.
base | Pointer to structure describing registers |
structNumber | Number of structure. The mask bit of that is to be set. Valid range from 0 to 15. |
__STATIC_INLINE bool Cy_EvtGen_GetStructInterrupt | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Get interrupt bit of corresponding structure.
base | Pointer to structure describing registers |
structNumber | Number of structure. The interrupt factor of the structure is to be returned. Valid range from 0 to 15. |
__STATIC_INLINE bool Cy_EvtGen_GetStructInterruptMasked | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Get interrupt masked bit of corresponding structure.
base | Pointer to structure describing registers |
structNumber | Number of structure. The masked bit of the structure is to be returned. Valid range from 0 to 15. |
__STATIC_INLINE void Cy_EvtGen_SetStructInterruptDeepSleep | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Set deep sleep interrupt factor of corresponding structure.
base | Pointer to structure describing registers |
structNumber | Number of structure. The interrupt factor of that is to be set. Valid range from 0 to 15. |
__STATIC_INLINE void Cy_EvtGen_ClearInterruptDeepSleep | ( | EVTGEN_Type * | base, |
uint32_t | mask | ||
) |
Clear the deep sleep interrupt factor.
base | Pointer to structure describing registers |
mask | Each bit of this parameter corresponds to each structure factor to be clear. |
__STATIC_INLINE void Cy_EvtGen_ClearStructInterruptDeepSleep | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Clear deep sleep interrupt factor of corresponding structure.
base | Pointer to structure describing registers |
structNumber | Number of structure. The factor of that is to be clear. Valid range from 0 to 15. |
__STATIC_INLINE void Cy_EvtGen_SetStructInterruptDeepSleepMask | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Set deep sleep interrupt mask bit of a corresponding structure.
base | Pointer to structure describing registers |
structNumber | Number of structure. The deep sleep mask bit of that is to be set. Valid range from 0 to 15. |
__STATIC_INLINE bool Cy_EvtGen_GetStructInterruptDeepSleep | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Get deep sleep interrupt bit of corresponding structure.
base | Pointer to structure describing registers. |
structNumber | Number of structure. The deep sleep interrupt factor of the structure is to be returned. Valid range from 0 to 15. |
__STATIC_INLINE bool Cy_EvtGen_GetStructInterruptDeepSleepMasked | ( | EVTGEN_Type * | base, |
uint8_t | structNumber | ||
) |
Get deep sleep interrupt masked bit of corresponding structure.
base | Pointer to structure describing registers. |
structNumber | Number of structure. The deep sleep masked bit of the structure is to be returned. Valid range from 0 to 15. |
__STATIC_INLINE uint32_t Cy_EvtGen_GetComp0Status | ( | EVTGEN_Type * | base | ) |
Get comparator 0 status.
base | Pointer to structure describing registers. |
__STATIC_INLINE uint32_t Cy_EvtGen_GetComp1Status | ( | EVTGEN_Type * | base | ) |
Get comparator 1 status.
base | Pointer to structure describing registers. |
__STATIC_INLINE cy_en_evtgen_counter_status_t Cy_EvtGen_GetCounterStatus | ( | EVTGEN_Type * | base | ) |
Get active counter status.
base | Pointer to structure describing registers. |
__STATIC_INLINE uint32_t Cy_EvtGen_GetCounterValue | ( | EVTGEN_Type * | base | ) |
Get counter value.
base | Pointer to structure describing registers. |
__STATIC_INLINE bool Cy_EvtGen_GetRatioStatus | ( | EVTGEN_Type * | base | ) |
Get status ratio value.
base | Pointer to structure describing registers. |
__STATIC_INLINE bool Cy_EvtGen_GetCompActiveEnabledStatus | ( | EVTGEN_Type * | base, |
uint8_t | structNum | ||
) |
Get status active struct comparator enable.
base | Pointer to structure describing registers. |
structNum | Structure number for status active comparator enable. Valid range from 0 to 15. |
__STATIC_INLINE bool Cy_EvtGen_GetCompDeepSleepEnabledStatus | ( | EVTGEN_Type * | base, |
uint8_t | structNum | ||
) |
Get status Deep Sleep struct comparator enable.
base | Pointer to structure describing registers. |
structNum | Structure number for status Deep Sleep comparator enable. Valid range from 0 to 15. |
__STATIC_INLINE bool Cy_EvtGen_IsCompStructEnabled | ( | EVTGEN_Type * | base, |
uint8_t | structNum | ||
) |
Get status struct comparator enable.
base | Pointer to structure describing registers. |
structNum | Structure number for status comparator enable. Valid range from 0 to 15. |
cy_en_evtgen_status_t Cy_EvtGen_Init | ( | EVTGEN_Type * | base, |
const cy_stc_evtgen_config_t * | config | ||
) |
Initialize the event generator.
base | Pointer to structure describing registers |
config | Pointer to the event generator config structure base address |
void Cy_EvtGen_DeInit | ( | EVTGEN_Type * | base | ) |
Deinitialize event generator.
base | Pointer to structure describing registers |
cy_en_evtgen_status_t Cy_EvtGen_InitStruct | ( | EVTGEN_Type * | base, |
uint8_t | structNum, | ||
const cy_stc_evtgen_struct_config_t * | configStruct | ||
) |
Initialize a comparator structure.
base | Pointer to structure describing registers |
structNum | Number of structure to be initialized. Valid range from 0 to 16. |
configStruct | Pointer to the event generator structure config structure base address |
void Cy_EvtGen_DeinitStruct | ( | EVTGEN_Type * | base, |
uint8_t | structNum | ||
) |
Deinitialize event generator struct.
base | Pointer to structure describing registers |
structNum | Number of structure to be de-initialized. Valid range from 0 to 16. |
void Cy_EvtGen_UpdateActiveCompValue | ( | EVTGEN_Type * | base, |
uint8_t | structNum, | ||
uint32_t | newCompareValue | ||
) |
Update active comparator value corresponding comparator structure.
base | Pointer to structure describing registers |
structNum | Number of structure to be update value. Valid range from 0 to 15. |
newCompareValue | Value for update active comparator value. |
void Cy_EvtGen_UpdateDeepSleepCompValue | ( | EVTGEN_Type * | base, |
uint8_t | structNum, | ||
uint32_t | newCompareValue | ||
) |
Update Deep Sleep comparator value corresponding comparator structure.
base | Pointer to structure describing registers |
structNum | Number of structure to be update value. Valid range from 0 to 15. |
newCompareValue | Value for update Deep Sleep comparator value. |