UINT32 LOS_SwtmrTimeGet ( UINT16  usSwTmrID,
UINT32 uwTick  
)

Obtain the number of remaining Ticks configured on a software timer.

Description:
This API is used to obtain the number of remaining Ticks configured on the software timer of which the ID is specified by usSwTmrID.
注意:
  • The specific timer should be created and started successfully, error happends otherwise.
参数:
参数名称 描述
usSwTmrID  [IN] Software timer ID created by LOS_SwtmrCreate. The value of ID should be in [0, LOSCFG_BASE_CORE_SWTMR_LIMIT - 1].
uwTick  [OUT] Number of remaining Ticks configured on the software timer.
返回值:
返回值 描述
LOS_ERRNO_SWTMR_ID_INVALID  Invalid software timer ID.
LOS_ERRNO_SWTMR_NOT_CREATED  The software timer is not created.
LOS_ERRNO_SWTMR_NOT_STARTED  The software timer is not started.
LOS_ERRNO_SWTMR_STATUS_INVALID  Invalid software timer state.
LOS_OK  The number of remaining Ticks is successfully obtained.
Dependency:
  • los_swtmr.h: the header file that contains the API declaration.
参见:
LOS_SwtmrCreate
自从:
Huawei LiteOS V100R001C00