poll.h
来自「专业汽车级嵌入式操作系统OSEK的源代码」· C头文件 代码 · 共 36 行
H
36 行
/** * poll.h * Contains conterparts of special classes as C structs. */ #ifndef _POLL_H#define _POLL_H#include "constants.h"#include "classes.h"/** * Poll class native structure */typedef struct S_Poll{ Object _super; // Superclass object storage JSHORT changed; // Mask of inputs that have changed} Poll;extern void set_poller(Poll*);extern void poll_inputs();extern Poll *poller;extern byte throttle;extern byte throttle_count;static inline void init_poller(){ poller = null; throttle = 1; throttle_count = 1;}#endif // _POLL_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?