ST STM32F2 User Manual page 620

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

HAL TIM Generic Driver
__HAL_TIM_GET_COUNTER
__HAL_TIM_SET_AUTORELOAD
__HAL_TIM_GET_AUTORELOAD
__HAL_TIM_SET_CLOCKDIVISION
620/1371
None
Description:
Gets the TIM Counter Register value on
runtime.
Parameters:
__HANDLE__: TIM handle.
Return value:
16-bit: or 32-bit value of the timer counter
register (TIMx_CNT)
Description:
Sets the TIM Autoreload Register value on
runtime without calling another time any Init
function.
Parameters:
__HANDLE__: TIM handle.
__AUTORELOAD__: specifies the Counter
register new value.
Return value:
None
Description:
Gets the TIM Autoreload Register value on
runtime.
Parameters:
__HANDLE__: TIM handle.
Return value:
16-bit: or 32-bit value of the timer auto-
reload register(TIMx_ARR)
Description:
Sets the TIM Clock Division value on
runtime without calling another time any Init
function.
Parameters:
__HANDLE__: TIM handle.
__CKD__: specifies the clock division
value. This parameter can be one of the
following value:
DocID028236 Rev 2
TIM_CLOCKDIVISION_DIV1:
tDTS=tCK_INT
TIM_CLOCKDIVISION_DIV2:
tDTS=2*tCK_INT
TIM_CLOCKDIVISION_DIV4:
tDTS=4*tCK_INT
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF