STM32F103xB HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_TIM_EnableCounter (TIM_TypeDef *TIMx) |
Enable timer counter. | |
__STATIC_INLINE void | LL_TIM_DisableCounter (TIM_TypeDef *TIMx) |
Disable timer counter. | |
__STATIC_INLINE uint32_t | LL_TIM_IsEnabledCounter (TIM_TypeDef *TIMx) |
Indicates whether the timer counter is enabled. | |
__STATIC_INLINE void | LL_TIM_EnableUpdateEvent (TIM_TypeDef *TIMx) |
Enable update event generation. | |
__STATIC_INLINE void | LL_TIM_DisableUpdateEvent (TIM_TypeDef *TIMx) |
Disable update event generation. | |
__STATIC_INLINE uint32_t | LL_TIM_IsEnabledUpdateEvent (TIM_TypeDef *TIMx) |
Indicates whether update event generation is enabled. | |
__STATIC_INLINE void | LL_TIM_SetUpdateSource (TIM_TypeDef *TIMx, uint32_t UpdateSource) |
Set update event source. | |
__STATIC_INLINE uint32_t | LL_TIM_GetUpdateSource (TIM_TypeDef *TIMx) |
Get actual event update source. | |
__STATIC_INLINE void | LL_TIM_SetOnePulseMode (TIM_TypeDef *TIMx, uint32_t OnePulseMode) |
Set one pulse mode (one shot v.s. | |
__STATIC_INLINE uint32_t | LL_TIM_GetOnePulseMode (TIM_TypeDef *TIMx) |
Get actual one pulse mode. | |
__STATIC_INLINE void | LL_TIM_SetCounterMode (TIM_TypeDef *TIMx, uint32_t CounterMode) |
Set the timer counter counting mode. | |
__STATIC_INLINE uint32_t | LL_TIM_GetCounterMode (TIM_TypeDef *TIMx) |
Get actual counter mode. | |
__STATIC_INLINE void | LL_TIM_EnableARRPreload (TIM_TypeDef *TIMx) |
Enable auto-reload (ARR) preload. | |
__STATIC_INLINE void | LL_TIM_DisableARRPreload (TIM_TypeDef *TIMx) |
Disable auto-reload (ARR) preload. | |
__STATIC_INLINE uint32_t | LL_TIM_IsEnabledARRPreload (TIM_TypeDef *TIMx) |
Indicates whether auto-reload (ARR) preload is enabled. | |
__STATIC_INLINE void | LL_TIM_SetClockDivision (TIM_TypeDef *TIMx, uint32_t ClockDivision) |
Set the division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters. | |
__STATIC_INLINE uint32_t | LL_TIM_GetClockDivision (TIM_TypeDef *TIMx) |
Get the actual division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters. | |
__STATIC_INLINE void | LL_TIM_SetCounter (TIM_TypeDef *TIMx, uint32_t Counter) |
Set the counter value. | |
__STATIC_INLINE uint32_t | LL_TIM_GetCounter (TIM_TypeDef *TIMx) |
Get the counter value. | |
__STATIC_INLINE uint32_t | LL_TIM_GetDirection (TIM_TypeDef *TIMx) |
Get the current direction of the counter. | |
__STATIC_INLINE void | LL_TIM_SetPrescaler (TIM_TypeDef *TIMx, uint32_t Prescaler) |
Set the prescaler value. | |
__STATIC_INLINE uint32_t | LL_TIM_GetPrescaler (TIM_TypeDef *TIMx) |
Get the prescaler value. | |
__STATIC_INLINE void | LL_TIM_SetAutoReload (TIM_TypeDef *TIMx, uint32_t AutoReload) |
Set the auto-reload value. | |
__STATIC_INLINE uint32_t | LL_TIM_GetAutoReload (TIM_TypeDef *TIMx) |
Get the auto-reload value. | |
__STATIC_INLINE void | LL_TIM_SetRepetitionCounter (TIM_TypeDef *TIMx, uint32_t RepetitionCounter) |
Set the repetition counter value. | |
__STATIC_INLINE uint32_t | LL_TIM_GetRepetitionCounter (TIM_TypeDef *TIMx) |
Get the repetition counter value. |
__STATIC_INLINE void LL_TIM_DisableARRPreload | ( | TIM_TypeDef * | TIMx | ) |
Disable auto-reload (ARR) preload.
TIMx | Timer instance |
None |
Definition at line 1254 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_DisableCounter | ( | TIM_TypeDef * | TIMx | ) |
Disable timer counter.
TIMx | Timer instance |
None |
Definition at line 1074 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_DisableUpdateEvent | ( | TIM_TypeDef * | TIMx | ) |
Disable update event generation.
TIMx | Timer instance |
None |
Definition at line 1107 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_EnableARRPreload | ( | TIM_TypeDef * | TIMx | ) |
Enable auto-reload (ARR) preload.
TIMx | Timer instance |
None |
Definition at line 1243 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_EnableCounter | ( | TIM_TypeDef * | TIMx | ) |
Enable timer counter.
TIMx | Timer instance |
None |
Definition at line 1063 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_EnableUpdateEvent | ( | TIM_TypeDef * | TIMx | ) |
Enable update event generation.
TIMx | Timer instance |
None |
Definition at line 1096 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_GetAutoReload | ( | TIM_TypeDef * | TIMx | ) |
Get the auto-reload value.
TIMx | Timer instance |
Auto-reload | value |
Definition at line 1390 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_GetClockDivision | ( | TIM_TypeDef * | TIMx | ) |
Get the actual division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters.
TIMx | Timer instance |
Returned | value can be one of the following values: |
Definition at line 1302 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_GetCounter | ( | TIM_TypeDef * | TIMx | ) |
Get the counter value.
TIMx | Timer instance |
Counter | value (between Min_Data=0 and Max_Data=0xFFFF) |
Definition at line 1325 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_GetCounterMode | ( | TIM_TypeDef * | TIMx | ) |
Get actual counter mode.
TIMx | Timer instance |
Returned | value can be one of the following values: |
Definition at line 1223 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_GetDirection | ( | TIM_TypeDef * | TIMx | ) |
Get the current direction of the counter.
TIMx | Timer instance |
Returned | value can be one of the following values: |
Definition at line 1338 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_GetOnePulseMode | ( | TIM_TypeDef * | TIMx | ) |
Get actual one pulse mode.
TIMx | Timer instance |
Returned | value can be one of the following values: |
Definition at line 1179 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_GetPrescaler | ( | TIM_TypeDef * | TIMx | ) |
Get the prescaler value.
TIMx | Timer instance |
Prescaler | value between Min_Data=0 and Max_Data=65535 |
Definition at line 1365 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_GetRepetitionCounter | ( | TIM_TypeDef * | TIMx | ) |
Get the repetition counter value.
TIMx | Timer instance |
Repetition | counter value |
Definition at line 1417 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_GetUpdateSource | ( | TIM_TypeDef * | TIMx | ) |
Get actual event update source.
TIMx | Timer instance |
Returned | value can be one of the following values: |
Definition at line 1152 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_IsEnabledARRPreload | ( | TIM_TypeDef * | TIMx | ) |
Indicates whether auto-reload (ARR) preload is enabled.
TIMx | Timer instance |
State | of bit (1 or 0). |
Definition at line 1265 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_IsEnabledCounter | ( | TIM_TypeDef * | TIMx | ) |
Indicates whether the timer counter is enabled.
TIMx | Timer instance |
State | of bit (1 or 0). |
Definition at line 1085 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE uint32_t LL_TIM_IsEnabledUpdateEvent | ( | TIM_TypeDef * | TIMx | ) |
Indicates whether update event generation is enabled.
TIMx | Timer instance |
Inverted | state of bit (0 or 1). |
Definition at line 1118 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_SetAutoReload | ( | TIM_TypeDef * | TIMx, |
uint32_t | AutoReload | ||
) |
Set the auto-reload value.
TIMx | Timer instance |
AutoReload | between Min_Data=0 and Max_Data=65535 |
None |
Definition at line 1379 of file stm32f1xx_ll_tim.h.
Referenced by LL_TIM_Init().
__STATIC_INLINE void LL_TIM_SetClockDivision | ( | TIM_TypeDef * | TIMx, |
uint32_t | ClockDivision | ||
) |
Set the division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters.
TIMx | Timer instance |
ClockDivision | This parameter can be one of the following values: |
None |
Definition at line 1284 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_SetCounter | ( | TIM_TypeDef * | TIMx, |
uint32_t | Counter | ||
) |
Set the counter value.
TIMx | Timer instance |
Counter | Counter value (between Min_Data=0 and Max_Data=0xFFFF) |
None |
Definition at line 1314 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_SetCounterMode | ( | TIM_TypeDef * | TIMx, |
uint32_t | CounterMode | ||
) |
Set the timer counter counting mode.
TIMx | Timer instance |
CounterMode | This parameter can be one of the following values: |
None |
Definition at line 1203 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_SetOnePulseMode | ( | TIM_TypeDef * | TIMx, |
uint32_t | OnePulseMode | ||
) |
Set one pulse mode (one shot v.s.
repetitive).
TIMx | Timer instance |
OnePulseMode | This parameter can be one of the following values: |
None |
Definition at line 1166 of file stm32f1xx_ll_tim.h.
__STATIC_INLINE void LL_TIM_SetPrescaler | ( | TIM_TypeDef * | TIMx, |
uint32_t | Prescaler | ||
) |
Set the prescaler value.
TIMx | Timer instance |
Prescaler | between Min_Data=0 and Max_Data=65535 |
None |
Definition at line 1354 of file stm32f1xx_ll_tim.h.
Referenced by LL_TIM_Init().
__STATIC_INLINE void LL_TIM_SetRepetitionCounter | ( | TIM_TypeDef * | TIMx, |
uint32_t | RepetitionCounter | ||
) |
Set the repetition counter value.
TIMx | Timer instance |
RepetitionCounter | between Min_Data=0 and Max_Data=255 or 65535 for advanced timer. |
None |
Definition at line 1404 of file stm32f1xx_ll_tim.h.
Referenced by LL_TIM_Init().
__STATIC_INLINE void LL_TIM_SetUpdateSource | ( | TIM_TypeDef * | TIMx, |
uint32_t | UpdateSource | ||
) |
Set update event source.
TIMx | Timer instance |
UpdateSource | This parameter can be one of the following values: |
None |
Definition at line 1139 of file stm32f1xx_ll_tim.h.