|
| MEdgeGrblDevice (int lun, const std::string &driverPath=std::string()) |
| Construct a new EdgeGrblDevice. More...
|
|
grbl::ErrorCode | send (const std::string &cmd, std::function< bool(const std::string &)> msg={}, const std::chrono::milliseconds &timeout=GrblDeviceBase::defaultSendTimeout) override |
|
| EdgeGrblDeviceBase (int lun, const std::string &driverPath=std::string()) |
| Construct a new EdgeGrblDevice. More...
|
|
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 | read (struct edge_reg *reg, uint32_t &value) |
| Get a register value. More...
|
|
void | read (struct edge_reg *reg, size_t offset, uint32_t &value) |
| Get a register value at depth. More...
|
|
void | read (struct edge_reg *reg, std::vector< uint32_t > &values) |
| Get all registers. More...
|
|
void | write (struct edge_reg *reg, uint32_t value) |
| Write a value to register. More...
|
|
void | write (struct edge_reg *reg, size_t offset, uint32_t value) |
| Write a value to register. More...
|
|
struct fmc_mfe_hdl * | getDrv () const |
| get driver handler
|
|
void | fetch (const std::chrono::milliseconds &timeout) |
| wait for data and process it 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...
|
|
|
ccut::Signal< std::string > | dataSignal |
|
static const std::chrono::milliseconds | defaultSendTimeout |
|
void | init (int lun, const std::string &driverPath) |
|
void | irqLoop () |
| Wait for irq using blocking API and set variables once available.
|
|
bool | waitIrq (const std::chrono::milliseconds &timeout, const struct edge_reg *const expectedReg, uint32_t expectedBit) |
| Wait for irq from given source. More...
|
|
void | drvOpen (int lun, const std::string &simPath, bool isSim) |
| Open FMC_MFE device with given driver. More...
|
|
void | drvClose () |
| Close the driver.
|
|
int | m_wakeFd [2] |
|
struct fmc_mfe_hdl * | m_edgeDrvHdl |
|
std::vector< char > | m_fifoBytes |
|
ccut::LineBuffer | m_buffer |
|
static const std::string | loggerCat {"edge:edgegrbldevice"} |
|
Definition at line 38 of file MEdgeGrblDevice.hpp.