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
}

and MP3/0042.mp3 as:

.number = 42
}

Definition at line 170 of file dfplayer_types.h.

#include <dfplayer_types.h>

Data Fields

union {
   uint16_t   number
 Number of the file (naming scheme "MP3/1337.mp3")
 
   struct {
      uint8_t   folder
 Folder of the file (naming scheme "42/123.mp3")
 
      uint8_t   file
 Name of the file (naming scheme "42/123.mp3")
 
   } 
 
}; 
 
dfplayer_scheme_t scheme
 Used naming scheme.
 

The documentation for this struct was generated from the following file:
dfplayer_file_t::file
uint8_t file
Name of the file (naming scheme "42/123.mp3")
Definition: dfplayer_types.h:175
DFPLAYER_SCHEME_FOLDER_FILE
@ DFPLAYER_SCHEME_FOLDER_FILE
Naming scheme <folder>/<file>
Definition: dfplayer_types.h:96
dfplayer_file_t
Data structure representing a file on the DFPlayer.
Definition: dfplayer_types.h:170
DFPLAYER_SCHEME_MP3_FILE
@ DFPLAYER_SCHEME_MP3_FILE
Naming scheme MP3/<number>
Definition: dfplayer_types.h:97