AnsweredAssumed Answered

USB DMA Read Endian Select

Question asked by Austin Wilhite on Oct 25, 2019
Latest reply on Oct 29, 2019 by Hui_Ma

Operating in USB Host Mode, I'm using the USB Audio class to read 16-bit, 16kHz PCM audio from a connected microphone.

 

The algorithm that processes the audio requires that the samples be in big-endian format; however, it appears that all USB data is transferred in little-endian.

 

I noticed that the USB Device Mode has an Endian Select field to switch between the two types, but I have not been able to find any mechanism for converting from little-endian to big-endian when reading USB audio in host mode.

 

Can anyone suggest a mechanism to accomplish this?

Outcomes