mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 11:25:35 +00:00
Add the C++ `final` specifier to leaf, user-configurable component classes and automation action/trigger/condition primitives so that classes meant to be terminal cannot be subclassed by external components. Only classes never used as a base anywhere in the tree are marked. Part 13 of 21, split alphabetically by component (pmsa003i .. rc522).
21 lines
474 B
C++
21 lines
474 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/pn7160/pn7160.h"
|
|
#include "esphome/components/i2c/i2c.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace esphome::pn7160_i2c {
|
|
|
|
class PN7160I2C final : public pn7160::PN7160, public i2c::I2CDevice {
|
|
public:
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
uint8_t read_nfcc(nfc::NciMessage &rx, uint16_t timeout) override;
|
|
uint8_t write_nfcc(nfc::NciMessage &tx) override;
|
|
};
|
|
|
|
} // namespace esphome::pn7160_i2c
|