Types used in the DFPlayer Mini Device Driver. More...
Types used in the DFPlayer Mini Device Driver.
Definition in file dfplayer_types.h.
#include <stdbool.h>#include <stdint.h>#include "mutex.h"#include "periph/gpio.h"#include "periph/uart.h"
 Include dependency graph for dfplayer_types.h:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | dfplayer_params_t | 
| Initialization parameters of a DFPlayer Mini device descriptor.  More... | |
| struct | dfplayer_file_t | 
| Data structure representing a file on the DFPlayer.  More... | |
| struct | dfplayer | 
| A DFPlayer Mini device descriptor.  More... | |
| enum | dfplayer_rx_state_t {  DFPLAYER_RX_STATE_START , DFPLAYER_RX_STATE_VERSION , DFPLAYER_RX_STATE_LENGTH , DFPLAYER_RX_STATE_DATA , DFPLAYER_RX_STATE_NUMOF }  | 
| Enumeration of the RX states of the DFPlayer driver.  More... | |
| enum | dfplayer_eq_t {  DFPLAYER_EQ_NORMAL , DFPLAYER_EQ_POP , DFPLAYER_EQ_ROCK , DFPLAYER_EQ_JAZZ , DFPLAYER_EQ_CLASSIC , DFPLAYER_EQ_BASE , DFPLAYER_EQ_NUMOF }  | 
| Enumeration of the equalizer settings supported by the DFPlayer.  More... | |
| enum | dfplayer_mode_t {  DFPLAYER_MODE_UNKOWN , DFPLAYER_MODE_REPEAT_DIR , DFPLAYER_MODE_REPEAT , DFPLAYER_MODE_RANDOM , DFPLAYER_MODE_NORMAL , DFPLAYER_MODE_NUMOF }  | 
| Enumeration of the playback modes supported by the DFPlayer.  More... | |
| enum | dfplayer_source_t {  DFPLAYER_SOURCE_USB , DFPLAYER_SOURCE_SDCARD , DFPLAYER_SOURCE_AUX , DFPLAYER_SOURCE_SLEEP , DFPLAYER_SOURCE_FLASH , DFPLAYER_SOURCE_NUMOF }  | 
| Enumeration of the different sources for playback supported.  More... | |
| enum | dfplayer_state_t { DFPLAYER_STATE_PLAYING , DFPLAYER_STATE_PAUSED , DFPLAYER_STATE_STOPPED , DFPLAYER_STATE_NUMOF } | 
| Enumeration of the detectable states of the DFPlayer.  More... | |
| enum | dfplayer_scheme_t { DFPLAYER_SCHEME_FOLDER_FILE , DFPLAYER_SCHEME_MP3_FILE , DFPLAYER_SCHEME_NUMOF } | 
| Enumeration of the different naming schemes.  More... | |
| typedef uint8_t | dfplayer_source_set_t | 
| Set of DFPlayer playback sources.  | |
| typedef struct dfplayer | dfplayer_t | 
| A DFPlayer Mini device descriptor.  | |
| typedef void(* | dfplayer_cb_done_t) (dfplayer_t *dev, dfplayer_source_t src, uint16_t track) | 
| Signature of the function called when a playback of track completed.  More... | |
| typedef void(* | dfplayer_cb_src_t) (dfplayer_t *dev, dfplayer_source_set_t srcs) | 
| Signature of the function called when a medium was inserted/ejected.  More... | |
| typedef void(* dfplayer_cb_done_t) (dfplayer_t *dev, dfplayer_source_t src, uint16_t track) | 
Signature of the function called when a playback of track completed.
| dev | Device descriptor of the DFPlayer triggering the event | 
| src | Source medium the track was played from | 
| track | The number of the track that was played | 
Definition at line 118 of file dfplayer_types.h.
| typedef void(* dfplayer_cb_src_t) (dfplayer_t *dev, dfplayer_source_set_t srcs) | 
Signature of the function called when a medium was inserted/ejected.
| dev | Device descriptor of the DFPlayer triggering the event | 
| srcs | Set of sources currently available for playback | 
Definition at line 129 of file dfplayer_types.h.
| enum dfplayer_eq_t | 
Enumeration of the equalizer settings supported by the DFPlayer.
Definition at line 46 of file dfplayer_types.h.
| enum dfplayer_mode_t | 
Enumeration of the playback modes supported by the DFPlayer.
Definition at line 59 of file dfplayer_types.h.
| enum dfplayer_rx_state_t | 
Enumeration of the RX states of the DFPlayer driver.
Definition at line 35 of file dfplayer_types.h.
| enum dfplayer_scheme_t | 
Enumeration of the different naming schemes.
| Enumerator | |
|---|---|
| DFPLAYER_SCHEME_FOLDER_FILE | Naming scheme   | 
| DFPLAYER_SCHEME_MP3_FILE | Naming scheme   | 
| DFPLAYER_SCHEME_NUMOF | Number of naming schemes supported.  | 
Definition at line 93 of file dfplayer_types.h.
| enum dfplayer_source_t | 
Enumeration of the different sources for playback supported.
Definition at line 71 of file dfplayer_types.h.
| enum dfplayer_state_t | 
Enumeration of the detectable states of the DFPlayer.
Definition at line 83 of file dfplayer_types.h.