7static const char *
const TAG =
"pn7160_i2c";
11 ESP_LOGW(TAG,
"read_nfcc_() timeout waiting for IRQ");
12 return nfc::STATUS_FAILED;
17 return nfc::STATUS_FAILED;
24 return nfc::STATUS_FAILED;
28 if (this->
wait_for_irq_(pn7160::NFCC_DEFAULT_TIMEOUT,
false) != nfc::STATUS_OK) {
29 ESP_LOGW(TAG,
"read_nfcc_() post-read timeout waiting for IRQ line to clear");
30 return nfc::STATUS_FAILED;
32 return nfc::STATUS_OK;
36 auto encoded = tx.
encode();
38 return nfc::STATUS_OK;
40 return nfc::STATUS_FAILED;
44 PN7160::dump_config();
ErrorCode write(const uint8_t *data, size_t len) const
writes an array of bytes to a device using an I2CBus
optional< std::array< uint8_t, N > > read_bytes_raw()
uint8_t get_payload_size(bool recompute=false)
std::vector< uint8_t > encode()
std::vector< uint8_t > & get_message()
uint8_t wait_for_irq_(uint16_t timeout=NFCC_DEFAULT_TIMEOUT, bool pin_state=true)
uint8_t write_nfcc(nfc::NciMessage &tx) override
uint8_t read_nfcc(nfc::NciMessage &rx, uint16_t timeout) override
void dump_config() override
@ ERROR_OK
No error found during execution of method.