BNO08X Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
bno08x::HubInterface< Derived > Class Template Reference

CRTP base of the platform port. More...

#include <bno08x_interface.hpp>

Public Member Functions

 HubInterface (const HubInterface &)=delete
 Ports are not copied: the driver holds a reference.
 
HubInterface & operator= (const HubInterface &)=delete
 Ports are not copied: the driver holds a reference.
 

Protected Member Functions

 HubInterface () noexcept=default
 Only the derived port is constructed.
 
 ~HubInterface () noexcept=default
 Destroyed through the derived port only.
 

Detailed Description

template<typename Derived>
class bno08x::HubInterface< Derived >

CRTP base of the platform port.

Derive class MyPort : public bno08x::HubInterface<MyPort>, add static constexpr Transport kTransport and implement the hooks of your transport. The base declares no hook itself (a forwarding hook would turn a missing override into infinite recursion).

Template Parameters
DerivedYour port class.

The documentation for this class was generated from the following file: