7 static const char *
const TAG =
"rc522_i2c";
23 ESP_LOGVV(TAG,
"read_register_(%x) -> %u", reg, value);
40 uint8_t b = values[0];
46 uint8_t mask = 0xFF << rx_align;
48 values[0] = (b & ~mask) | (values[0] & mask);
bool read_byte(uint8_t a_register, uint8_t *data, bool stop=true)
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
bool read_bytes(uint8_t a_register, uint8_t *data, uint8_t len)
Compat APIs All methods below have been added for compatibility reasons.
void pcd_write_register(PcdRegister reg, uint8_t value) override
uint8_t pcd_read_register(PcdRegister reg) override
Reads a uint8_t from the specified register in the MFRC522 chip.
bool write_byte(uint8_t a_register, uint8_t data, bool stop=true)
Implementation of SPI Controller mode.
void dump_config() override
bool write_bytes(uint8_t a_register, const uint8_t *data, uint8_t len, bool stop=true)