浏览该文件的文档.
11 #ifndef DEVICE_TIMER_H_
12 #define DEVICE_TIMER_H_
18 namespace HYYRobotBase
时钟数据结构
Definition: device_timer.h:30
int initUserTimer(RTimer *timer, int index, int cycle_times)
初始化时钟,实现总线整数倍时钟定时
int userTimerE(RTimer *timer)
定时,无论RTimer.cycle_times为多少,按照总线时间返回,总线周期内阻塞,当到达RTimer.cycle_times设置的定时周期返回值为ture(1),...
int index
定时器索引(0,1,......,9),默认提供十个定时器, 定时周期为总线周期
Definition: device_timer.h:31
struct RTimer RTimer
时钟数据结构
int cycle_times
总线周期的整数倍数,大于1时可实现总线周期整数倍定时
Definition: device_timer.h:32
void userTimer(RTimer *timer)
定时,按照设置的RTimer.cycle_times返回,定时时间未到,函数阻塞