|
|
| version 1.6, 2004/02/18 03:24:48 | version 1.11, 2007/11/03 00:00:20 |
|---|---|
| Line 1 | Line 1 |
| enum { | enum { |
| KB_BUFBIT = 7, | KB_CTR = (1 << 3), |
| KB_BUF = (1 << KB_BUFBIT), | KB_CTRMASK = (KB_CTR - 1), |
| KB_BUF = (1 << 7), | |
| KB_BUFMASK = (KB_BUF - 1) | KB_BUFMASK = (KB_BUF - 1) |
| }; | }; |
| typedef struct { | typedef struct { |
| UINT32 xferclock; | UINT32 xferclock; |
| UINT8 data; | UINT8 data; |
| UINT8 mode; | |
| UINT8 cmd; | UINT8 cmd; |
| UINT8 mode; | |
| UINT8 status; | UINT8 status; |
| int buffers; | UINT ctrls; |
| int pos; | UINT ctrpos; |
| BYTE buf[KB_BUF]; | UINT buffers; |
| UINT bufpos; | |
| UINT8 ctr[KB_CTR]; | |
| UINT8 buf[KB_BUF]; | |
| } _KEYBRD, *KEYBRD; | } _KEYBRD, *KEYBRD; |
| typedef struct { | typedef struct { |
| Line 34 extern "C" { | Line 39 extern "C" { |
| void keyboard_callback(NEVENTITEM item); | void keyboard_callback(NEVENTITEM item); |
| void keyboard_reset(void); | void keyboard_reset(const NP2CFG *pConfig); |
| void keyboard_bind(void); | void keyboard_bind(void); |
| void keyboard_resetsignal(void); | void keyboard_resetsignal(void); |
| void keyboard_ctrl(REG8 data); | |
| void keyboard_send(REG8 data); | void keyboard_send(REG8 data); |
| Line 44 void keyboard_send(REG8 data); | Line 50 void keyboard_send(REG8 data); |
| void rs232c_construct(void); | void rs232c_construct(void); |
| void rs232c_destruct(void); | void rs232c_destruct(void); |
| void rs232c_reset(void); | void rs232c_reset(const NP2CFG *pConfig); |
| void rs232c_bind(void); | void rs232c_bind(void); |
| void rs232c_open(void); | void rs232c_open(void); |
| void rs232c_callback(void); | void rs232c_callback(void); |
| BYTE rs232c_stat(void); | UINT8 rs232c_stat(void); |
| void rs232c_midipanic(void); | void rs232c_midipanic(void); |
| #ifdef __cplusplus | #ifdef __cplusplus |