18 int setup(
const char* device,
unsigned int speed);
30 int read(
char* buf,
size_t len,
int timeoutMs = -1);
41 int write(
const char* buf,
size_t len = -1);
47 static unsigned int speedToBaudRate(
unsigned int speed);
48 void setMinCount(
int mcount);
49 int setInterfaceAttribs(
unsigned int speed);
int read(char *buf, size_t len, int timeoutMs=-1)
Definition: Serial.cpp:158
int setup(const char *device, unsigned int speed)
Definition: Serial.cpp:18
void cleanup()
Definition: Serial.cpp:192
int write(const char *buf, size_t len=-1)
Definition: Serial.cpp:182