ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
rc522_spi.h
Go to the documentation of this file.
1#pragma once
2
6
15namespace esphome::rc522_spi {
16
17class RC522Spi : public rc522::RC522,
18 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
19 spi::DATA_RATE_4MHZ> {
20 public:
21 void setup() override;
22
23 void dump_config() override;
24
25 protected:
27 ) override;
28
34 uint8_t count,
35 uint8_t *values,
36 uint8_t rx_align
37 ) override;
39 uint8_t value
40 ) override;
41
47 uint8_t count,
48 uint8_t *values
49 ) override;
50};
51
52} // namespace esphome::rc522_spi
void pcd_write_register(PcdRegister reg, uint8_t value) override
Definition rc522_spi.cpp:99
uint8_t pcd_read_register(PcdRegister reg) override
Reads a uint8_t from the specified register in the MFRC522 chip.
Definition rc522_spi.cpp:27
void dump_config() override
Definition rc522_spi.cpp:18
The SPIDevice is what components using the SPI will create.
Definition spi.h:429
Library based on https://github.com/miguelbalboa/rfid and adapted to ESPHome by @glmnet.
Definition rc522_spi.cpp:8