ESPHome 2026.5.1
Loading...
Searching...
No Matches
pn7160_spi.h
Go to the documentation of this file.
1#pragma once
2
7
8#include <vector>
9
10namespace esphome::pn7160_spi {
11
12static constexpr uint8_t TDD_SPI_READ = 0xFF;
13static constexpr uint8_t TDD_SPI_WRITE = 0x0A;
14
16 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
17 spi::DATA_RATE_4MHZ> {
18 public:
19 void setup() override;
20
21 void dump_config() override;
22
23 protected:
24 uint8_t read_nfcc(nfc::NciMessage &rx, uint16_t timeout) override;
25 uint8_t write_nfcc(nfc::NciMessage &tx) override;
26};
27
28} // namespace esphome::pn7160_spi
uint8_t read_nfcc(nfc::NciMessage &rx, uint16_t timeout) override
uint8_t write_nfcc(nfc::NciMessage &tx) override
The SPIDevice is what components using the SPI will create.
Definition spi.h:429