diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-10-28 14:02:51 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-10-28 14:02:51 +0000 |
commit | fec406c7a29f015c7fe1ded881e565a73b1e0d09 (patch) | |
tree | 7fc78bbabd16e0220152b9be07107bbaf2512ce7 /firmware/export | |
parent | b77893e4d5636008ceee56929c7477f7dd064ca9 (diff) |
add some informations about this file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15344 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/usb_ch9.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/firmware/export/usb_ch9.h b/firmware/export/usb_ch9.h index a40bc4e4ae..b8fe181158 100644 --- a/firmware/export/usb_ch9.h +++ b/firmware/export/usb_ch9.h @@ -21,6 +21,33 @@ * ****************************************************************************/ +/* + * This file holds USB constants and structures that are needed for + * USB device APIs. These are used by the USB device model, which is + * defined in chapter 9 of the USB 2.0 specification and in the + * Wireless USB 1.0 (spread around). + * + * USB 2.0 adds an additional "On The Go" (OTG) mode, which lets systems + * act either as a USB master/host or as a USB slave/device. That means + * the master and slave side APIs benefit from working well together. + * + * There's also "Wireless USB", using low power short range radios for + * peripheral interconnection but otherwise building on the USB framework. + * + * Note all descriptors are declared '__attribute__((packed))' so that: + * + * [a] they never get padded, either internally (USB spec writers + * probably handled that) or externally; + * + * [b] so that accessing bigger-than-a-bytes fields will never + * generate bus errors on any platform, even when the location of + * its descriptor inside a bundle isn't "naturally aligned", and + * + * [c] for consistency, removing all doubt even when it appears to + * someone that the two other points are non-issues for that + * particular descriptor type. + */ + #ifndef _CH9_H_ #define _CH9_H_ |