serialPort.hpp
Go to the documentation of this file.
int initialize()
Open the serial port device and set the configurations for it.
Definition: serialPort.cpp:39
int recvUnsignedCharArray(unsigned char *const array, unsigned length) const
Receive an array of unsigned char from e-puck.
Definition: serialPort.cpp:148
unsigned recvUnsigned() const
Receive an unsigned interger from e-puck.
Definition: serialPort.cpp:115
std::string getError() const
Return the last error.
Definition: serialPort.hpp:60
void sendChar(char message) const
Send a character to e-puck.
Definition: serialPort.cpp:184
SerialPort(std::string &serialPort)
Constructor of SerialPort class.
Definition: serialPort.cpp:26
int recvInt() const
Receive a signed interger from e-puck.
Definition: serialPort.cpp:96
void sendInt(int message) const
Send an integer to e-puck.
Definition: serialPort.cpp:172