Ignore:
Timestamp:
2011-05-11T16:49:28Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
19387b61
Parents:
e1dbcbc (diff), 9212f8a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge development/ changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/include/usb/classes/hid.h

    re1dbcbc ra81a1d09  
    2727 */
    2828
    29 /** @addtogroup usbvirtkbd
     29/** @addtogroup libusb
    3030 * @{
    3131 */
    3232/** @file
    33  * @brief USB keyboard configuration.
     33 * @brief USB HID device related types.
    3434 */
    35 #ifndef VUK_KBDCONFIG_H_
    36 #define VUK_KBDCONFIG_H_
     35#ifndef LIBUSB_HID_H_
     36#define LIBUSB_HID_H_
    3737
     38#include <usb/usb.h>
     39#include <usb/classes/hidparser.h>
    3840#include <usb/descriptor.h>
    39 #include "report.h"
    40 #include "descriptor.h"
    4141
    42 extern usb_standard_device_descriptor_t std_device_descriptor;
     42/** USB/HID device requests. */
     43typedef enum {
     44        USB_HIDREQ_GET_REPORT = 1,
     45        USB_HIDREQ_GET_IDLE = 2,
     46        USB_HIDREQ_GET_PROTOCOL = 3,
     47        /* Values 4 to 8 are reserved. */
     48        USB_HIDREQ_SET_REPORT = 9,
     49        USB_HIDREQ_SET_IDLE = 10,
     50        USB_HIDREQ_SET_PROTOCOL = 11
     51} usb_hid_request_t;
    4352
    44 extern usb_standard_configuration_descriptor_t std_configuration_descriptor;
     53typedef enum {
     54        USB_HID_PROTOCOL_BOOT = 0,
     55        USB_HID_PROTOCOL_REPORT = 1
     56} usb_hid_protocol_t;
    4557
    46 extern usb_standard_interface_descriptor_t std_interface_descriptor;
     58/** USB/HID subclass constants. */
     59typedef enum {
     60        USB_HID_SUBCLASS_NONE = 0,
     61        USB_HID_SUBCLASS_BOOT = 1
     62} usb_hid_subclass_t;
    4763
    48 extern usb_standard_endpoint_descriptor_t endpoint_descriptor;
    49 
    50 
    51 extern hid_descriptor_t hid_descriptor;
    52 
    53 extern report_descriptor_data_t report_descriptor;
    54 extern size_t report_descriptor_size;
     64/** USB/HID interface protocols. */
     65typedef enum {
     66        USB_HID_PROTOCOL_NONE = 0,
     67        USB_HID_PROTOCOL_KEYBOARD = 1,
     68        USB_HID_PROTOCOL_MOUSE = 2
     69} usb_hid_iface_protocol_t;
    5570
    5671
Note: See TracChangeset for help on using the changeset viewer.