added PS/2 to USB converter use V-USB as protocol stack
This commit is contained in:
parent
c07408a447
commit
4f5f1a53d4
40 changed files with 10003 additions and 18 deletions
27
ps2_vusb/keyboard.h
Normal file
27
ps2_vusb/keyboard.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef KEYBOARD_H
|
||||
#define KEYBOARD_H
|
||||
|
||||
#include "stdbool.h"
|
||||
|
||||
|
||||
#define REPORT_KEYS 6
|
||||
typedef struct{
|
||||
uint8_t mods;
|
||||
uint8_t rserved; // not used
|
||||
uint8_t keys[REPORT_KEYS];
|
||||
}report_t;
|
||||
|
||||
|
||||
//extern report_t *report;
|
||||
//extern report_t *report_prev;
|
||||
|
||||
report_t *report_get(void);
|
||||
bool report_has_key(void);
|
||||
void report_send(void);
|
||||
void report_add_mod(uint8_t mod);
|
||||
void report_add_key(uint8_t key);
|
||||
void report_add_code(uint8_t code);
|
||||
void report_swap(void);
|
||||
void report_clear(void);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue