Changeset aaff605 in mainline
- Timestamp:
- 2011-03-21T15:35:29Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a90fc0c
- Parents:
- 7102aa5
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/usb.h
r7102aa5 raaff605 78 78 USB_SPEED_HIGH 79 79 } usb_speed_t; 80 81 const char *usb_str_speed(usb_speed_t); 82 80 83 81 84 /** USB request type target. */ -
uspace/lib/usb/src/usb.c
r7102aa5 raaff605 36 36 #include <errno.h> 37 37 38 static const char *str_speed[] = { 39 "low", 40 "full", 41 "high" 42 }; 43 static size_t str_speed_size = sizeof(str_speed)/sizeof(str_speed[0]); 38 44 39 45 /** String representation for USB transfer type. … … 58 64 } 59 65 66 /** String representation of USB speed. 67 * 68 * @param s The speed. 69 * @return USB speed as a string (in English). 70 */ 71 const char *usb_str_speed(usb_speed_t s) 72 { 73 if (s >= str_speed_size) { 74 return "invalid"; 75 } 76 return str_speed[s]; 77 } 78 60 79 /** 61 80 * @}
Note:
See TracChangeset
for help on using the changeset viewer.