47 #include <visp3/core/vpConfig.h>
104 flowcontrol_none = 0,
105 flowcontrol_software,
109 vpSerial(
const std::string &port=
"",
unsigned long baudrate = 9600,
110 bytesize_t bytesize = eightbits, parity_t parity = parity_none, stopbits_t stopbits = stopbits_one,
111 flowcontrol_t flowcontrol = flowcontrol_none);
121 unsigned long getBaudrate() {
129 bytesize_t getBytesize() {
137 flowcontrol_t getFlowcontrol() {
138 return m_flowcontrol;
145 parity_t getParity() {
153 std::string getPort() {
161 stopbits_t getStopbits() {
166 bool read(
char *c,
long timeout_s);
167 std::string readline(
const std::string &eol);
168 void setBaudrate(
const unsigned long baudrate);
169 void setBytesize(
const bytesize_t &bytesize);
170 void setFlowcontrol(
const flowcontrol_t &flowcontrol);
171 void setParity(
const parity_t &parity);
172 void setPort(
const std::string &port);
173 void setStopbits(
const stopbits_t &stopbits);
174 void write(
const std::string &s);
186 unsigned long m_baudrate;
189 bytesize_t m_bytesize;
190 stopbits_t m_stopbits;
191 flowcontrol_t m_flowcontrol;