Lines Matching refs:structNum

162                                                         uint8_t structNum,  in Cy_EvtGen_InitStruct()  argument
168 if ((NULL != base) && (NULL != configStruct) && (EVTGEN_COMP_STRUCT_NR > structNum)) in Cy_EvtGen_InitStruct()
173 tempCompStructCompCTL = base->COMP_STRUCT[structNum].COMP_CTL; in Cy_EvtGen_InitStruct()
188 …base->COMP_STRUCT[structNum].COMP0 = (uint32_t) (tempCounterValue + (uint64_t) configStruct->value… in Cy_EvtGen_InitStruct()
193 …base->COMP_STRUCT[structNum].COMP1 = (uint32_t)(tempCounterValue + (uint64_t)configStruct->valueDe… in Cy_EvtGen_InitStruct()
197 base->COMP_STRUCT[structNum].COMP_CTL = tempCompStructCompCTL; in Cy_EvtGen_InitStruct()
199 Cy_EvtGen_SetStructInterruptMask(base, structNum); in Cy_EvtGen_InitStruct()
202 Cy_EvtGen_SetStructInterruptDeepSleepMask(base, structNum); in Cy_EvtGen_InitStruct()
223 void Cy_EvtGen_DeinitStruct(EVTGEN_Type *base, uint8_t structNum) in Cy_EvtGen_DeinitStruct() argument
226 CY_ASSERT_L1(CY_EVTGEN_IS_STRUCTNUM_VALID(structNum)); in Cy_EvtGen_DeinitStruct()
228 base->COMP_STRUCT[structNum].COMP_CTL = 0UL; in Cy_EvtGen_DeinitStruct()
229 base->COMP_STRUCT[structNum].COMP0 = 0UL; in Cy_EvtGen_DeinitStruct()
230 base->COMP_STRUCT[structNum].COMP1 = 0UL; in Cy_EvtGen_DeinitStruct()
249 void Cy_EvtGen_UpdateActiveCompValue(EVTGEN_Type *base, uint8_t structNum, uint32_t newCompareValue) in Cy_EvtGen_UpdateActiveCompValue() argument
251 CY_ASSERT_L1(CY_EVTGEN_IS_STRUCTNUM_VALID(structNum)); in Cy_EvtGen_UpdateActiveCompValue()
256 uint64_t tempCompValue = (uint64_t) EVTGEN0->COMP_STRUCT[structNum].COMP0; in Cy_EvtGen_UpdateActiveCompValue()
259 base->COMP_STRUCT[structNum].COMP_CTL &= ~EVTGEN_COMP_STRUCT_COMP_CTL_COMP0_EN_Msk; in Cy_EvtGen_UpdateActiveCompValue()
260 base->COMP_STRUCT[structNum].COMP0 = (uint32_t) tempCompValue; in Cy_EvtGen_UpdateActiveCompValue()
261 base->COMP_STRUCT[structNum].COMP_CTL |= EVTGEN_COMP_STRUCT_COMP_CTL_COMP0_EN_Msk; in Cy_EvtGen_UpdateActiveCompValue()
280 void Cy_EvtGen_UpdateDeepSleepCompValue(EVTGEN_Type *base, uint8_t structNum, uint32_t newCompareVa… in Cy_EvtGen_UpdateDeepSleepCompValue() argument
282 CY_ASSERT_L1(CY_EVTGEN_IS_STRUCTNUM_VALID(structNum)); in Cy_EvtGen_UpdateDeepSleepCompValue()
287 uint64_t tempCompValue = (uint64_t) EVTGEN0->COMP_STRUCT[structNum].COMP1; in Cy_EvtGen_UpdateDeepSleepCompValue()
290 base->COMP_STRUCT[structNum].COMP_CTL &= ~EVTGEN_COMP_STRUCT_COMP_CTL_COMP1_EN_Msk; in Cy_EvtGen_UpdateDeepSleepCompValue()
291 base->COMP_STRUCT[structNum].COMP1 = (uint32_t) tempCompValue; in Cy_EvtGen_UpdateDeepSleepCompValue()
292 base->COMP_STRUCT[structNum].COMP_CTL |= EVTGEN_COMP_STRUCT_COMP_CTL_COMP1_EN_Msk; in Cy_EvtGen_UpdateDeepSleepCompValue()