X hits on this document

PDF document

AVR32709: AVR32 UC3 Audio Decoder Over USB - page 8 / 29

97 views

0 shares

3 downloads

0 comments

8 / 29

5.4

Disk Navigation

The exploration is based on a selector displacement. The file list is the list of the files in the cur- rent directory according to the extension filter (.mp3, .m3u, .pls, .smp, ...)

The “file list”:

Table 5-2.

Disk Navigator Commands

Command Name

Input

Return

Output Extra result

Description

_

_

ai nav drive total_space

_

Capacity of the drive

_

_

ai nav drive free_space

_

Free space on the drive

ai nav dir root

True or false

ai nav file_goto

_

_

Position in file list

True or false

ai nav file_pos

_

_

File position

True or false

a i _ n a v _ d i r _ g o t o p a r e n t

ai nav file isdir

_

_

_

True or false

True or false

Product ID

_

_

_

ai nav dir cd

_

_

_

a i _ g e t _ p r o d u c t _ i d

a i _ g e t _ v e n d o r _ i d

ai nav drive set

_

_

_

True or false

a i _ g e t _ s e r i a l _ n u m b e r

ai nav drive nb

_

_

_

a i _ n a v _ d r i v e _ g e t

ai nav drive mount

_

_

_

Drive number

Vendor ID

Drive number

Length of the serial number in bytes

Number of drive

True or false

Serial number

Returns the product identifier (USB PID) of the connected device (if available).

Returns the vendor identifier (USB VID) of the connected device (if available).

Returns the serial number of the connected device (if available).

Returns the number of disks available.

Selects the disk but does not mount it: (0 for drive 0, 1 for drive 1...). Returns false in case of error.

Returns the selected disk number.

Mounts the selected disk. Returns false in case of error.

Returns the total space, in bytes, available on the device.

Returns the free space, in bytes, available on the device.

Initializes the file list on the root directory. Return false in case of error.

Enters in the current directory selected in file list. Return false in case of error.

Exits current directory and goes to parent directory. Then selects the folder from which it just exits, rather than selecting the first file of the parent directory. This simplifies navigation since the user firmware does not have to memorize this information. Returns false in case of error.

Returns true if the selected file is a directory, otherwise returns false.

Goes to a position in file list (0 for position 0, 1 for position 1...). Returns false in case of error.

Returns the file position of the selected file in the current directory. Returns FS NO SEL if no file is selected.

_

_

8

AVR32709

7817D–AVR32–05/11

Document info
Document views97
Page views97
Page last viewedSat Dec 10 05:27:34 UTC 2016
Pages29
Paragraphs1022
Words9236

Comments