Data structure representing a file on the DFPlayer. More...
Data structure representing a file on the DFPlayer.
If dfplayer_file_t::scheme is DFPLAYER_SCHEME_MP3_FILE, dfplayer_file_t::number holds the number of the represented file. If dfplayer_file_t::scheme is DFPLAYER_SCHEME_FOLDER_FILE, dfplayer_file_t::folder holds the number of the folder containing the represented file and dfplayer_file_t::file the number of the file.
E.g. file 32/123.mp3
would be represented as:
and MP3/0042.mp3
as:
Definition at line 169 of file dfplayer_types.h.
#include <dfplayer_types.h>
Data Fields | ||
union { | ||
uint16_t number | ||
Number of the file (naming scheme "MP3/1337.mp3") More... | ||
struct { | ||
uint8_t folder | ||
Folder of the file (naming scheme "42/123.mp3") More... | ||
uint8_t file | ||
Name of the file (naming scheme "42/123.mp3") More... | ||
} | ||
}; | ||
dfplayer_scheme_t | scheme | |
Used naming scheme. | ||
uint8_t dfplayer_file_t::file |
Name of the file (naming scheme "42/123.mp3")
Definition at line 174 of file dfplayer_types.h.
uint8_t dfplayer_file_t::folder |
Folder of the file (naming scheme "42/123.mp3")
Definition at line 173 of file dfplayer_types.h.
uint16_t dfplayer_file_t::number |
Number of the file (naming scheme "MP3/1337.mp3")
Definition at line 171 of file dfplayer_types.h.
dfplayer_scheme_t dfplayer_file_t::scheme |
Used naming scheme.
Definition at line 177 of file dfplayer_types.h.