TIM_EVENTSOURCE_CC1: Timer Capture Compare 1
Event source
TIM_EVENTSOURCE_CC2: Timer Capture Compare 2
Event source
TIM_EVENTSOURCE_CC3: Timer Capture Compare 3
Event source
TIM_EVENTSOURCE_CC4: Timer Capture Compare 4
Event source
TIM_EVENTSOURCE_COM: Timer COM event source
TIM_EVENTSOURCE_TRIGGER: Timer Trigger Event
source
TIM_EVENTSOURCE_BREAK: Timer Break event
source
TIM6 and TIM7 can only generate an update event.
TIM_EVENTSOURCE_COM and
TIM_EVENTSOURCE_BREAK are used only with TIM1 and
TIM8.
HAL_TIM_ReadCapturedValue
uint32_t HAL_TIM_ReadCapturedValue (TIM_HandleTypeDef *
htim, uint32_t Channel)
Read the captured value from Capture Compare unit.
htim: pointer to a TIM_HandleTypeDef structure that
contains the configuration information for TIM module.
Channel: TIM Channels to be enabled. This parameter can
be one of the following values:
TIM_CHANNEL_1: TIM Channel 1 selected
TIM_CHANNEL_2: TIM Channel 2 selected
TIM_CHANNEL_3: TIM Channel 3 selected
TIM_CHANNEL_4: TIM Channel 4 selected
HAL_TIM_PeriodElapsedCallback
void HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *
htim)
Period elapsed callback in non blocking mode.
htim: pointer to a TIM_HandleTypeDef structure that
contains the configuration information for TIM module.
HAL_TIM_OC_DelayElapsedCallback
void HAL_TIM_OC_DelayElapsedCallback
(TIM_HandleTypeDef * htim)
Output Compare callback in non blocking mode.