Classes | Defines
rs232.h File Reference

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"
Include dependency graph for rs232.h:
This graph shows which files directly or indirectly include this file:

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)

Detailed Description

Software API to deal with the RS232 port. This API was designed to interact with faulhaber's MCDC3006S driver using the serial port interface.

Author:
Raul Perula-Martinez <raul.perula@uc3m.es>
Date:
2015-03
Author:
David Garcia <dggodoy@ing.uc3m.es>
Date:
2012-02
Author:
Victor Gonzalez <vgonzale@ing.uc3m.es>
Date:
2009-01

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 Documentation

#define DEFAULT_BAUDRATE   19200

Serial Port Config.

Definition at line 45 of file rs232.h.

#define SP_MAX_FILENAME_SIZE   64

Serial Port Max Filename descriptor size in chars (Usually is /dev/something)

Definition at line 53 of file rs232.h.

#define SP_MSG_SIZE   64

Serial Port Default Message Size.

Definition at line 51 of file rs232.h.

#define SP_READ_TIMEOUT   2000

Serial Port reading timeout (in milliseconds)

Definition at line 47 of file rs232.h.

#define SPLT_READ_TIMEOUT   10000

Serial Port reading timeout (in milliseconds)

Definition at line 49 of file rs232.h.



sr_communications
Author(s): Raul Perula-Martinez , Victor Gonzalez
autogenerated on Wed Aug 26 2015 16:26:48