Visual Servoing Platform
version 3.2.0 under development (2019-01-22)
|
#include <visp3/io/vpParallelPort.h>
Public Member Functions | |
vpParallelPort () | |
virtual | ~vpParallelPort () |
void | sendData (unsigned char &data) |
unsigned char | getData () |
Parallel port management under unix.
The code below shows how to send a data over the parallel port.
Definition at line 82 of file vpParallelPort.h.
vpParallelPort::vpParallelPort | ( | ) |
Constructor to acces to a parallel port.
Open and initialise the parallel port by sending 0 to the data bus.
Set the default device to "/dev/parport0".
vpParallelPortException::opening | If the device used to access to the parallel port can't be opened. A possible reason is that you don't have write access. |
Definition at line 71 of file vpParallelPort.cpp.
References sendData().
|
virtual |
Destructor to close the parallel port.
vpParallelPortException::closing | If the device used to access to the parallel port can't be closed. |
Definition at line 87 of file vpParallelPort.cpp.
References vpParallelPortException::opening.
unsigned char vpParallelPort::getData | ( | ) |
Get the last data sent to the parallel port.
Definition at line 147 of file vpParallelPort.cpp.
References vpParallelPortException::closing.
void vpParallelPort::sendData | ( | unsigned char & | data | ) |
Send a data to the parallel port.
data | : Value [D7, D6, ... D0] to send to the data bus. |
The code bellow shows how to set D0 and D2 to logical level 1:
Definition at line 134 of file vpParallelPort.cpp.
Referenced by vpRingLight::off(), vpRingLight::on(), vpRingLight::pulse(), and vpParallelPort().