Lines Matching refs:hgfxtim
169 HAL_StatusTypeDef HAL_GFXTIM_Init(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_Init() argument
173 if (hgfxtim != NULL) in HAL_GFXTIM_Init()
176 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_Init()
177 assert_param(IS_GFXTIM_SYNC_SRC(hgfxtim->Init.SynchroSrc)); in HAL_GFXTIM_Init()
178 assert_param(IS_GFXTIM_TE_SRC(hgfxtim->Init.TearingEffectSrc)); in HAL_GFXTIM_Init()
179 assert_param(IS_GFXTIM_TE_POLARITY(hgfxtim->Init.TearingEffectPolarity)); in HAL_GFXTIM_Init()
180 assert_param(IS_GFXTIM_INTERRUPT(hgfxtim->Init.TearingEffectInterrupt)); in HAL_GFXTIM_Init()
182 if (hgfxtim->State == HAL_GFXTIM_STATE_RESET) in HAL_GFXTIM_Init()
186 hgfxtim->HAL_GFXTIM_AbsoluteTimer_AFCC1Callback = HAL_GFXTIM_AbsoluteTimer_AFCC1Callback; in HAL_GFXTIM_Init()
187 hgfxtim->HAL_GFXTIM_AbsoluteTimer_AFCOFCallback = HAL_GFXTIM_AbsoluteTimer_AFCOFCallback; in HAL_GFXTIM_Init()
188 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCC1Callback = HAL_GFXTIM_AbsoluteTimer_ALCC1Callback; in HAL_GFXTIM_Init()
189 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCC2Callback = HAL_GFXTIM_AbsoluteTimer_ALCC2Callback; in HAL_GFXTIM_Init()
190 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCOFCallback = HAL_GFXTIM_AbsoluteTimer_ALCOFCallback; in HAL_GFXTIM_Init()
191 hgfxtim->HAL_GFXTIM_RelativeTimer_RFC1RCallback = HAL_GFXTIM_RelativeTimer_RFC1RCallback; in HAL_GFXTIM_Init()
192 hgfxtim->HAL_GFXTIM_RelativeTimer_RFC2RCallback = HAL_GFXTIM_RelativeTimer_RFC2RCallback; in HAL_GFXTIM_Init()
193 hgfxtim->HAL_GFXTIM_TECallback = HAL_GFXTIM_TECallback; in HAL_GFXTIM_Init()
194 hgfxtim->HAL_GFXTIM_EventGenerator_EV1Callback = HAL_GFXTIM_EventGenerator_EV1Callback; in HAL_GFXTIM_Init()
195 hgfxtim->HAL_GFXTIM_EventGenerator_EV2Callback = HAL_GFXTIM_EventGenerator_EV2Callback; in HAL_GFXTIM_Init()
196 hgfxtim->HAL_GFXTIM_EventGenerator_EV3Callback = HAL_GFXTIM_EventGenerator_EV3Callback; in HAL_GFXTIM_Init()
197 hgfxtim->HAL_GFXTIM_EventGenerator_EV4Callback = HAL_GFXTIM_EventGenerator_EV4Callback; in HAL_GFXTIM_Init()
198 hgfxtim->HAL_GFXTIM_WatchdogTimer_AlarmCallback = HAL_GFXTIM_WatchdogTimer_AlarmCallback; in HAL_GFXTIM_Init()
199 … hgfxtim->HAL_GFXTIM_WatchdogTimer_PreAlarmCallback = HAL_GFXTIM_WatchdogTimer_PreAlarmCallback; in HAL_GFXTIM_Init()
200 hgfxtim->ErrorCallback = HAL_GFXTIM_ErrorCallback; in HAL_GFXTIM_Init()
203 if (hgfxtim->MspInitCallback == NULL) in HAL_GFXTIM_Init()
205 hgfxtim->MspInitCallback = HAL_GFXTIM_MspInit; in HAL_GFXTIM_Init()
207 hgfxtim->MspInitCallback(hgfxtim); in HAL_GFXTIM_Init()
210 HAL_GFXTIM_MspInit(hgfxtim); in HAL_GFXTIM_Init()
214 MODIFY_REG(hgfxtim->Instance->CR, \ in HAL_GFXTIM_Init()
216 … hgfxtim->Init.SynchroSrc | hgfxtim->Init.TearingEffectSrc | hgfxtim->Init.TearingEffectPolarity); in HAL_GFXTIM_Init()
219 MODIFY_REG(hgfxtim->Instance->IER, GFXTIM_IER_TEIE, in HAL_GFXTIM_Init()
220 (hgfxtim->Init.TearingEffectInterrupt << GFXTIM_IER_TEIE_Pos)); in HAL_GFXTIM_Init()
223 hgfxtim->ErrorCode = GFXTIM_ERROR_NONE; in HAL_GFXTIM_Init()
224 hgfxtim->State = HAL_GFXTIM_STATE_READY; in HAL_GFXTIM_Init()
237 HAL_StatusTypeDef HAL_GFXTIM_DeInit(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_DeInit() argument
241 if (hgfxtim != NULL) in HAL_GFXTIM_DeInit()
244 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_DeInit()
246 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_DeInit()
250 if (hgfxtim->MspDeInitCallback == NULL) in HAL_GFXTIM_DeInit()
252 hgfxtim->MspDeInitCallback = HAL_GFXTIM_MspDeInit; in HAL_GFXTIM_DeInit()
254 hgfxtim->MspDeInitCallback(hgfxtim); in HAL_GFXTIM_DeInit()
256 HAL_GFXTIM_MspDeInit(hgfxtim); in HAL_GFXTIM_DeInit()
260 hgfxtim->State = HAL_GFXTIM_STATE_RESET; in HAL_GFXTIM_DeInit()
273 __weak void HAL_GFXTIM_MspInit(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_MspInit() argument
276 UNUSED(hgfxtim); in HAL_GFXTIM_MspInit()
287 __weak void HAL_GFXTIM_MspDeInit(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_MspDeInit() argument
290 UNUSED(hgfxtim); in HAL_GFXTIM_MspDeInit()
322 HAL_StatusTypeDef HAL_GFXTIM_RegisterCallback(GFXTIM_HandleTypeDef *hgfxtim, in HAL_GFXTIM_RegisterCallback() argument
328 if (hgfxtim == NULL) in HAL_GFXTIM_RegisterCallback()
335 hgfxtim->ErrorCode |= GFXTIM_ERROR_INVALID_CALLBACK; in HAL_GFXTIM_RegisterCallback()
340 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_RegisterCallback()
345 hgfxtim->HAL_GFXTIM_AbsoluteTimer_AFCC1Callback = pCallback; in HAL_GFXTIM_RegisterCallback()
348 hgfxtim->HAL_GFXTIM_AbsoluteTimer_AFCOFCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
351 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCC1Callback = pCallback; in HAL_GFXTIM_RegisterCallback()
354 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCC2Callback = pCallback; in HAL_GFXTIM_RegisterCallback()
357 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCOFCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
360 hgfxtim->HAL_GFXTIM_RelativeTimer_RFC1RCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
363 hgfxtim->HAL_GFXTIM_RelativeTimer_RFC2RCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
366 hgfxtim->HAL_GFXTIM_TECallback = pCallback; in HAL_GFXTIM_RegisterCallback()
369 hgfxtim->HAL_GFXTIM_EventGenerator_EV1Callback = pCallback; in HAL_GFXTIM_RegisterCallback()
372 hgfxtim->HAL_GFXTIM_EventGenerator_EV2Callback = pCallback; in HAL_GFXTIM_RegisterCallback()
375 hgfxtim->HAL_GFXTIM_EventGenerator_EV3Callback = pCallback; in HAL_GFXTIM_RegisterCallback()
378 hgfxtim->HAL_GFXTIM_EventGenerator_EV4Callback = pCallback; in HAL_GFXTIM_RegisterCallback()
381 hgfxtim->HAL_GFXTIM_WatchdogTimer_AlarmCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
384 hgfxtim->HAL_GFXTIM_WatchdogTimer_PreAlarmCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
387 hgfxtim->ErrorCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
390 hgfxtim->MspInitCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
393 hgfxtim->MspDeInitCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
397 hgfxtim->ErrorCode |= GFXTIM_ERROR_INVALID_CALLBACK; in HAL_GFXTIM_RegisterCallback()
402 else if (hgfxtim->State == HAL_GFXTIM_STATE_RESET) in HAL_GFXTIM_RegisterCallback()
407 hgfxtim->MspInitCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
410 hgfxtim->MspDeInitCallback = pCallback; in HAL_GFXTIM_RegisterCallback()
414 hgfxtim->ErrorCode |= GFXTIM_ERROR_INVALID_CALLBACK; in HAL_GFXTIM_RegisterCallback()
422 hgfxtim->ErrorCode |= GFXTIM_ERROR_INVALID_CALLBACK; in HAL_GFXTIM_RegisterCallback()
455 HAL_StatusTypeDef HAL_GFXTIM_UnRegisterCallback(GFXTIM_HandleTypeDef *hgfxtim, in HAL_GFXTIM_UnRegisterCallback() argument
460 if (hgfxtim == NULL) in HAL_GFXTIM_UnRegisterCallback()
466 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_UnRegisterCallback()
471 hgfxtim->HAL_GFXTIM_AbsoluteTimer_AFCC1Callback = HAL_GFXTIM_AbsoluteTimer_AFCC1Callback; in HAL_GFXTIM_UnRegisterCallback()
474 hgfxtim->HAL_GFXTIM_AbsoluteTimer_AFCOFCallback = HAL_GFXTIM_AbsoluteTimer_AFCOFCallback; in HAL_GFXTIM_UnRegisterCallback()
477 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCC1Callback = HAL_GFXTIM_AbsoluteTimer_ALCC1Callback; in HAL_GFXTIM_UnRegisterCallback()
480 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCC2Callback = HAL_GFXTIM_AbsoluteTimer_ALCC2Callback; in HAL_GFXTIM_UnRegisterCallback()
483 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCOFCallback = HAL_GFXTIM_AbsoluteTimer_ALCOFCallback; in HAL_GFXTIM_UnRegisterCallback()
486 hgfxtim->HAL_GFXTIM_RelativeTimer_RFC1RCallback = HAL_GFXTIM_RelativeTimer_RFC1RCallback; in HAL_GFXTIM_UnRegisterCallback()
489 hgfxtim->HAL_GFXTIM_RelativeTimer_RFC2RCallback = HAL_GFXTIM_RelativeTimer_RFC2RCallback; in HAL_GFXTIM_UnRegisterCallback()
492 hgfxtim->HAL_GFXTIM_TECallback = HAL_GFXTIM_TECallback; in HAL_GFXTIM_UnRegisterCallback()
495 hgfxtim->HAL_GFXTIM_EventGenerator_EV1Callback = HAL_GFXTIM_EventGenerator_EV1Callback; in HAL_GFXTIM_UnRegisterCallback()
498 hgfxtim->HAL_GFXTIM_EventGenerator_EV2Callback = HAL_GFXTIM_EventGenerator_EV2Callback; in HAL_GFXTIM_UnRegisterCallback()
501 hgfxtim->HAL_GFXTIM_EventGenerator_EV3Callback = HAL_GFXTIM_EventGenerator_EV3Callback; in HAL_GFXTIM_UnRegisterCallback()
504 hgfxtim->HAL_GFXTIM_EventGenerator_EV4Callback = HAL_GFXTIM_EventGenerator_EV4Callback; in HAL_GFXTIM_UnRegisterCallback()
507 hgfxtim->HAL_GFXTIM_WatchdogTimer_AlarmCallback = HAL_GFXTIM_WatchdogTimer_AlarmCallback; in HAL_GFXTIM_UnRegisterCallback()
510 … hgfxtim->HAL_GFXTIM_WatchdogTimer_PreAlarmCallback = HAL_GFXTIM_WatchdogTimer_PreAlarmCallback; in HAL_GFXTIM_UnRegisterCallback()
513 hgfxtim->ErrorCallback = HAL_GFXTIM_ErrorCallback; in HAL_GFXTIM_UnRegisterCallback()
516 hgfxtim->MspInitCallback = HAL_GFXTIM_MspInit; in HAL_GFXTIM_UnRegisterCallback()
519 hgfxtim->MspDeInitCallback = HAL_GFXTIM_MspDeInit; in HAL_GFXTIM_UnRegisterCallback()
523 hgfxtim->ErrorCode |= GFXTIM_ERROR_INVALID_CALLBACK; in HAL_GFXTIM_UnRegisterCallback()
528 else if (hgfxtim->State == HAL_GFXTIM_STATE_RESET) in HAL_GFXTIM_UnRegisterCallback()
533 hgfxtim->MspInitCallback = HAL_GFXTIM_MspInit; in HAL_GFXTIM_UnRegisterCallback()
536 hgfxtim->MspDeInitCallback = HAL_GFXTIM_MspDeInit; in HAL_GFXTIM_UnRegisterCallback()
540 hgfxtim->ErrorCode |= GFXTIM_ERROR_INVALID_CALLBACK; in HAL_GFXTIM_UnRegisterCallback()
548 hgfxtim->ErrorCode |= GFXTIM_ERROR_INVALID_CALLBACK; in HAL_GFXTIM_UnRegisterCallback()
582 HAL_StatusTypeDef HAL_GFXTIM_ClockGenerator_Config(GFXTIM_HandleTypeDef *hgfxtim, in HAL_GFXTIM_ClockGenerator_Config() argument
587 if ((hgfxtim == NULL) || (pClockGeneratorConfig == NULL)) in HAL_GFXTIM_ClockGenerator_Config()
594 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_ClockGenerator_Config()
606 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_ClockGenerator_Config()
609 CLEAR_BIT(hgfxtim->Instance->CGCR, in HAL_GFXTIM_ClockGenerator_Config()
613 MODIFY_REG(hgfxtim->Instance->LCCRR, GFXTIM_LCCRR_RELOAD, in HAL_GFXTIM_ClockGenerator_Config()
617 MODIFY_REG(hgfxtim->Instance->FCCRR, GFXTIM_FCCRR_RELOAD, in HAL_GFXTIM_ClockGenerator_Config()
621 MODIFY_REG(hgfxtim->Instance->CGCR, in HAL_GFXTIM_ClockGenerator_Config()
629 MODIFY_REG(hgfxtim->Instance->CR, in HAL_GFXTIM_ClockGenerator_Config()
649 HAL_StatusTypeDef HAL_GFXTIM_ClockGenerator_Reload(GFXTIM_HandleTypeDef *hgfxtim, uint32_t ClockGen… in HAL_GFXTIM_ClockGenerator_Reload() argument
653 if (hgfxtim == NULL) in HAL_GFXTIM_ClockGenerator_Reload()
660 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_ClockGenerator_Reload()
664 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_ClockGenerator_Reload()
666 SET_BIT(hgfxtim->Instance->CGCR, ClockGeneratorCounter); in HAL_GFXTIM_ClockGenerator_Reload()
683 __weak void HAL_GFXTIM_TECallback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_TECallback() argument
686 UNUSED(hgfxtim); in HAL_GFXTIM_TECallback()
722 HAL_StatusTypeDef HAL_GFXTIM_AbsoluteTimer_Config(GFXTIM_HandleTypeDef *hgfxtim, in HAL_GFXTIM_AbsoluteTimer_Config() argument
727 if ((hgfxtim == NULL) || (pAbsoluteTimerConfig == NULL)) in HAL_GFXTIM_AbsoluteTimer_Config()
734 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_AbsoluteTimer_Config()
746 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_AbsoluteTimer_Config()
750 MODIFY_REG(hgfxtim->Instance->AFCC1R, GFXTIM_AFCC1R_FRAME, in HAL_GFXTIM_AbsoluteTimer_Config()
754 MODIFY_REG(hgfxtim->Instance->AFCR, GFXTIM_AFCR_FRAME, in HAL_GFXTIM_AbsoluteTimer_Config()
758 MODIFY_REG(hgfxtim->Instance->ALCC1R, GFXTIM_ALCC1R_LINE, in HAL_GFXTIM_AbsoluteTimer_Config()
762 MODIFY_REG(hgfxtim->Instance->ALCC2R, GFXTIM_ALCC2R_LINE, in HAL_GFXTIM_AbsoluteTimer_Config()
766 MODIFY_REG(hgfxtim->Instance->ALCR, GFXTIM_ALCR_LINE, in HAL_GFXTIM_AbsoluteTimer_Config()
770 MODIFY_REG(hgfxtim->Instance->IER, in HAL_GFXTIM_AbsoluteTimer_Config()
793 HAL_StatusTypeDef HAL_GFXTIM_AbsoluteTimer_Start(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_AbsoluteTimer_Start() argument
797 if (hgfxtim == NULL) in HAL_GFXTIM_AbsoluteTimer_Start()
804 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_AbsoluteTimer_Start()
806 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_AbsoluteTimer_Start()
809 SET_BIT(hgfxtim->Instance->TCR, (GFXTIM_TCR_AFCEN | GFXTIM_TCR_ALCEN)); in HAL_GFXTIM_AbsoluteTimer_Start()
826 HAL_StatusTypeDef HAL_GFXTIM_AbsoluteTimer_Stop(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_AbsoluteTimer_Stop() argument
830 if (hgfxtim == NULL) in HAL_GFXTIM_AbsoluteTimer_Stop()
837 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_AbsoluteTimer_Stop()
839 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_AbsoluteTimer_Stop()
842 SET_BIT(hgfxtim->Instance->TDR, (GFXTIM_TDR_ALCDIS | GFXTIM_TDR_AFCDIS)); in HAL_GFXTIM_AbsoluteTimer_Stop()
859 HAL_StatusTypeDef HAL_GFXTIM_AbsoluteTimer_Reset(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_AbsoluteTimer_Reset() argument
863 if (hgfxtim == NULL) in HAL_GFXTIM_AbsoluteTimer_Reset()
870 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_AbsoluteTimer_Reset()
872 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_AbsoluteTimer_Reset()
875 SET_BIT(hgfxtim->Instance->TCR, (GFXTIM_TCR_FAFCR | GFXTIM_TCR_FALCR)); in HAL_GFXTIM_AbsoluteTimer_Reset()
895 HAL_StatusTypeDef HAL_GFXTIM_AbsoluteTimer_GetCounter(const GFXTIM_HandleTypeDef *hgfxtim, uint32_t… in HAL_GFXTIM_AbsoluteTimer_GetCounter() argument
900 if ((hgfxtim == NULL) || (pValue == NULL)) in HAL_GFXTIM_AbsoluteTimer_GetCounter()
907 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_AbsoluteTimer_GetCounter()
910 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_AbsoluteTimer_GetCounter()
915 *pValue = READ_REG(hgfxtim->Instance->ATR); in HAL_GFXTIM_AbsoluteTimer_GetCounter()
918 *pValue = READ_REG(hgfxtim->Instance->AFCR); in HAL_GFXTIM_AbsoluteTimer_GetCounter()
922 *pValue = READ_REG(hgfxtim->Instance->ALCR); in HAL_GFXTIM_AbsoluteTimer_GetCounter()
941 HAL_StatusTypeDef HAL_GFXTIM_AbsoluteTimer_SetFrameCompare(GFXTIM_HandleTypeDef *hgfxtim, uint32_t … in HAL_GFXTIM_AbsoluteTimer_SetFrameCompare() argument
945 if (hgfxtim == NULL) in HAL_GFXTIM_AbsoluteTimer_SetFrameCompare()
952 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_AbsoluteTimer_SetFrameCompare()
954 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_AbsoluteTimer_SetFrameCompare()
957 MODIFY_REG(hgfxtim->Instance->AFCC1R, GFXTIM_AFCC1R_FRAME, in HAL_GFXTIM_AbsoluteTimer_SetFrameCompare()
978 HAL_StatusTypeDef HAL_GFXTIM_AbsoluteTimer_SetLineCompare(GFXTIM_HandleTypeDef *hgfxtim, in HAL_GFXTIM_AbsoluteTimer_SetLineCompare() argument
983 if (hgfxtim == NULL) in HAL_GFXTIM_AbsoluteTimer_SetLineCompare()
990 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_AbsoluteTimer_SetLineCompare()
994 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_AbsoluteTimer_SetLineCompare()
999 WRITE_REG(hgfxtim->Instance->ALCC1R, Value); in HAL_GFXTIM_AbsoluteTimer_SetLineCompare()
1003 WRITE_REG(hgfxtim->Instance->ALCC2R, Value); in HAL_GFXTIM_AbsoluteTimer_SetLineCompare()
1020 __weak void HAL_GFXTIM_AbsoluteTimer_AFCOFCallback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_AbsoluteTimer_AFCOFCallback() argument
1023 UNUSED(hgfxtim); in HAL_GFXTIM_AbsoluteTimer_AFCOFCallback()
1033 __weak void HAL_GFXTIM_AbsoluteTimer_AFCC1Callback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_AbsoluteTimer_AFCC1Callback() argument
1036 UNUSED(hgfxtim); in HAL_GFXTIM_AbsoluteTimer_AFCC1Callback()
1046 __weak void HAL_GFXTIM_AbsoluteTimer_ALCC1Callback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_AbsoluteTimer_ALCC1Callback() argument
1049 UNUSED(hgfxtim); in HAL_GFXTIM_AbsoluteTimer_ALCC1Callback()
1059 __weak void HAL_GFXTIM_AbsoluteTimer_ALCC2Callback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_AbsoluteTimer_ALCC2Callback() argument
1062 UNUSED(hgfxtim); in HAL_GFXTIM_AbsoluteTimer_ALCC2Callback()
1072 __weak void HAL_GFXTIM_AbsoluteTimer_ALCOFCallback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_AbsoluteTimer_ALCOFCallback() argument
1075 UNUSED(hgfxtim); in HAL_GFXTIM_AbsoluteTimer_ALCOFCallback()
1112 HAL_StatusTypeDef HAL_GFXTIM_RelativeTimer_Config(GFXTIM_HandleTypeDef *hgfxtim, in HAL_GFXTIM_RelativeTimer_Config() argument
1118 if ((hgfxtim == NULL) || (pRelativeTimerConfig == NULL)) in HAL_GFXTIM_RelativeTimer_Config()
1125 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_RelativeTimer_Config()
1131 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_RelativeTimer_Config()
1136 MODIFY_REG(hgfxtim->Instance->RFC1RR, GFXTIM_RFC1RR_FRAME, in HAL_GFXTIM_RelativeTimer_Config()
1140 MODIFY_REG(hgfxtim->Instance->TCR, GFXTIM_TCR_RFC1CM, in HAL_GFXTIM_RelativeTimer_Config()
1144 MODIFY_REG(hgfxtim->Instance->IER, GFXTIM_IER_RFC1RIE_Msk, in HAL_GFXTIM_RelativeTimer_Config()
1150 MODIFY_REG(hgfxtim->Instance->RFC2RR, GFXTIM_RFC2RR_FRAME, in HAL_GFXTIM_RelativeTimer_Config()
1154 MODIFY_REG(hgfxtim->Instance->TCR, GFXTIM_TCR_RFC2CM, in HAL_GFXTIM_RelativeTimer_Config()
1158 MODIFY_REG(hgfxtim->Instance->IER, GFXTIM_IER_RFC2RIE_Msk, in HAL_GFXTIM_RelativeTimer_Config()
1178 HAL_StatusTypeDef HAL_GFXTIM_RelativeTimer_Start(GFXTIM_HandleTypeDef *hgfxtim, uint32_t RelativeTi… in HAL_GFXTIM_RelativeTimer_Start() argument
1182 if (hgfxtim == NULL) in HAL_GFXTIM_RelativeTimer_Start()
1189 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_RelativeTimer_Start()
1192 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_RelativeTimer_Start()
1197 SET_BIT(hgfxtim->Instance->TCR, GFXTIM_TCR_RFC1EN); in HAL_GFXTIM_RelativeTimer_Start()
1202 SET_BIT(hgfxtim->Instance->TCR, GFXTIM_TCR_RFC2EN); in HAL_GFXTIM_RelativeTimer_Start()
1221 HAL_StatusTypeDef HAL_GFXTIM_RelativeTimer_Stop(GFXTIM_HandleTypeDef *hgfxtim, uint32_t RelativeTim… in HAL_GFXTIM_RelativeTimer_Stop() argument
1225 if (hgfxtim == NULL) in HAL_GFXTIM_RelativeTimer_Stop()
1232 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_RelativeTimer_Stop()
1235 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_RelativeTimer_Stop()
1240 SET_BIT(hgfxtim->Instance->TDR, GFXTIM_TDR_RFC1DIS); in HAL_GFXTIM_RelativeTimer_Stop()
1245 SET_BIT(hgfxtim->Instance->TDR, GFXTIM_TDR_RFC2DIS); in HAL_GFXTIM_RelativeTimer_Stop()
1265 HAL_StatusTypeDef HAL_GFXTIM_RelativeTimer_ForceReload(GFXTIM_HandleTypeDef *hgfxtim, uint32_t Rela… in HAL_GFXTIM_RelativeTimer_ForceReload() argument
1269 if (hgfxtim == NULL) in HAL_GFXTIM_RelativeTimer_ForceReload()
1276 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_RelativeTimer_ForceReload()
1279 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_RelativeTimer_ForceReload()
1284 SET_BIT(hgfxtim->Instance->TCR, GFXTIM_TCR_FRFC1R); in HAL_GFXTIM_RelativeTimer_ForceReload()
1289 SET_BIT(hgfxtim->Instance->TCR, GFXTIM_TCR_FRFC2R); in HAL_GFXTIM_RelativeTimer_ForceReload()
1311 HAL_StatusTypeDef HAL_GFXTIM_RelativeTimer_SetReload(GFXTIM_HandleTypeDef *hgfxtim, uint32_t Relati… in HAL_GFXTIM_RelativeTimer_SetReload() argument
1316 if (hgfxtim == NULL) in HAL_GFXTIM_RelativeTimer_SetReload()
1323 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_RelativeTimer_SetReload()
1327 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_RelativeTimer_SetReload()
1332 WRITE_REG(hgfxtim->Instance->RFC1RR, Value); in HAL_GFXTIM_RelativeTimer_SetReload()
1337 WRITE_REG(hgfxtim->Instance->RFC2RR, Value); in HAL_GFXTIM_RelativeTimer_SetReload()
1357 HAL_StatusTypeDef HAL_GFXTIM_RelativeTimer_GetCounter(const GFXTIM_HandleTypeDef *hgfxtim, uint32_t… in HAL_GFXTIM_RelativeTimer_GetCounter() argument
1362 if ((hgfxtim == NULL) || (pValue == NULL)) in HAL_GFXTIM_RelativeTimer_GetCounter()
1369 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_RelativeTimer_GetCounter()
1372 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_RelativeTimer_GetCounter()
1377 *pValue = READ_REG(hgfxtim->Instance->RFC1R); in HAL_GFXTIM_RelativeTimer_GetCounter()
1382 *pValue = READ_REG(hgfxtim->Instance->RFC2R); in HAL_GFXTIM_RelativeTimer_GetCounter()
1402 __weak void HAL_GFXTIM_RelativeTimer_RFC1RCallback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_RelativeTimer_RFC1RCallback() argument
1405 UNUSED(hgfxtim); in HAL_GFXTIM_RelativeTimer_RFC1RCallback()
1415 __weak void HAL_GFXTIM_RelativeTimer_RFC2RCallback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_RelativeTimer_RFC2RCallback() argument
1418 UNUSED(hgfxtim); in HAL_GFXTIM_RelativeTimer_RFC2RCallback()
1451 HAL_StatusTypeDef HAL_GFXTIM_EventGenerator_Config(GFXTIM_HandleTypeDef *hgfxtim, uint32_t EventGen… in HAL_GFXTIM_EventGenerator_Config() argument
1457 if ((hgfxtim == NULL) || (pEventGeneratorConfig == NULL)) in HAL_GFXTIM_EventGenerator_Config()
1469 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_EventGenerator_Config()
1473 MODIFY_REG(hgfxtim->Instance->EVSR, \ in HAL_GFXTIM_EventGenerator_Config()
1478 MODIFY_REG(hgfxtim->Instance->IER, \ in HAL_GFXTIM_EventGenerator_Config()
1498 HAL_StatusTypeDef HAL_GFXTIM_EventGenerator_Enable(GFXTIM_HandleTypeDef *hgfxtim, uint32_t EventGen… in HAL_GFXTIM_EventGenerator_Enable() argument
1502 if (hgfxtim == NULL) in HAL_GFXTIM_EventGenerator_Enable()
1511 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_EventGenerator_Enable()
1514 SET_BIT(hgfxtim->Instance->EVCR, GFXTIM_EVCR_EV1EN << EventGenerator); in HAL_GFXTIM_EventGenerator_Enable()
1532 HAL_StatusTypeDef HAL_GFXTIM_EventGenerator_Disable(GFXTIM_HandleTypeDef *hgfxtim, uint32_t EventGe… in HAL_GFXTIM_EventGenerator_Disable() argument
1536 if (hgfxtim == NULL) in HAL_GFXTIM_EventGenerator_Disable()
1545 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_EventGenerator_Disable()
1548 CLEAR_BIT(hgfxtim->Instance->EVCR, GFXTIM_EVCR_EV1EN << EventGenerator); in HAL_GFXTIM_EventGenerator_Disable()
1566 __weak void HAL_GFXTIM_EventGenerator_EV1Callback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_EventGenerator_EV1Callback() argument
1569 UNUSED(hgfxtim); in HAL_GFXTIM_EventGenerator_EV1Callback()
1579 __weak void HAL_GFXTIM_EventGenerator_EV2Callback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_EventGenerator_EV2Callback() argument
1582 UNUSED(hgfxtim); in HAL_GFXTIM_EventGenerator_EV2Callback()
1592 __weak void HAL_GFXTIM_EventGenerator_EV3Callback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_EventGenerator_EV3Callback() argument
1595 UNUSED(hgfxtim); in HAL_GFXTIM_EventGenerator_EV3Callback()
1605 __weak void HAL_GFXTIM_EventGenerator_EV4Callback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_EventGenerator_EV4Callback() argument
1608 UNUSED(hgfxtim); in HAL_GFXTIM_EventGenerator_EV4Callback()
1639 HAL_StatusTypeDef HAL_GFXTIM_WatchdogTimer_Config(GFXTIM_HandleTypeDef *hgfxtim, in HAL_GFXTIM_WatchdogTimer_Config() argument
1644 if ((hgfxtim == NULL) || (pWatchdogConfig == NULL)) in HAL_GFXTIM_WatchdogTimer_Config()
1651 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_WatchdogTimer_Config()
1662 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_WatchdogTimer_Config()
1665 MODIFY_REG(hgfxtim->Instance->WDGRR, GFXTIM_WDGRR_RELOAD, in HAL_GFXTIM_WatchdogTimer_Config()
1669 MODIFY_REG(hgfxtim->Instance->WDGPAR, GFXTIM_WDGPAR_PREALARM, in HAL_GFXTIM_WatchdogTimer_Config()
1673 MODIFY_REG(hgfxtim->Instance->WDGTCR, (GFXTIM_WDGTCR_WDGCS | GFXTIM_WDGTCR_WDGHRC), in HAL_GFXTIM_WatchdogTimer_Config()
1677 MODIFY_REG(hgfxtim->Instance->IER, \ in HAL_GFXTIM_WatchdogTimer_Config()
1696 HAL_StatusTypeDef HAL_GFXTIM_WatchdogTimer_Enable(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_WatchdogTimer_Enable() argument
1700 if (hgfxtim == NULL) in HAL_GFXTIM_WatchdogTimer_Enable()
1707 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_WatchdogTimer_Enable()
1710 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_WatchdogTimer_Enable()
1713 SET_BIT(hgfxtim->Instance->WDGTCR, GFXTIM_WDGTCR_WDGEN); in HAL_GFXTIM_WatchdogTimer_Enable()
1729 HAL_StatusTypeDef HAL_GFXTIM_WatchdogTimer_Disable(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_WatchdogTimer_Disable() argument
1733 if (hgfxtim == NULL) in HAL_GFXTIM_WatchdogTimer_Disable()
1740 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_WatchdogTimer_Disable()
1743 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_WatchdogTimer_Disable()
1746 SET_BIT(hgfxtim->Instance->WDGTCR, GFXTIM_WDGTCR_WDGDIS); in HAL_GFXTIM_WatchdogTimer_Disable()
1762 HAL_StatusTypeDef HAL_GFXTIM_WatchdogTimer_Refresh(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_WatchdogTimer_Refresh() argument
1766 if (hgfxtim == NULL) in HAL_GFXTIM_WatchdogTimer_Refresh()
1773 assert_param(IS_GFXTIM_ALL_INSTANCE(hgfxtim->Instance)); in HAL_GFXTIM_WatchdogTimer_Refresh()
1776 if (hgfxtim->State == HAL_GFXTIM_STATE_READY) in HAL_GFXTIM_WatchdogTimer_Refresh()
1779 SET_BIT(hgfxtim->Instance->WDGTCR, GFXTIM_WDGTCR_FWDGR); in HAL_GFXTIM_WatchdogTimer_Refresh()
1795 __weak void HAL_GFXTIM_WatchdogTimer_AlarmCallback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_WatchdogTimer_AlarmCallback() argument
1798 UNUSED(hgfxtim); in HAL_GFXTIM_WatchdogTimer_AlarmCallback()
1808 __weak void HAL_GFXTIM_WatchdogTimer_PreAlarmCallback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_WatchdogTimer_PreAlarmCallback() argument
1811 UNUSED(hgfxtim); in HAL_GFXTIM_WatchdogTimer_PreAlarmCallback()
1841 void HAL_GFXTIM_IRQHandler(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_IRQHandler() argument
1848 tmp_reg1 = READ_REG(hgfxtim->Instance->ISR); in HAL_GFXTIM_IRQHandler()
1849 tmp_reg2 = READ_REG(hgfxtim->Instance->IER); in HAL_GFXTIM_IRQHandler()
1855 hgfxtim->HAL_GFXTIM_AbsoluteTimer_AFCC1Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1857 HAL_GFXTIM_AbsoluteTimer_AFCC1Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1864 hgfxtim->HAL_GFXTIM_AbsoluteTimer_AFCOFCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1866 HAL_GFXTIM_AbsoluteTimer_AFCOFCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1873 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCC1Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1875 HAL_GFXTIM_AbsoluteTimer_ALCC1Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1882 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCC2Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1884 HAL_GFXTIM_AbsoluteTimer_ALCC2Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1891 hgfxtim->HAL_GFXTIM_AbsoluteTimer_ALCOFCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1893 HAL_GFXTIM_AbsoluteTimer_ALCOFCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1900 hgfxtim->HAL_GFXTIM_TECallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1902 HAL_GFXTIM_TECallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1909 hgfxtim->HAL_GFXTIM_RelativeTimer_RFC1RCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1911 HAL_GFXTIM_RelativeTimer_RFC1RCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1918 hgfxtim->HAL_GFXTIM_RelativeTimer_RFC2RCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1920 HAL_GFXTIM_RelativeTimer_RFC2RCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1927 hgfxtim->HAL_GFXTIM_EventGenerator_EV1Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1929 HAL_GFXTIM_EventGenerator_EV1Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1936 hgfxtim->HAL_GFXTIM_EventGenerator_EV2Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1938 HAL_GFXTIM_EventGenerator_EV2Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1945 hgfxtim->HAL_GFXTIM_EventGenerator_EV3Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1947 HAL_GFXTIM_EventGenerator_EV3Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1954 hgfxtim->HAL_GFXTIM_EventGenerator_EV4Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1956 HAL_GFXTIM_EventGenerator_EV4Callback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1963 hgfxtim->HAL_GFXTIM_WatchdogTimer_AlarmCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1965 HAL_GFXTIM_WatchdogTimer_AlarmCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1972 hgfxtim->HAL_GFXTIM_WatchdogTimer_PreAlarmCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1974 HAL_GFXTIM_WatchdogTimer_PreAlarmCallback(hgfxtim); in HAL_GFXTIM_IRQHandler()
1978 WRITE_REG(hgfxtim->Instance->ICR, interrupts); in HAL_GFXTIM_IRQHandler()
1986 __weak void HAL_GFXTIM_ErrorCallback(GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_ErrorCallback() argument
1989 UNUSED(hgfxtim); in HAL_GFXTIM_ErrorCallback()
2000 HAL_GFXTIM_StateTypeDef HAL_GFXTIM_GetState(const GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_GetState() argument
2003 return hgfxtim->State; in HAL_GFXTIM_GetState()
2011 uint32_t HAL_GFXTIM_GetError(const GFXTIM_HandleTypeDef *hgfxtim) in HAL_GFXTIM_GetError() argument
2014 return hgfxtim->ErrorCode; in HAL_GFXTIM_GetError()