Software API to deal with the RS232 port. This API was designed to interact with faulhaber's MCDC3006S driver using the serial port interface. More...
#include <sys/ioctl.h>
#include <sys/time.h>
#include <ros/ros.h>
#include <termios.h>
#include "../ipc/semaphores.h"
#include "../common_errors.h"
Go to the source code of this file.
Classes | |
class | Rs232 |
Defines | |
#define | DEFAULT_BAUDRATE 19200 |
Serial Port Config. | |
#define | SP_MAX_FILENAME_SIZE 64 |
Serial Port Max Filename descriptor size in chars (Usually is /dev/something) | |
#define | SP_MSG_SIZE 64 |
Serial Port Default Message Size. | |
#define | SP_READ_TIMEOUT 2000 |
Serial Port reading timeout (in milliseconds) | |
#define | SPLT_READ_TIMEOUT 10000 |
Serial Port reading timeout (in milliseconds) |
Software API to deal with the RS232 port. This API was designed to interact with faulhaber's MCDC3006S driver using the serial port interface.
This program is free software: you can redistribute it and/or modify it under the terms of the Licencia Educativa UC3M as published by the University Carlos III of Madrid, either version 1.0, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. See the Licencia Educativa UC3M version 1.0 or any later version for more details.
A copy of the Licencia Educativa UC3M is in the LICENSE file.
Definition in file rs232.h.
#define DEFAULT_BAUDRATE 19200 |
#define SP_MAX_FILENAME_SIZE 64 |
#define SP_MSG_SIZE 64 |
#define SP_READ_TIMEOUT 2000 |
#define SPLT_READ_TIMEOUT 10000 |