Changeset c7b5826 in mainline for uspace/lib/usbhid/include
- Timestamp:
- 2011-05-18T09:34:56Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 33d19a7
- Parents:
- d736fe38 (diff), b2995c3 (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. - Location:
- uspace/lib/usbhid/include/usb/hid
- Files:
-
- 12 moved
-
hid.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hid.h ) (2 diffs)
-
hid_report_items.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hid_report_items.h ) (3 diffs)
-
hiddescriptor.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hiddescriptor.h ) (2 diffs)
-
hidparser.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hidparser.h ) (4 diffs)
-
hidpath.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hidpath.h ) (2 diffs)
-
hidreport.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hidreport.h ) (2 diffs)
-
hidtypes.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hidtypes.h ) (4 diffs)
-
iface.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hid/iface.h ) (2 diffs)
-
request.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hidreq.h ) (2 diffs)
-
usages/core.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hidut.h ) (3 diffs)
-
usages/kbdgen.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hidutkbd.h ) (1 diff)
-
usages/led.h (moved) (moved from uspace/lib/usbhid/include/usb/classes/hid/utled.h ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/include/usb/hid/hid.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * @brief USB HID device related types. 34 34 */ 35 #ifndef LIBUSB _HID_H_36 #define LIBUSB _HID_H_35 #ifndef LIBUSBHID_HID_H_ 36 #define LIBUSBHID_HID_H_ 37 37 38 38 #include <usb/usb.h> 39 #include <usb/ classes/hidparser.h>39 #include <usb/hid/hidparser.h> 40 40 #include <usb/descriptor.h> 41 41 -
uspace/lib/usbhid/include/usb/hid/hid_report_items.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * @brief USB HID parser. 34 34 */ 35 #ifndef LIBUSB _HID_REPORT_ITEMS_H_36 #define LIBUSB _HID_REPORT_ITEMS_H_35 #ifndef LIBUSBHID_HID_REPORT_ITEMS_H_ 36 #define LIBUSBHID_HID_REPORT_ITEMS_H_ 37 37 38 38 #include <stdint.h> … … 46 46 #define USB_HID_ITEM_IS_LONG(data) (data == 0xFE) 47 47 48 49 /** 50 * Extended usage macros 51 */ 52 #define USB_HID_IS_EXTENDED_USAGE(usage) ((usage & 0xFFFF0000) != 0) 53 #define USB_HID_EXTENDED_USAGE_PAGE(usage) ((usage & 0xFFFF0000) >> 16) 54 #define USB_HID_EXTENDED_USAGE(usage) (usage & 0xFFFF) 48 55 49 56 /** -
uspace/lib/usbhid/include/usb/hid/hiddescriptor.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * USB HID report descriptor and report data parser 34 34 */ 35 #ifndef LIBUSB _HIDDESCRIPTOR_H_36 #define LIBUSB _HIDDESCRIPTOR_H_35 #ifndef LIBUSBHID_HIDDESCRIPTOR_H_ 36 #define LIBUSBHID_HIDDESCRIPTOR_H_ 37 37 38 38 #include <stdint.h> 39 39 #include <adt/list.h> 40 #include <usb/ classes/hid_report_items.h>41 #include <usb/ classes/hidpath.h>42 #include <usb/ classes/hidtypes.h>40 #include <usb/hid/hid_report_items.h> 41 #include <usb/hid/hidpath.h> 42 #include <usb/hid/hidtypes.h> 43 43 44 44 -
uspace/lib/usbhid/include/usb/hid/hidparser.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * USB HID report descriptor and report data parser 34 34 */ 35 #ifndef LIBUSB _HIDPARSER_H_36 #define LIBUSB _HIDPARSER_H_35 #ifndef LIBUSBHID_HIDPARSER_H_ 36 #define LIBUSBHID_HIDPARSER_H_ 37 37 38 38 #include <stdint.h> 39 39 #include <adt/list.h> 40 #include <usb/ classes/hid_report_items.h>41 #include <usb/ classes/hidpath.h>42 #include <usb/ classes/hidtypes.h>43 #include <usb/ classes/hiddescriptor.h>40 #include <usb/hid/hid_report_items.h> 41 #include <usb/hid/hidpath.h> 42 #include <usb/hid/hidtypes.h> 43 #include <usb/hid/hiddescriptor.h> 44 44 45 45 … … 50 50 int usb_hid_parse_report(const usb_hid_report_t *report, const uint8_t *data, 51 51 size_t size, uint8_t *report_id); 52 53 /** */54 size_t usb_hid_report_input_length(const usb_hid_report_t *report,55 usb_hid_report_path_t *path, int flags);56 52 57 53 /* … … 65 61 void usb_hid_report_output_free(uint8_t *output); 66 62 67 /** Returns size of output for given usage path*/68 size_t usb_hid_report_ output_size(usb_hid_report_t *report,69 usb_hid_report_path_t *path, int flags);63 /** Returns size of report in items */ 64 size_t usb_hid_report_size(usb_hid_report_t *report, uint8_t report_id, 65 usb_hid_report_type_t type); 70 66 71 67 /** Makes the output report buffer by translated given data */ -
uspace/lib/usbhid/include/usb/hid/hidpath.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * USB HID report descriptor and report data parser 34 34 */ 35 #ifndef LIBUSB _HIDPATH_H_36 #define LIBUSB _HIDPATH_H_35 #ifndef LIBUSBHID_HIDPATH_H_ 36 #define LIBUSBHID_HIDPATH_H_ 37 37 38 #include <usb/ classes/hidparser.h>38 #include <usb/hid/hidparser.h> 39 39 #include <stdint.h> 40 40 #include <adt/list.h> -
uspace/lib/usbhid/include/usb/hid/hidreport.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 34 34 */ 35 35 36 #ifndef LIBUSB _HIDREPORT_H_37 #define LIBUSB _HIDREPORT_H_36 #ifndef LIBUSBHID_HIDREPORT_H_ 37 #define LIBUSBHID_HIDREPORT_H_ 38 38 39 #include <usb/dev drv.h>40 #include <usb/ classes/hidparser.h>39 #include <usb/dev/driver.h> 40 #include <usb/hid/hidparser.h> 41 41 42 42 /** -
uspace/lib/usbhid/include/usb/hid/hidtypes.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * USB HID report descriptor and report data parser 34 34 */ 35 #ifndef LIBUSB _HIDTYPES_H_36 #define LIBUSB _HIDTYPES_H_35 #ifndef LIBUSBHID_HIDTYPES_H_ 36 #define LIBUSBHID_HIDTYPES_H_ 37 37 38 38 #include <stdint.h> 39 39 #include <adt/list.h> 40 40 41 #define USB_HID_MAX_USAGES 2041 #define USB_HID_MAX_USAGES 0xffff 42 42 43 43 #define USB_HID_UINT32_TO_INT32(x, size) ((((x) & (1 << ((size) - 1))) != 0) ? -(~(x - 1) & ((1 << size) - 1)) : (x)) //(-(~((x) - 1))) … … 92 92 int32_t physical_minimum; 93 93 int32_t physical_maximum; 94 uint32_t usage_minimum;95 uint32_t usage_maximum;94 int32_t usage_minimum; 95 int32_t usage_maximum; 96 96 uint32_t unit; 97 97 uint32_t unit_exponent; 98 98 99 uint32_t *usages; 100 size_t usages_count; 99 101 100 102 int32_t value; … … 121 123 122 124 /** */ 123 uint32_t usage_minimum;124 /** */ 125 uint32_t usage_maximum;125 int32_t usage_minimum; 126 /** */ 127 int32_t usage_maximum; 126 128 /** */ 127 129 int32_t logical_minimum; -
uspace/lib/usbhid/include/usb/hid/iface.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * Client functions for accessing USB HID interface. 34 34 */ 35 #ifndef LIBUSB _CLASSES_HID_IFACE_H_36 #define LIBUSB _CLASSES_HID_IFACE_H_35 #ifndef LIBUSBHID_CLASSES_HID_IFACE_H_ 36 #define LIBUSBHID_CLASSES_HID_IFACE_H_ 37 37 38 38 #include <sys/types.h> -
uspace/lib/usbhid/include/usb/hid/request.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 39 39 #include <stdint.h> 40 40 41 #include <usb/ classes/hid.h>42 #include <usb/ pipes.h>41 #include <usb/hid/hid.h> 42 #include <usb/dev/pipes.h> 43 43 44 44 /*----------------------------------------------------------------------------*/ -
uspace/lib/usbhid/include/usb/hid/usages/core.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * @brief USB HID Usage Tables. 34 34 */ 35 #ifndef LIBUSB _HIDUT_H_36 #define LIBUSB _HIDUT_H_35 #ifndef LIBUSBHID_HIDUT_H_ 36 #define LIBUSBHID_HIDUT_H_ 37 37 38 38 /** USB/HID Usage Pages. */ … … 67 67 } usb_hidut_usage_generic_desktop_t; 68 68 69 typedef enum { 70 USB_HIDUT_USAGE_CONSUMER_CONSUMER_CONTROL = 1 71 } usb_hidut_usage_consumer_t; 72 69 73 70 74 #endif -
uspace/lib/usbhid/include/usb/hid/usages/kbdgen.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ -
uspace/lib/usbhid/include/usb/hid/usages/led.h
rd736fe38 rc7b5826 27 27 */ 28 28 29 /** @addtogroup libusb 29 /** @addtogroup libusbhid 30 30 * @{ 31 31 */ … … 33 33 * @brief USB HID Usage Tables - LED page. 34 34 */ 35 #ifndef LIBUSB _UTLED_H_36 #define LIBUSB _UTLED_H_35 #ifndef LIBUSBHID_UTLED_H_ 36 #define LIBUSBHID_UTLED_H_ 37 37 38 38 typedef enum {
Note:
See TracChangeset
for help on using the changeset viewer.
