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

Default configuration for the MFRC522 controller. More...

Detailed Description

Default configuration for the MFRC522 controller.

Author
Hendrik van Essen hendr.nosp@m.ik.v.nosp@m.e@fu-.nosp@m.berl.nosp@m.in.de

Definition in file mfrc522_params.h.

#include <stdbool.h>
#include "periph/spi.h"
#include "mfrc522_regs.h"
+ Include dependency graph for mfrc522_params.h:

Go to the source code of this file.

Variables

static const mfrc522_params_t mfrc522_params []
 Allocate some memory to store the actual configuration.
 

Default configuration parameters for MFRC522 driver

#define MFRC522_PARAM_SPI_DEV   SPI_DEV(0)
 Default SPI device.
 
#define MFRC522_PARAM_SPI_CLK   SPI_CLK_5MHZ
 Default SPI speed.
 
#define MFRC522_PARAM_SCK_PIN   GPIO_PIN(0, 18)
 Default SCK pin.
 
#define MFRC522_PARAM_MISO_PIN   GPIO_PIN(0, 19)
 Default MISO pin.
 
#define MFRC522_PARAM_MOSI_PIN   GPIO_PIN(0, 23)
 Default MOSI pin.
 
#define MFRC522_PARAM_CS_PIN   GPIO_PIN(0, 5)
 Default CS pin.
 
#define MFRC522_PARAM_RST_PIN   GPIO_PIN(0, 17)
 Default RST pin.
 
#define MFRC522_PARAMS
 Struct with default configuration parameters.
 

Macro Definition Documentation

◆ MFRC522_PARAM_CS_PIN

#define MFRC522_PARAM_CS_PIN   GPIO_PIN(0, 5)

Default CS pin.

Definition at line 52 of file mfrc522_params.h.

◆ MFRC522_PARAM_MISO_PIN

#define MFRC522_PARAM_MISO_PIN   GPIO_PIN(0, 19)

Default MISO pin.

Definition at line 46 of file mfrc522_params.h.

◆ MFRC522_PARAM_MOSI_PIN

#define MFRC522_PARAM_MOSI_PIN   GPIO_PIN(0, 23)

Default MOSI pin.

Definition at line 49 of file mfrc522_params.h.

◆ MFRC522_PARAM_RST_PIN

#define MFRC522_PARAM_RST_PIN   GPIO_PIN(0, 17)

Default RST pin.

Definition at line 55 of file mfrc522_params.h.

◆ MFRC522_PARAM_SCK_PIN

#define MFRC522_PARAM_SCK_PIN   GPIO_PIN(0, 18)

Default SCK pin.

Definition at line 43 of file mfrc522_params.h.

◆ MFRC522_PARAM_SPI_CLK

#define MFRC522_PARAM_SPI_CLK   SPI_CLK_5MHZ

Default SPI speed.

Definition at line 40 of file mfrc522_params.h.

◆ MFRC522_PARAM_SPI_DEV

#define MFRC522_PARAM_SPI_DEV   SPI_DEV(0)

Default SPI device.

Definition at line 37 of file mfrc522_params.h.

◆ MFRC522_PARAMS

#define MFRC522_PARAMS
Value:
{ \
.spi_dev = MFRC522_PARAM_SPI_DEV, \
.spi_clk = MFRC522_PARAM_SPI_CLK, \
.sck_pin = MFRC522_PARAM_SCK_PIN, \
.miso_pin = MFRC522_PARAM_MISO_PIN, \
.mosi_pin = MFRC522_PARAM_MOSI_PIN, \
.cs_pin = MFRC522_PARAM_CS_PIN, \
.rst_pin = MFRC522_PARAM_RST_PIN, \
}
#define MFRC522_PARAM_SPI_CLK
Default SPI speed.
#define MFRC522_PARAM_SPI_DEV
Default SPI device.
#define MFRC522_PARAM_MISO_PIN
Default MISO pin.
#define MFRC522_PARAM_SCK_PIN
Default SCK pin.
#define MFRC522_PARAM_CS_PIN
Default CS pin.
#define MFRC522_PARAM_MOSI_PIN
Default MOSI pin.
#define MFRC522_PARAM_RST_PIN
Default RST pin.

Struct with default configuration parameters.

Definition at line 68 of file mfrc522_params.h.

Variable Documentation

◆ mfrc522_params

const mfrc522_params_t mfrc522_params[]
static
Initial value:
=
{
}
#define MFRC522_PARAMS
Struct with default configuration parameters.

Allocate some memory to store the actual configuration.

Definition at line 75 of file mfrc522_params.h.