#include <ArSerialConnection.h>
Inheritance diagram for ArSerialConnection:

Definition at line 39 of file ArSerialConnection.h.
Public Types | |
| enum | Open { OPEN_COULD_NOT_OPEN_PORT = 1, OPEN_COULD_NOT_SET_UP_PORT, OPEN_INVALID_BAUD_RATE, OPEN_COULD_NOT_SET_BAUD, OPEN_ALREADY_OPEN } |
Public Member Functions | |
| ArSerialConnection () | |
| Constructor. | |
| virtual bool | close (void) |
| int | getBaud (void) |
| Gets what the current baud rate is set to. | |
| bool | getCTS (void) |
| Sees how the CTS line is set (true = high). | |
| bool | getDCD (void) |
| Sees how the DCD line is set (true = high). | |
| bool | getDSR (void) |
| Sees how the DSR line is set (true = high). | |
| bool | getHardwareControl (void) |
| Gets whether the hardware control lines are enabled or disabled. | |
| virtual const char * | getOpenMessage (int messageNumber) |
| const char * | getPort (void) |
| bool | getRing (void) |
| Sees how the Ring line is set (true = high). | |
| virtual int | getStatus (void) |
| virtual ArTime | getTimeRead (int index) |
| int | internalOpen (void) |
| virtual bool | isTimeStamping (void) |
| int | open (const char *port=NULL) |
| virtual bool | openSimple (void) |
| virtual int | read (const char *data, unsigned int size, unsigned int msWait=0) |
| bool | setBaud (int baud) |
| Sets the baud rate on the connection. | |
| bool | setHardwareControl (bool hardwareControl) |
| Sets whether to enable or disable the hardware control lines. | |
| void | setPort (const char *port=NULL) |
| virtual int | write (const char *data, unsigned int size) |
| virtual | ~ArSerialConnection () |
| Destructor also closes the connection. | |
Protected Member Functions | |
| int | baudToRate (int baud) |
| void | buildStrMap (void) |
| int | rateToBaud (int rate) |
| void | startTimeStamping (void) |
Protected Attributes | |
| int | myBaudRate |
| bool | myHardwareControl |
| int | myPort |
| std::string | myPortName |
| int | myStatus |
| ArStrMap | myStrMap |
| bool | myTakingTimeStamps |
|
|
Definition at line 95 of file ArSerialConnection.h. |
|
|
Gets what the current baud rate is set to.
Definition at line 286 of file ArSerialConnection_LIN.cpp. |
|
|
Gets whether the hardware control lines are enabled or disabled.
Definition at line 363 of file ArSerialConnection_LIN.cpp. |
|
|
Gets the port this is using
Definition at line 183 of file ArSerialConnection_LIN.cpp. |
|
|
Opens the serial port
Definition at line 194 of file ArSerialConnection_LIN.cpp. |
|
|
Sets the baud rate on the connection.
Definition at line 230 of file ArSerialConnection_LIN.cpp. |
|
|
Sets whether to enable or disable the hardware control lines.
Definition at line 335 of file ArSerialConnection_LIN.cpp. |
|
|
Sets the port this connection will use
Definition at line 172 of file ArSerialConnection_LIN.cpp. |
1.4.0