A DFPlayer Mini device descriptor. More...
A DFPlayer Mini device descriptor.
Definition at line 183 of file dfplayer_types.h.
#include <dfplayer_types.h>
Data Fields | |
dfplayer_cb_done_t | cb_done |
Function to call when playing a track completed. | |
dfplayer_cb_src_t | cb_src |
Function to call when set of available playback sources changes. | |
uint32_t | last_event_us |
Time stamp of the last event in µs. | |
uint8_t | buf [6] |
Data buffer for response from DFPlayer. | |
dfplayer_file_t | file |
Currently played song. | |
uint8_t | len |
Length of the frame in the buffer. | |
uint8_t | flags |
Flags storing info about the driver state. | |
mutex_t | mutex |
Used to mutual exclusive access. | |
uart_t | uart |
UART interface connected to the DFPlayer. | |
gpio_t | busy_pin |
GPIO connected to the DFPlayer's busy pin. | |
mutex_t | sync |
Used to wait on ISR. | |
dfplayer_source_set_t | srcs |
Set of available playback sources. | |
dfplayer_rx_state_t | state |
Current state of the DFPlayer. | |
uint8_t dfplayer::buf[6] |
Data buffer for response from DFPlayer.
Definition at line 187 of file dfplayer_types.h.
gpio_t dfplayer::busy_pin |
GPIO connected to the DFPlayer's busy pin.
Definition at line 193 of file dfplayer_types.h.
dfplayer_cb_done_t dfplayer::cb_done |
Function to call when playing a track completed.
Definition at line 184 of file dfplayer_types.h.
dfplayer_cb_src_t dfplayer::cb_src |
Function to call when set of available playback sources changes.
Definition at line 185 of file dfplayer_types.h.
dfplayer_file_t dfplayer::file |
Currently played song.
Definition at line 188 of file dfplayer_types.h.
uint8_t dfplayer::flags |
Flags storing info about the driver state.
Definition at line 190 of file dfplayer_types.h.
uint32_t dfplayer::last_event_us |
Time stamp of the last event in µs.
Definition at line 186 of file dfplayer_types.h.
uint8_t dfplayer::len |
Length of the frame in the buffer.
Definition at line 189 of file dfplayer_types.h.
mutex_t dfplayer::mutex |
Used to mutual exclusive access.
Definition at line 191 of file dfplayer_types.h.
dfplayer_source_set_t dfplayer::srcs |
Set of available playback sources.
Definition at line 195 of file dfplayer_types.h.
dfplayer_rx_state_t dfplayer::state |
Current state of the DFPlayer.
Definition at line 196 of file dfplayer_types.h.
mutex_t dfplayer::sync |
Used to wait on ISR.
Definition at line 194 of file dfplayer_types.h.
uart_t dfplayer::uart |
UART interface connected to the DFPlayer.
Definition at line 192 of file dfplayer_types.h.