PerifBase class
#include <main/perif/Perif.hpp>
Contents
Base class for peripherals.
Derived classes
- class Perif
Constructors, destructors, conversion operators
Public functions
- void registerHook(function<void(DevMap&)>&& hook)
Public variables
Function documentation
perif:: PerifBase:: PerifBase(const char* name) explicit
| Parameters | |
|---|---|
| name | the peripheral's name |
Explicit Value Constructor.
void perif:: PerifBase:: registerHook(function<void(DevMap&)>&& hook)
| Parameters | |
|---|---|
| hook | the observer function |
Registers a hook for obtaining sensor data on update in Json format.