1 Star 0 Fork 1

li/HardKeyQueue

forked from jiaohaitao/HardKeyQueue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Queue.h 545 Bytes
一键复制 编辑 原始数据 按行查看 历史
jiaohaitao 提交于 2018-07-24 15:58 +08:00 . 按键检测修改为支持多通道按键
#ifndef _QUEUE_H
#define _QUEUE_H
typedef unsigned short QueueType;
struct QueueBuffer {
QueueType *pBufferStart;
QueueType *pBufferEnd;
QueueType *pIn;
QueueType *pOut;
unsigned int mCount;
};
void Queue_Init(void);
void Queue_Destory(void);
void Queue_Push(struct QueueBuffer *pQueueBuffer,QueueType mData);
QueueType Queue_Pop( struct QueueBuffer *pQueueBuffer );
unsigned int Queue_Num( struct QueueBuffer *pQueueBuffer );
void Queue_Clear( struct QueueBuffer *pQueueBuffer );
extern struct QueueBuffer SysKeyQueueBuffer;
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/lzh1762/HardKeyQueue.git
git@gitee.com:lzh1762/HardKeyQueue.git
lzh1762
HardKeyQueue
HardKeyQueue
master

搜索帮助