usb_kbd_t Struct Reference
[USB HID driver]

USB/HID keyboard device type. More...

#include <kbddev.h>


Data Fields

int console_phone
 IPC phone to the console device (for sending key events).
int initialized
 State of the structure (for checking before use).
size_t key_count
 Count of stored keys (i.e.
int32_t * keys
 Currently pressed keys (not translated to key codes).
int32_t * keys_old
 Previously pressed keys (not translated to key codes).
int32_t * led_data
size_t led_output_size
usb_hid_report_path_tled_path
unsigned lock_keys
 Currently active lock keys.
uint8_t modifiers
 Currently pressed modifiers (bitmap).
unsigned mods
 Currently active modifiers including locks.
ddf_dev_ops_t ops
uint8_t * output_buffer
size_t output_size
usb_kbd_repeat_t repeat
 Information for auto-repeat of keys.
fibril_mutex_trepeat_mtx
 Mutex for accessing the information about auto-repeat.


Detailed Description

USB/HID keyboard device type.

Holds a reference to generic USB/HID device structure and keyboard-specific data, such as currently pressed keys, modifiers and lock keys.

Also holds a IPC phone to the console (since there is now no other way to communicate with it).

Note:
Storing active lock keys in this structure results in their setting being device-specific.

Definition at line 66 of file kbddev.h.


Field Documentation

int initialized

State of the structure (for checking before use).

0 - not initialized 1 - initialized -1 - ready for destroying

Definition at line 110 of file kbddev.h.

size_t key_count

Count of stored keys (i.e.

number of keys in the report).

Definition at line 72 of file kbddev.h.

unsigned mods

Currently active modifiers including locks.

Sent to the console.

Definition at line 77 of file kbddev.h.

ddf_dev_ops_t ops

Definition at line 86 of file kbddev.h.


The documentation for this struct was generated from the following file:
Generated on Thu Jun 2 07:46:00 2011 for HelenOS/USB by  doxygen 1.4.7