Changes in uspace/drv/usbhid/descdump.c [45dd8bf:66d5062] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/descdump.c
r45dd8bf r66d5062 35 35 36 36 #include <usb/classes/hid.h> 37 #include <stdio.h>38 #include <assert.h>39 37 40 38 #include "descdump.h" … … 44 42 #define BYTES_PER_LINE 12 45 43 46 /**47 * Dumps the given buffer in hexadecimal format to standard output.48 *49 * @param msg Message to print before the buffer.50 * @param buffer Buffer to print.51 * @param length Size of the buffer in bytes.52 */53 44 static void dump_buffer(const char *msg, const uint8_t *buffer, size_t length) 54 45 { … … 69 60 #define INDENT " " 70 61 71 /**72 * Print standard configuration descriptor to standard output.73 *74 * @param index Index of the descriptor.75 * @param d Standard configuration descriptor to print.76 */77 62 void dump_standard_configuration_descriptor( 78 63 int index, const usb_standard_configuration_descriptor_t *d) … … 97 82 } 98 83 99 /**100 * Print standard interface descriptor to standard output.101 *102 * @param d Standard interface descriptor to print.103 */104 84 void dump_standard_interface_descriptor( 105 85 const usb_standard_interface_descriptor_t *d) … … 117 97 } 118 98 119 /**120 * Print standard endpoint descriptor to standard output.121 *122 * @param d Standard endpoint descriptor to print.123 */124 99 void dump_standard_endpoint_descriptor( 125 100 const usb_standard_endpoint_descriptor_t *d) … … 149 124 } 150 125 151 /**152 * Print standard HID descriptor to standard output.153 *154 * @param d Standard HID descriptor to print.155 */156 126 void dump_standard_hid_descriptor_header( 157 127 const usb_standard_hid_descriptor_t *d) … … 167 137 } 168 138 169 /**170 * Print HID class-specific descriptor header (type and length) to standard171 * output.172 *173 * @param d HID class-specific descriptor header to print.174 */175 139 void dump_standard_hid_class_descriptor_info( 176 140 const usb_standard_hid_class_descriptor_info_t *d) … … 180 144 } 181 145 182 /**183 * Print HID class-specific descriptor (without the header) to standard output.184 *185 * @param index Index of the descriptor.186 * @param type Type of the HID class-specific descriptor (Report or Physical).187 * @param d HID class descriptor to print.188 * @param size Size of the descriptor in bytes.189 */190 146 void dump_hid_class_descriptor(int index, uint8_t type, 191 147 const uint8_t *d, size_t size )
Note:
See TracChangeset
for help on using the changeset viewer.