STM32G474xx HAL用户手册
函数
LPTIM读取操作函数
LPTIM导出函数

读取操作函数。 更多...

函数

uint32_t HAL_LPTIM_ReadCounter (const LPTIM_HandleTypeDef *hlptim)
 返回当前计数值。
uint32_t HAL_LPTIM_ReadAutoReload (const LPTIM_HandleTypeDef *hlptim)
 返回当前自动重装载(周期)值。
uint32_t HAL_LPTIM_ReadCompare (const LPTIM_HandleTypeDef *hlptim)
 返回当前比较(脉冲)值。

详细说明

读取操作函数。

  ==============================================================================
                  ##### LPTIM Read operation functions #####
  ==============================================================================
[..]  This section provides LPTIM Reading functions.
      (+) Read the counter value.
      (+) Read the period (Auto-reload) value.
      (+) Read the pulse (Compare)value.

函数文档

uint32_t HAL_LPTIM_ReadAutoReload ( const LPTIM_HandleTypeDef hlptim)

返回当前自动重装载(周期)值。

参数:
hlptimLPTIM句柄
返回值:
自动重装载值。

定义于文件 stm32g4xx_hal_lptim.c1767 行。

引用了 assert_param__LPTIM_HandleTypeDef::Instance

uint32_t HAL_LPTIM_ReadCompare ( const LPTIM_HandleTypeDef hlptim)

返回当前比较(脉冲)值。

参数:
hlptimLPTIM句柄
返回值:
比较值。

定义于文件 stm32g4xx_hal_lptim.c1780 行。

引用了 assert_param__LPTIM_HandleTypeDef::Instance

uint32_t HAL_LPTIM_ReadCounter ( const LPTIM_HandleTypeDef hlptim)

返回当前计数值。

参数:
hlptimLPTIM句柄
返回值:
计数值。

定义于文件 stm32g4xx_hal_lptim.c1754 行。

引用了 assert_param__LPTIM_HandleTypeDef::Instance