ESPHome  2024.12.2
rc522_i2c.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace rc522_i2c {
9 
10 class RC522I2C : public rc522::RC522, public i2c::I2CDevice {
11  public:
12  void dump_config() override;
13 
14  protected:
16  ) override;
17 
23  uint8_t count,
24  uint8_t *values,
25  uint8_t rx_align
26  ) override;
28  uint8_t value
29  ) override;
30 
36  uint8_t count,
37  uint8_t *values
38  ) override;
39 };
40 
41 } // namespace rc522_i2c
42 } // namespace esphome
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Definition: i2c.h:149
void pcd_write_register(PcdRegister reg, uint8_t value) override
Definition: rc522_i2c.cpp:52
uint8_t pcd_read_register(PcdRegister reg) override
Reads a uint8_t from the specified register in the MFRC522 chip.
Definition: rc522_i2c.cpp:18
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
void dump_config() override
Definition: rc522_i2c.cpp:9
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133