WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_timer.h 文件参考
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  osal_timer
 
struct  osal_timeval
 
struct  osal_rtc_time
 
struct  osal_hrtimer
 

类型定义

typedef struct osal_hrtimer osal_hrtimer
 

枚举

enum  osal_hrtimer_restart { OSAL_HRTIMER_NORESTART , OSAL_HRTIMER_RESTART }
 

函数

int osal_timer_init (osal_timer *timer)
 Initialize the timer.
 
int osal_timer_start (osal_timer *timer)
 start a timer.
 
int osal_timer_mod (osal_timer *timer, unsigned int interval)
 modify a timer's timeout.
 
int osal_timer_start_on (osal_timer *timer, unsigned long delay, int cpu)
 Start a timer on a particular CPU.
 
int osal_timer_stop (osal_timer *timer)
 Deactivate a timer.
 
int osal_timer_destroy (osal_timer *timer)
 destroy the timer.
 
unsigned long osal_timer_get_private_data (const void *sys_data)
 get_private_data by timer.
 
int osal_timer_destroy_sync (osal_timer *timer)
 deactivate a timer and wait for the handler to finish.
 
unsigned long long osal_sched_clock (void)
 Obtain system time in nanoseconds.
 
unsigned long long osal_get_jiffies (void)
 Obtain the number of Ticks(in liteos) or jiffies(in linux).
 
unsigned long osal_msecs_to_jiffies (const unsigned int m)
 Convert milliseconds to Ticks/jiffies.
 
unsigned int osal_jiffies_to_msecs (const unsigned int n)
 Convert Ticks/jiffies to milliseconds.
 
unsigned int osal_get_cycle_per_tick (void)
 Obtain the number of cycles in one tick.
 
void osal_gettimeofday (osal_timeval *tv)
 Obtaining the Current System Kernel Time.
 
int osal_hrtimer_create (osal_hrtimer *hrtimer)
 Create a high-resolution timer.
 
int osal_hrtimer_start (osal_hrtimer *hrtimer)
 Start a high-resolution timer.
 
int osal_hrtimer_destroy (osal_hrtimer *hrtimer)
 Delete an existing high-resolution timer.
 

类型定义说明

◆ osal_hrtimer

typedef struct osal_hrtimer osal_hrtimer

枚举类型说明

◆ osal_hrtimer_restart

枚举值
OSAL_HRTIMER_NORESTART 
OSAL_HRTIMER_RESTART