Class Controller
template <class Machine class Machine>
Public Types
Type | Name |
---|---|
enum uint8_t | Command |
Public Functions
Type | Name |
---|---|
Controller (std::function< std::string()> getMemoryStats, std::function< std::string()> getStorageStats) |
|
void | onConfigureMachine (std::function< void(Machine &)> f) |
void | processStart (int sender, std::span< const uint8_t > data) |
void | processStatus (int sender) |
void | processStop (int sender) |
Router & | router () |
bool | startMachine (std::string path) |
bool | stopMachine () |
Uploader & | uploader () |
Public Types Documentation
enum Command
enum Controller::Command {
START = 0x01,
STOP = 0x02,
STATUS = 0x03,
OK = 0x20,
ERROR = 0x21
};
Public Functions Documentation
function Controller
inline Controller::Controller (
std::function< std::string()> getMemoryStats,
std::function< std::string()> getStorageStats
)
function onConfigureMachine
inline void Controller::onConfigureMachine (
std::function< void(Machine &)> f
)
function processStart
void Controller::processStart (
int sender,
std::span< const uint8_t > data
)
function processStatus
void Controller::processStatus (
int sender
)
function processStop
void Controller::processStop (
int sender
)
function router
inline Router & Controller::router ()
function startMachine
bool Controller::startMachine (
std::string path
)
function stopMachine
bool Controller::stopMachine ()
function uploader
inline Uploader & Controller::uploader ()
The documentation for this class was generated from the following file demo-projets/jaculus/main/util/controller.h