#include <rmp_ftd2xx.h>
Definition at line 59 of file rmp_ftd2xx.h.
FTD2XXRMPIO::FTD2XXRMPIO |
( |
| ) |
|
FTD2XXRMPIO::~FTD2XXRMPIO |
( |
| ) |
|
void FTD2XXRMPIO::configureUSBByDescription |
( |
std::string |
description, |
|
|
int |
baudrate |
|
) |
| |
Configures the usb port using the devices Description.
- Parameters
-
description | The description of the RMP device, something like 'Robotic Mobile Platform'. |
baudrate | The speed of the usb communication. |
Definition at line 324 of file rmp_ftd2xx.cc.
void FTD2XXRMPIO::configureUSBByIndex |
( |
unsigned int |
device_index, |
|
|
int |
baudrate |
|
) |
| |
Configures the usb port using the devices index.
- Parameters
-
device_index | The index of the FTDI, something like 0. This is its index amoung all FTD2XX devices on the system. |
baudrate | The speed of the usb communication. |
Definition at line 351 of file rmp_ftd2xx.cc.
void FTD2XXRMPIO::configureUSBBySerial |
( |
std::string |
serial_number, |
|
|
int |
baudrate |
|
) |
| |
Configures the usb port using the devices Serial Number.
- Parameters
-
serial_number | The serial number of the RMP device, something like '00000056'. |
baudrate | The speed of the usb communication. |
Definition at line 296 of file rmp_ftd2xx.cc.
void FTD2XXRMPIO::connect |
( |
| ) |
|
|
virtual |
Connects to the usb port if it has been configured. Can throw ConnectionFailedException.
Implements segwayrmp::RMPIO.
Definition at line 159 of file rmp_ftd2xx.cc.
void FTD2XXRMPIO::connectByDescription |
( |
| ) |
|
|
private |
void FTD2XXRMPIO::connectByIndex |
( |
| ) |
|
|
private |
void FTD2XXRMPIO::connectBySerial |
( |
| ) |
|
|
private |
void FTD2XXRMPIO::disconnect |
( |
| ) |
|
|
virtual |
int FTD2XXRMPIO::read |
( |
unsigned char * |
buffer, |
|
|
int |
size |
|
) |
| |
|
virtual |
Read Function, reads from the usb port.
- Parameters
-
buffer | An unsigned char array for data to be read into. |
size | The amount of data to be read. |
- Returns
- int Bytes read.
Implements segwayrmp::RMPIO.
Definition at line 257 of file rmp_ftd2xx.cc.
int FTD2XXRMPIO::write |
( |
unsigned char * |
buffer, |
|
|
int |
size |
|
) |
| |
|
virtual |
Write Function, writes to the usb port.
- Parameters
-
buffer | An unsigned char array of data to be written. |
size | The amount of data to be written. |
- Returns
- int Bytes written.
Implements segwayrmp::RMPIO.
Definition at line 274 of file rmp_ftd2xx.cc.
int segwayrmp::FTD2XXRMPIO::baudrate |
|
private |
bool segwayrmp::FTD2XXRMPIO::configured |
|
private |
bool segwayrmp::FTD2XXRMPIO::is_open |
|
private |
std::string segwayrmp::FTD2XXRMPIO::port_description |
|
private |
unsigned int segwayrmp::FTD2XXRMPIO::port_index |
|
private |
std::string segwayrmp::FTD2XXRMPIO::port_serial_number |
|
private |
FT_HANDLE segwayrmp::FTD2XXRMPIO::usb_port_handle |
|
private |
The documentation for this class was generated from the following files: