Loading...
Searching...
No Matches
dfplayer_file_t Struct Reference

Data structure representing a file on the DFPlayer. More...

Detailed Description

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:

.folder = 32,
.file = 123
}
@ DFPLAYER_SCHEME_FOLDER_FILE
Naming scheme <folder>/<file>
Data structure representing a file on the DFPlayer.
uint8_t file
Name of the file (naming scheme "42/123.mp3")
dfplayer_scheme_t scheme
Used naming scheme.

and MP3/0042.mp3 as:

.number = 42
}
@ DFPLAYER_SCHEME_MP3_FILE
Naming scheme MP3/<number>

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.
 

Field Documentation

◆ file

uint8_t dfplayer_file_t::file

Name of the file (naming scheme "42/123.mp3")

Definition at line 174 of file dfplayer_types.h.

◆ folder

uint8_t dfplayer_file_t::folder

Folder of the file (naming scheme "42/123.mp3")

Definition at line 173 of file dfplayer_types.h.

◆ number

uint16_t dfplayer_file_t::number

Number of the file (naming scheme "MP3/1337.mp3")

Definition at line 171 of file dfplayer_types.h.

◆ scheme

dfplayer_scheme_t dfplayer_file_t::scheme

Used naming scheme.

Definition at line 177 of file dfplayer_types.h.


The documentation for this struct was generated from the following file: