8 static const char *
const TAG =
"pn7160_i2c";
12 ESP_LOGW(TAG,
"read_nfcc_() timeout waiting for IRQ");
13 return nfc::STATUS_FAILED;
18 return nfc::STATUS_FAILED;
23 rx.
get_message().resize(length + nfc::NCI_PKT_HEADER_SIZE);
25 return nfc::STATUS_FAILED;
29 if (this->
wait_for_irq_(pn7160::NFCC_DEFAULT_TIMEOUT,
false) != nfc::STATUS_OK) {
30 ESP_LOGW(TAG,
"read_nfcc_() post-read timeout waiting for IRQ line to clear");
31 return nfc::STATUS_FAILED;
33 return nfc::STATUS_OK;
38 return nfc::STATUS_OK;
40 return nfc::STATUS_FAILED;
44 PN7160::dump_config();
uint8_t read_nfcc(nfc::NciMessage &rx, uint16_t timeout) override
uint8_t wait_for_irq_(uint16_t timeout=NFCC_DEFAULT_TIMEOUT, bool pin_state=true)
uint8_t write_nfcc(nfc::NciMessage &tx) override
optional< std::array< uint8_t, N > > read_bytes_raw()
ErrorCode write(const uint8_t *data, size_t len, bool stop=true)
writes an array of bytes to a device using an I2CBus
std::vector< uint8_t > & get_message()
No error found during execution of method.
uint8_t get_payload_size(bool recompute=false)
Implementation of SPI Controller mode.
std::vector< uint8_t > encode()
void dump_config() override