zoukankan      html  css  js  c++  java
  • z-stack中byte osal_start_time和osal_start_timerEx区别

    这两个函数看起来很相像,用的时候也很相似。很容易弄混淆,仔细看一下文档就知道其中的区别了。

    osal_start_timer( )

    This function is called to start a timer. When the timer expires, the given event bit will be set. The event will be set in the task from which the osal_start_timer function is called. To explicitly specify the task id, use the osal_start_timerEx() function instead of osal_start_timer().

    osal_start_timerEx( ) This is very similar to osal_start_timer(), with the added parameter of taskID. This allows the caller to set the timer for another task. When in doubt, use this function over osal_start_timer().

    由此可以看出前者是设置本事件的定时器的时间,而后者是设置下一个从另一个任务的时间。这个任务是协议栈下一次调用的任务。

    相关的详细文档可以看z-stack的文档。

    以上纯属个人理解,有错误之处请批评指正。

  • 相关阅读:
    PHP Mail 简介
    二级叉的结算另一种方法
    PHP extract() 函数
    array_count_values函数
    对碰结算的方法
    array_walk() 函数
    函数引发二级叉的结算
    array_intersect() php筛选两个数组共有的元素
    php文件锁
    JAVA Math常用方法
  • 原文地址:https://www.cnblogs.com/farbeyond/p/5204704.html
Copyright © 2011-2022 走看看