Loading...
Searching...
No Matches
dfplayer_params.h File Reference

Default configuration for the DFPlayer Mini driver. More...

Detailed Description

Default configuration for the DFPlayer Mini driver.

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file dfplayer_params.h.

#include "board.h"
#include "dfplayer_types.h"
#include "kernel_defines.h"
+ Include dependency graph for dfplayer_params.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DFPLAYER_NUMOF   ARRAY_SIZE(dfplayer_params)
 Number of DFPlayer descriptors present.
 

Variables

static const dfplayer_params_t dfplayer_params []
 DFPlayer Mini configuration.
 

Default configuration parameters for the DFPlayer Mini driver

#define DFPLAYER_PARAM_UART   (UART_DEV(0))
 The UART device connected to the DFPlayer Mini.
 
#define DFPLAYER_PARAM_BUSY_PIN   (GPIO_UNDEF)
 The GPIO connected to the busy pin of the DFPlayer Mini.
 
#define DFPLAYER_PARAM_VOLUME   (15)
 The volume to set during initialization.
 
#define DFPLAYER_PARAMS
 Default initialization parameters of the DFPlayer Mini driver.
 

Macro Definition Documentation

◆ DFPLAYER_NUMOF

#define DFPLAYER_NUMOF   ARRAY_SIZE(dfplayer_params)

Number of DFPlayer descriptors present.

Definition at line 69 of file dfplayer_params.h.

◆ DFPLAYER_PARAM_BUSY_PIN

#define DFPLAYER_PARAM_BUSY_PIN   (GPIO_UNDEF)

The GPIO connected to the busy pin of the DFPlayer Mini.

Definition at line 39 of file dfplayer_params.h.

◆ DFPLAYER_PARAM_UART

#define DFPLAYER_PARAM_UART   (UART_DEV(0))

The UART device connected to the DFPlayer Mini.

Definition at line 35 of file dfplayer_params.h.

◆ DFPLAYER_PARAM_VOLUME

#define DFPLAYER_PARAM_VOLUME   (15)

The volume to set during initialization.

Definition at line 43 of file dfplayer_params.h.

◆ DFPLAYER_PARAMS

#define DFPLAYER_PARAMS
Value:
{\
.busy_pin = DFPLAYER_PARAM_BUSY_PIN, \
.volume = DFPLAYER_PARAM_VOLUME, \
}
#define DFPLAYER_PARAM_BUSY_PIN
The GPIO connected to the busy pin of the DFPlayer Mini.
#define DFPLAYER_PARAM_UART
The UART device connected to the DFPlayer Mini.
#define DFPLAYER_PARAM_VOLUME
The volume to set during initialization.

Default initialization parameters of the DFPlayer Mini driver.

Definition at line 50 of file dfplayer_params.h.

Variable Documentation

◆ dfplayer_params

const dfplayer_params_t dfplayer_params[]
static
Initial value:
=
{
}
#define DFPLAYER_PARAMS
Default initialization parameters of the DFPlayer Mini driver.

DFPlayer Mini configuration.

Definition at line 61 of file dfplayer_params.h.