modm API documentation
modm::sab::Callable Struct Reference

Base-class for every object which should be used inside a callback. More...

#include <modm/communication/sab/slave.hpp>

Detailed Description

Base-class for every object which should be used inside a callback.

Example:

class Sensor : public modm::sab::Callable
{
public:
void
sendValue(modm::sab::Response& response)
{
response.send(this->value);
}
// ...
private:
int8_t value;
};

A complete example is available in the example/avr/sab folder.

See also
modm::sab::Slave

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