?? fifo.h
字號:
#ifndef __FIFO_H__#define __FIFO_H__typedef void *HFIFO;#define FIFO_FLG_NOBLOCK 1#define FIFO_FLG_BLOCK 0#define E_COMMON -1#define E_BUSY -2#define E_FIFO_FULL -3#define E_FIFO_EMPTY -4#define E_FIFO_OVERSIZE -5/* Create and destroy FIFO */HFIFO fifo_create(const char *fifoname, int nslot, size_t slotsz);void fifo_destroy(HFIFO handle);/* Get an existing FIFO handle */HFIFO fifo_find_handle(const char *fifoname, size_t *pslotsz);/* Put and get data from FIFO */int fifo_put(HFIFO handle, void *data, size_t size, int flag);int fifo_get(HFIFO handle, void *buf, size_t size, int flag);/* Tag trigger and reset */int fifo_tag_trigger(HFIFO handle, int tagid);int fifo_tag_check(HFIFO handle, int tagid);#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -