esp32_BNO08x 1.4 C++ BNO08x IMU driver component for esp-idf.

BNO08xCbGeneric.hpp
Go to the documentation of this file.
1
6#pragma once
7
8// standard library includes
9#include <stdint.h>
10#include <functional>
11
18 class BNO08xCbGeneric
19{
20 public:
21 virtual void invoke(uint8_t rpt_ID) = 0;
22 virtual ~BNO08xCbGeneric() = default;
23 uint8_t rpt_ID;
24
25 protected:
26 BNO08xCbGeneric(uint8_t rpt_ID)
27 : rpt_ID(rpt_ID)
28 {
29 }
30};
BNO08xCbGeneric
Parent class to represent callback functions as generic type such that all flavors can be invoked by ...
Definition: BNO08xCbGeneric.hpp:19
BNO08xCbGeneric::invoke
virtual void invoke(uint8_t rpt_ID)=0
BNO08xCbGeneric::~BNO08xCbGeneric
virtual ~BNO08xCbGeneric()=default
BNO08xCbGeneric::BNO08xCbGeneric
BNO08xCbGeneric(uint8_t rpt_ID)
Definition: BNO08xCbGeneric.hpp:26
BNO08xCbGeneric::rpt_ID
uint8_t rpt_ID
Definition: BNO08xCbGeneric.hpp:23