LWTimer reset?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,398件の閲覧回数
barbercolman
Contributor III

I want a timer that after 3 seconds with out user input the UI is reset. I can start a 3 second timer, but I do not see any way of resetting the timer to 3 seconds. Is there another option to canceling and restarting a timer?

Thanks

MQX 3.6.2

0 件の賞賛
返信
1 解決策
1,108件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Barber,

The lightweight timer is a very simple and limited capability timer module as compared to the full timer operations.  The full timer can be setup as a one shot occurence or periodic with a bunch of other capabilities.

Once you start a lightweight timer at whatever periodic rate you want you can cancel it using the _lwtimer_cancel_timer() function call.

Hope this helps.

Regards,

David

元の投稿で解決策を見る

1 返信
1,109件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Barber,

The lightweight timer is a very simple and limited capability timer module as compared to the full timer operations.  The full timer can be setup as a one shot occurence or periodic with a bunch of other capabilities.

Once you start a lightweight timer at whatever periodic rate you want you can cancel it using the _lwtimer_cancel_timer() function call.

Hope this helps.

Regards,

David