Changeset ec6ab88 in mainline for uspace/lib/usb/include


Ignore:
Timestamp:
2010-12-12T12:27:46Z (15 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1ca50b3
Parents:
5174c62 (diff), 8365533 (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:

Merged branch lelian/hidd into development

Location:
uspace/lib/usb/include/usb/classes
Files:
2 edited

Legend:

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

    r5174c62 rec6ab88  
    3636#define LIBUSB_HID_H_
    3737
     38#include <usb/usb.h>
     39#include <driver.h>
     40#include <usb/classes/hidparser.h>
     41
    3842/** USB/HID device requests. */
    3943typedef enum {
     
    5458} usb_hid_protocol_t;
    5559
     60/**
     61 * @brief USB/HID keyboard device type.
     62 *
     63 * Quite dummy right now.
     64 */
     65typedef struct {
     66        device_t *device;
     67        usb_address_t address;
     68        usb_endpoint_t default_ep;
     69        usb_hid_report_parser_t *parser;
     70} usb_hid_dev_kbd_t;
     71
    5672#endif
    5773/**
  • uspace/lib/usb/include/usb/classes/hidparser.h

    r5174c62 rec6ab88  
    5050         * @param arg Custom argument.
    5151         */
    52         void (*keyboard)(const uint32_t *key_codes, size_t count, void *arg);
     52        void (*keyboard)(const uint16_t *key_codes, size_t count, void *arg);
    5353} usb_hid_report_in_callbacks_t;
    5454
Note: See TracChangeset for help on using the changeset viewer.