Hear-it! Solution Kit
R12UZ0012EG0110 Rev. 1.10
Page 26 of 34
Apr 03, 2017
6.1.4
USB Device File Searching
The sample currently searches the root directory of the USB device for a folder named ‘Music’. If the folder
exists, the sample searches for ‘.wav’ files within the ‘Music’ folder and stores the file names in a RAM in a ‘left
child right sibling’ data structure. Currently, the sample does not search directories other than the root and the
‘Music’ directory. It simply adds the found ‘.wav’ files in ‘Music’ folder as “right-siblings” of the first found ‘.wav’
file. However, the data structure can easily be adapted to implement a more complex search tool that includes
searching multiple directories.
0:
Music
Directory 2
Directory 3
Directory 4
Audio1.wav
Audio2.wav
Audio3.wav
Audio4.wav
Files and Directories on Mass Storage
Left Child Right Sibling Representation of Files in Mass
Storage
Left child
Left child
Right sibling
0:
Music
Directory 2
Directory 3
Directory 4
Audio1.wav
Audio2.wav
Audio3.wav
Audio4.wav
Figure 6-3 : Representation of Files in Mass Storage Device
Содержание RX231
Страница 34: ...RX231 Group R12UZ0012EG0110 ...