|
PCAL9555 Driver 0.1.0
API reference
|
CRTP base of the platform I2C port. More...
#include <pcal9555_i2c_interface.hpp>
Public Member Functions | |
| I2cInterface (const I2cInterface &)=delete | |
| Ports are not copied: the driver holds a reference. | |
| I2cInterface & | operator= (const I2cInterface &)=delete |
| Ports are not copied: the driver holds a reference. | |
Protected Member Functions | |
| I2cInterface () noexcept=default | |
| Only the derived port is constructed. | |
| ~I2cInterface () noexcept=default | |
| Destroyed through the derived port only. | |
CRTP base of the platform I2C port.
Derive class MyPort : public pcal9555::I2cInterface<MyPort> and implement the hooks in this file's description. The base declares no hook itself (a forwarding hook would turn a missing override into infinite recursion) and no data; the driver checks your class with the I2cPort concept, so a missing or misdeclared hook is a compile error that names it.
| Derived | Your port class. |