Fix PN532 SPI communication (#1511)

This commit is contained in:
Jesse Hills
2021-02-06 11:02:20 +13:00
committed by GitHub
parent bccaa78a90
commit b351cd94d7
8 changed files with 203 additions and 103 deletions
+2
View File
@@ -14,6 +14,8 @@ class PN532I2C : public pn532::PN532, public i2c::I2CDevice {
protected:
bool write_data(const std::vector<uint8_t> &data) override;
bool read_data(std::vector<uint8_t> &data, uint8_t len) override;
bool read_response(uint8_t command, std::vector<uint8_t> &data) override;
uint8_t read_response_length_();
};
} // namespace pn532_i2c