Class CmdInterfaceLinux

Class Documentation

class CmdInterfaceLinux

Public Functions

explicit CmdInterfaceLinux(int32_t ver)
~CmdInterfaceLinux()
bool Open(std::string &port_name)
bool Close()
bool ReadFromIO(uint8_t *rx_buf, uint32_t rx_buf_len, uint32_t *rx_len)
bool WriteToIo(const uint8_t *tx_buf, uint32_t tx_buf_len, uint32_t *tx_len)
bool GetCmdDevices(std::vector<std::pair<std::string, std::string>> &device_list)
inline void SetReadCallback(std::function<void(const char*, size_t length)> callback)
inline bool IsOpened()