| 
    luat_soc_sdk_2024 V1.0
    
   | 
 
类型定义 | |
| typedef void * | luat_rtos_timer_t | 
| 定时器头数据类型   | |
| typedef LUAT_RT_RET_TYPE(* | luat_rtos_timer_callback_t) (LUAT_RT_CB_PARAM) | 
| 定义定时器处理函数   | |
函数 | |
| int | luat_rtos_timer_create (luat_rtos_timer_t *timer_handle) | 
| 创建软件定时器   | |
| int | luat_rtos_timer_delete (luat_rtos_timer_t timer_handle) | 
| 删除软件定时器   | |
| int | luat_rtos_timer_start (luat_rtos_timer_t timer_handle, uint32_t timeout, uint8_t repeat, luat_rtos_timer_callback_t callback_fun, void *user_param) | 
| 启动软件定时器   | |
| int | luat_rtos_timer_stop (luat_rtos_timer_t timer_handle) | 
| 停止软件定时器   | |
| int | luat_rtos_timer_is_active (luat_rtos_timer_t timer_handle) | 
| 检测软件定时器是否处于激活状态   | |
| typedef LUAT_RT_RET_TYPE(* luat_rtos_timer_callback_t) (LUAT_RT_CB_PARAM) | 
定义定时器处理函数
在文件 luat_rtos.h 第 420 行定义.
| typedef void* luat_rtos_timer_t | 
定时器头数据类型
在文件 luat_rtos.h 第 416 行定义.
| int luat_rtos_timer_create | ( | luat_rtos_timer_t * | timer_handle | ) | 
创建软件定时器
| timer_handle[OUT] | 返回定时器句柄 | 
| int luat_rtos_timer_delete | ( | luat_rtos_timer_t | timer_handle | ) | 
删除软件定时器
| timer_handle | 定时器句柄 | 
| int luat_rtos_timer_is_active | ( | luat_rtos_timer_t | timer_handle | ) | 
检测软件定时器是否处于激活状态
| timer_handle | 定时器句柄 | 
| int luat_rtos_timer_start | ( | luat_rtos_timer_t | timer_handle, | 
| uint32_t | timeout, | ||
| uint8_t | repeat, | ||
| luat_rtos_timer_callback_t | callback_fun, | ||
| void * | user_param ) | 
启动软件定时器
| timer_handle | 定时器句柄 | 
| timeout | 超时时间,单位ms,没有特殊值 | 
| repeat | 0不重复,其他重复 | 
| callback_fun | 定时时间到后的回调函数 | 
| user_param | 回调函数时的最后一个输入参数 | 
| int luat_rtos_timer_stop | ( | luat_rtos_timer_t | timer_handle | ) | 
停止软件定时器
| timer_handle | 定时器句柄 |