|
void | flush () |
|
void | read () override |
| fill LineBuffer with incoming bytes
|
|
void | write (const std::string &data) override |
| raw write some bytes More...
|
|
bool | wait (const std::chrono::milliseconds &timeout) override |
| wait for input More...
|
|
void | wake () override |
| wake thread waiting for input
|
|
void | fetch (const std::chrono::milliseconds &timeout) |
| wait for data and process it More...
|
|
virtual grbl::ErrorCode | send (const std::string &cmd, std::function< bool(const std::string &)> msg={}, const std::chrono::milliseconds &timeout=defaultSendTimeout) |
| send a command wait for reply More...
|
|
virtual grbl::ErrorCode | sendRealtime (const std::string &cmd, std::function< bool(const std::string &)> msg={}, const std::chrono::milliseconds &timeout=defaultSendTimeout) |
| send a realtime-command wait for reply More...
|
|
virtual bool | takeLine (std::string &line) |
| consume line from buffer More...
|
|
|
static const std::chrono::milliseconds | defaultExpectTimeout |
|
static const std::chrono::milliseconds | defaultSendTimeout |
|
|
void | sendCmd (const std::string &command) |
|
|
int | m_in |
|
int | m_out |
|
int | m_wakeFd [2] |
|
pid_t | m_simPid |
|
ccut::LineBuffer | m_buffer |
|
|
ccut::Signal< std::string > | dataSignal |
|
Definition at line 47 of file GrblSim.hpp.
◆ wait()
bool GrblSim::wait |
( |
const std::chrono::milliseconds & |
timeout | ) |
|
|
overridevirtual |
◆ write()
void GrblSim::write |
( |
const std::string & |
data | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/util/grbl/GrblSim.hpp
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/util/grbl/GrblSim.cpp