ESPHome  2022.5.1
pn532_i2c.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace pn532_i2c {
9 
10 class PN532I2C : public pn532::PN532, public i2c::I2CDevice {
11  public:
12  void dump_config() override;
13 
14  protected:
15  bool write_data(const std::vector<uint8_t> &data) override;
16  bool read_data(std::vector<uint8_t> &data, uint8_t len) override;
17  bool read_response(uint8_t command, std::vector<uint8_t> &data) override;
18  uint8_t read_response_length_();
19 };
20 
21 } // namespace pn532_i2c
22 } // namespace esphome
bool read_data(std::vector< uint8_t > &data, uint8_t len) override
Definition: pn532_i2c.cpp:19
bool write_data(const std::vector< uint8_t > &data) override
Definition: pn532_i2c.cpp:15
std::string size_t len
Definition: helpers.h:278
Definition: a4988.cpp:4
void dump_config() override
Definition: pn532_i2c.cpp:126
bool read_response(uint8_t command, std::vector< uint8_t > &data) override
Definition: pn532_i2c.cpp:42