36 bool writeRaw(
const void *data,
size_t len, std::string &err);
37 bool writeString(
const std::string &s, std::string &err);
43 bool readExact(std::vector<uint8_t> &out,
size_t n,
int timeoutMs, std::string &err);
46 bool readChar(
char &ch,
int timeoutMs, std::string &err);
49 bool queryHash(
const std::string &
cmd, std::string &response,
int timeoutMs, std::string &err);
52 bool queryAck(
const std::string &
cmd,
char &ack,
int timeoutMs, std::string &err);
55 bool queryStatus3(
const std::string &
cmd, uint8_t &b1, uint8_t &b2, uint8_t &b3,
int timeoutMs, std::string &err);
bool queryStatus3(const std::string &cmd, uint8_t &b1, uint8_t &b2, uint8_t &b3, int timeoutMs, std::string &err)
bool discardInput(std::string &err)
bool writeRaw(const void *data, size_t len, std::string &err)
bool queryHash(const std::string &cmd, std::string &response, int timeoutMs, std::string &err)
bool readHashTerminated(std::string &out, int timeoutMs, std::string &err)
bool writeString(const std::string &s, std::string &err)
bool readExact(std::vector< uint8_t > &out, size_t n, int timeoutMs, std::string &err)
bool queryAck(const std::string &cmd, char &ack, int timeoutMs, std::string &err)
bool readChar(char &ch, int timeoutMs, std::string &err)