Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DeviceRequest endian swapping



I'm updating our code to work with gcc4 and want to solve any lingering endian issues.

Since USB is inherently little endian, we swap a lot of things around to big endian and those are easy to take care of with conditional compile macros or the OSSwap routines.

However, I'm wondering about DeviceRequest's parameter block and wValue/wIndex. These values are typically (in the audio spec) compound values with an 8-bit value in the high byte and an 8-bit value in the low byte. Should we be putting these values in the same place on both big endian and little endian machines, or should we put them in a specific order for each endian type?

Thanks,
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.