Changeset f97717d9 in mainline for uspace/lib/usb/include/usb/classes/hidreport.h
- Timestamp:
- 2011-03-25T16:22:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da3dafc, e6223239
- Parents:
- d8421c4 (diff), f08c560 (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/classes/hidreport.h
rd8421c4 rf97717d9 1 1 /* 2 * Copyright (c) 201 0Lubos Slovak2 * Copyright (c) 2011 Lubos Slovak 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup drvusbhid29 /** @addtogroup libusb 30 30 * @{ 31 31 */ 32 32 /** @file 33 * Descriptor dumping.33 * USB HID report parser initialization from descriptors. 34 34 */ 35 35 36 #ifndef USBHID_DESCDUMP_H_37 #define USBHID_DESCDUMP_H_36 #ifndef LIBUSB_HIDREPORT_H_ 37 #define LIBUSB_HIDREPORT_H_ 38 38 39 #include <usb/de scriptor.h>40 #include <usb/classes/hid .h>39 #include <usb/devdrv.h> 40 #include <usb/classes/hidparser.h> 41 41 42 void dump_standard_configuration_descriptor( 43 int index, const usb_standard_configuration_descriptor_t *d); 42 /** 43 * Retrieves the Report descriptor from the USB device and initializes the 44 * report parser. 45 * 46 * \param dev USB device representing a HID device. 47 * \param parser HID Report parser. 48 * 49 * \retval EOK if successful. 50 * \retval EINVAL if one of the parameters is not given (is NULL). 51 * \retval ENOENT if there are some descriptors missing. 52 * \retval ENOMEM if an error with allocation occured. 53 * \retval EINVAL if the Report descriptor's size does not match the size 54 * from the interface descriptor. 55 * \return Other value inherited from function usb_pipe_start_session(), 56 * usb_pipe_end_session() or usb_request_get_descriptor(). 57 */ 58 int usb_hid_process_report_descriptor(usb_device_t *dev, 59 usb_hid_report_parser_t *parser); 44 60 45 void dump_standard_interface_descriptor( 46 const usb_standard_interface_descriptor_t *d); 47 48 void dump_standard_endpoint_descriptor( 49 const usb_standard_endpoint_descriptor_t *d); 50 51 void dump_standard_hid_descriptor_header( 52 const usb_standard_hid_descriptor_t *d); 53 54 void dump_standard_hid_class_descriptor_info( 55 const usb_standard_hid_class_descriptor_info_t *d); 56 57 void dump_hid_class_descriptor(int index, uint8_t type, 58 const uint8_t *d, size_t size); 59 60 #endif /* USBHID_DESCDUMP_H_ */ 61 #endif /* LIBUSB_HIDREPORT_H_ */ 61 62 62 63 /**
Note:
See TracChangeset
for help on using the changeset viewer.