/******************************************************************************
-###############################################################################
-# Copyright (c) [2017-2020] [ICT/CAS] #
-# Licensed under the ORAN Software License v1.0 (License) #
-###############################################################################
-******************************************************************************/
+*
+* Copyright (c) 2020 ICT/CAS.
+*
+* Licensed under the O-RAN Software License, Version 1.0 (the "Software License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* https://www.o-ran.org/software
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*******************************************************************************/
+
#ifndef __VOS_TIMER_H__
/** VOS Timer 类型枚举值 */
typedef enum
{
- VOS_TIMER_LOOP, ///< 循环执行的timer
- VOS_TIMER_NO_LOOP, ///< 执行一次的timer
+ VOS_TIMER_LOOP, ///< 循环执行的timer
+ VOS_TIMER_NO_LOOP, ///< 执行一次的timer
}VOS_TIMER_TYPE_EN;
-/**
+/**
* 创建定时器
* @param[in] ulModuleId 模块ID
* @param[in] msgQId 如果pfTimerFunc非空则无效;如果pfTimerFunc为NULL,则向msgQId队列发送定时器超时消息
VOID (*pfTimerFunc)(VOID *), VOID *pArg, VOS_TIMER_TYPE_EN enType);
-/**
+/**
* 改变定时器时间,不能在超时回调函数中调用
* @param[in] ulModuleId 模块ID
* @param[in] ulTimerId 定时器Id
LONG VOS_TimerChange(ULONG ulModuleId, ULONG ulTimerId, LONG lMillSec);
-/**
+/**
* 删除定时器
* @param[in] ulModuleId 模块ID
* @param[in] ulTimerId 定时器Id
LONG VOS_TimerDelete(ULONG ulModuleId, ULONG ulTimerId);
-/**
+/**
* 创建微秒定时器,必须绑核
* @param[in] ulModuleId 模块ID
* @param[in] luSec 定时器的时间,微妙
-/**
+/**
* 创建微秒定时器,必须绑核
* @param[in] ulModuleId 模块ID
* @param[in] ulTimerId Timer ID