Loading...
Searching...
No Matches
dfplayer Struct Reference

A DFPlayer Mini device descriptor. More...

Detailed Description

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.
 

Field Documentation

◆ buf

uint8_t dfplayer::buf[6]

Data buffer for response from DFPlayer.

Definition at line 187 of file dfplayer_types.h.

◆ busy_pin

gpio_t dfplayer::busy_pin

GPIO connected to the DFPlayer's busy pin.

Definition at line 193 of file dfplayer_types.h.

◆ cb_done

dfplayer_cb_done_t dfplayer::cb_done

Function to call when playing a track completed.

Definition at line 184 of file dfplayer_types.h.

◆ cb_src

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.

◆ file

dfplayer_file_t dfplayer::file

Currently played song.

Definition at line 188 of file dfplayer_types.h.

◆ flags

uint8_t dfplayer::flags

Flags storing info about the driver state.

Definition at line 190 of file dfplayer_types.h.

◆ last_event_us

uint32_t dfplayer::last_event_us

Time stamp of the last event in µs.

Definition at line 186 of file dfplayer_types.h.

◆ len

uint8_t dfplayer::len

Length of the frame in the buffer.

Definition at line 189 of file dfplayer_types.h.

◆ mutex

mutex_t dfplayer::mutex

Used to mutual exclusive access.

Definition at line 191 of file dfplayer_types.h.

◆ srcs

dfplayer_source_set_t dfplayer::srcs

Set of available playback sources.

Definition at line 195 of file dfplayer_types.h.

◆ state

dfplayer_rx_state_t dfplayer::state

Current state of the DFPlayer.

Definition at line 196 of file dfplayer_types.h.

◆ sync

mutex_t dfplayer::sync

Used to wait on ISR.

Definition at line 194 of file dfplayer_types.h.

◆ uart

uart_t dfplayer::uart

UART interface connected to the DFPlayer.

Definition at line 192 of file dfplayer_types.h.


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