hid.h

00001 /*
00002         ppcskel - a Free Software replacement for the Nintendo/BroadOn bootloader.
00003         hid driver
00004 
00005 Copyright (C) 2009     Bernhard Urban <lewurm@gmx.net>
00006 Copyright (C) 2009     Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
00007 
00008 # This code is licensed to you under the terms of the GNU GPL, version 2;
00009 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
00010 */
00011 
00012 
00013 #ifndef __HID_H
00014 #define __HID_H
00015 
00016 #define MOD_lctrl (1<<0)
00017 #define MOD_lshift (1<<1)
00018 #define MOD_lalt (1<<2)
00019 #define MOD_lwin (1<<3)
00020 #define MOD_rctrl (1<<4)
00021 #define MOD_rshift (1<<5)
00022 #define MOD_ralt (1<<6)
00023 #define MOD_rwin (1<<7)
00024 
00025 struct kbrep {
00026         u8 mod;
00027         u8 reserved;
00028         u8 keys[6];
00029 };
00030 
00031 void usb_hidkb_probe();
00032 void usb_hidkb_check();
00033 void usb_hidkb_init();
00034 u8 usb_hidkb_inuse();
00035 
00036 struct kbrep *usb_hidkb_getChars();
00037 unsigned char usb_hidkb_get_char_from_keycode(u8 keycode, int shifted);
00038 void usb_hidkb_set_idle(struct usb_device *dev, u8 duration);
00039 void usb_hidkb_remove();
00040 
00041 #endif /* __HID_H */
00042 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated by  doxygen 1.6.3