47 #include <visp3/core/vpConfig.h>
104 flowcontrol_none = 0,
109 vpSerial(
const std::string &port =
"",
unsigned long baudrate = 9600, bytesize_t bytesize = eightbits,
110 parity_t parity = parity_none, stopbits_t stopbits = stopbits_one,
111 flowcontrol_t flowcontrol = flowcontrol_none);
154 bool read(
char *c,
long timeout_s);
155 std::string readline(
const std::string &eol);
156 void setBaudrate(
const unsigned long baudrate);
157 void setBytesize(
const bytesize_t &bytesize);
158 void setFlowcontrol(
const flowcontrol_t &flowcontrol);
159 void setParity(
const parity_t &parity);
160 void setPort(
const std::string &port);
161 void setStopbits(
const stopbits_t &stopbits);
162 void write(
const std::string &s);
174 unsigned long m_baudrate;
177 bytesize_t m_bytesize;
178 stopbits_t m_stopbits;
179 flowcontrol_t m_flowcontrol;
@ flowcontrol_software
Software flow control.
unsigned long getBaudrate()
flowcontrol_t getFlowcontrol()