2024-12-01 04:34:58 +00:00
|
|
|
/**
|
|
|
|
|
* @file BNO08xCbGeneric.hpp
|
|
|
|
|
* @author Myles Parfeniuk
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
// standard library includes
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @class BNO08xCbGeneric
|
|
|
|
|
*
|
2024-12-05 04:07:40 +00:00
|
|
|
* @brief Parent class to represent callback functions as generic type such that all flavors can be
|
|
|
|
|
* invoked by single type.
|
2024-12-01 04:34:58 +00:00
|
|
|
*/
|
|
|
|
|
class BNO08xCbGeneric
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
virtual void invoke(uint8_t rpt_ID) = 0;
|
|
|
|
|
virtual ~BNO08xCbGeneric() = default;
|
|
|
|
|
uint8_t rpt_ID;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
BNO08xCbGeneric(uint8_t rpt_ID)
|
|
|
|
|
: rpt_ID(rpt_ID)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
};
|