ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
rc522_i2c.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::rc522_i2c {
8
9class RC522I2C : public rc522::RC522, public i2c::I2CDevice {
10 public:
11 void dump_config() override;
12
13 protected:
15 ) override;
16
22 uint8_t count,
23 uint8_t *values,
24 uint8_t rx_align
25 ) override;
27 uint8_t value
28 ) override;
29
35 uint8_t count,
36 uint8_t *values
37 ) override;
38};
39
40} // namespace esphome::rc522_i2c
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Definition i2c.h:152
void dump_config() override
Definition rc522_i2c.cpp:8
uint8_t pcd_read_register(PcdRegister reg) override
Reads a uint8_t from the specified register in the MFRC522 chip.
Definition rc522_i2c.cpp:17
void pcd_write_register(PcdRegister reg, uint8_t value) override
Definition rc522_i2c.cpp:51