MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/technological/drivecontrol/ControlStateIdle.hh
2024-06-07 11:12:56 +03:00

32 lines
729 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* ControlStateIdle.h
*
* Created on: 31 авг. 2019 г.
* Author: titov
*/
#ifndef SOURCE_TECHNOLOGICAL_DRIVECONTROL_CONTROLSTATEIDLE_H_
#define SOURCE_TECHNOLOGICAL_DRIVECONTROL_CONTROLSTATEIDLE_H_
#include "../IExecutorState.hh"
namespace technological { namespace drivecontrol {
struct ControlStateIdle : public IExecutorState {
bool on_entry() { return true; }
bool execute( CommandCode code, const char * args, std::size_t size );
CommandCode isComplite() const { return self_code; }
void reset() {}
void on_exit() {}
ControlStateIdle( CommandCode self_code );
private:
const CommandCode self_code;
};
}}
#endif /* SOURCE_TECHNOLOGICAL_DRIVECONTROL_CONTROLSTATEIDLE_H_ */