Changes in uspace/lib/usb/src/usb.c [84eb7432:a90fc0c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/usb.c
r84eb7432 ra90fc0c 58 58 }; 59 59 60 static const char *str_direction[] = {61 "in",62 "out",63 "both"64 };65 66 60 /** String representation for USB transfer type. 67 61 * … … 90 84 } 91 85 92 /** String representation of USB direction.93 *94 * @param d The direction.95 * @return Direction as a string (in English).96 */97 const char *usb_str_direction(usb_direction_t d)98 {99 if (d >= ARR_SIZE(str_direction)) {100 return "invalid";101 }102 return str_direction[d];103 }104 105 86 /** String representation of USB speed. 106 87 *
Note:
See TracChangeset
for help on using the changeset viewer.