# esp32_BNO08x: include/callback/BNO08xCbParamVoid.hpp Source File

Loading...
Searching...
No Matches
BNO08xCbParamVoid.hpp
Go to the documentation of this file.
#pragma once
#include "BNO08xCbGeneric.hpp"
class BNO08xCbParamVoid : public BNO08xCbGeneric
{
public:
BNO08xCbParamVoid(std::function<void(void)> cb_fxn, uint8_t rpt_ID)
: BNO08xCbGeneric(rpt_ID)
, cb_fxn(cb_fxn)
{
}
void invoke(uint8_t rpt_ID) override
{
cb_fxn();
}
private:
std::function<void(void)> cb_fxn;
};
BNO08xCbGeneric.hpp
BNO08xCbGeneric
Parent class to represent callback functions as generic type such that all flavors can be invoked by ...
Definition BNO08xCbGeneric.hpp:19
BNO08xCbGeneric::rpt_ID
uint8_t rpt_ID
Definition BNO08xCbGeneric.hpp:23
BNO08xCbParamVoid
Definition BNO08xCbParamVoid.hpp:16
BNO08xCbParamVoid::invoke
void invoke(uint8_t rpt_ID) override
Invokes contained callback function.
Definition BNO08xCbParamVoid.hpp:32
BNO08xCbParamVoid::BNO08xCbParamVoid
BNO08xCbParamVoid(std::function< void(void)> cb_fxn, uint8_t rpt_ID)
Definition BNO08xCbParamVoid.hpp:18
BNO08xCbParamVoid::cb_fxn
std::function< void(void)> cb_fxn
Wrapped callback function passed at register_cb().
Definition BNO08xCbParamVoid.hpp:38