#include <LxFTDI.h>
Public Member Functions | |
virtual void | flush_buffer () |
std::string & | get_port_name () |
virtual bool | is_port_open () |
LxFTDI () | |
virtual bool | port_close () |
virtual bool | port_open (const std::string &portname, LxSerial::PortType port_type) |
virtual int | port_read (unsigned char *buffer, int numBytes) |
virtual int | port_read (unsigned char *buffer, int numBytes, int seconds, int microseconds) |
virtual int | port_write (unsigned char *buffer, int numBytes) |
void | set_clear_echo (bool clear) |
virtual bool | set_speed (LxSerial::PortSpeed baudrate) |
virtual bool | set_speed_int (const int baudrate) |
virtual | ~LxFTDI () |
Protected Attributes | |
std::string | description |
Ftdi::Context | dev |
LxFTDI::LxFTDI | ( | ) |
Definition at line 15 of file LxFTDI.cpp.
LxFTDI::~LxFTDI | ( | ) | [virtual] |
Definition at line 95 of file LxFTDI.cpp.
void LxFTDI::flush_buffer | ( | ) | [virtual] |
Reimplemented from LxSerial.
Definition at line 90 of file LxFTDI.cpp.
std::string& LxFTDI::get_port_name | ( | ) | [inline] |
virtual bool LxFTDI::is_port_open | ( | ) | [inline, virtual] |
bool LxFTDI::port_close | ( | ) | [virtual] |
Reimplemented from LxSerial.
Definition at line 35 of file LxFTDI.cpp.
bool LxFTDI::port_open | ( | const std::string & | portname, |
LxSerial::PortType | port_type | ||
) | [virtual] |
Reimplemented from LxSerial.
Definition at line 20 of file LxFTDI.cpp.
int LxFTDI::port_read | ( | unsigned char * | buffer, |
int | numBytes | ||
) | [virtual] |
Definition at line 40 of file LxFTDI.cpp.
int LxFTDI::port_read | ( | unsigned char * | buffer, |
int | numBytes, | ||
int | seconds, | ||
int | microseconds | ||
) | [virtual] |
Reimplemented from LxSerial.
Definition at line 56 of file LxFTDI.cpp.
int LxFTDI::port_write | ( | unsigned char * | buffer, |
int | numBytes | ||
) | [virtual] |
Reimplemented from LxSerial.
Definition at line 85 of file LxFTDI.cpp.
void LxFTDI::set_clear_echo | ( | bool | clear | ) | [inline] |
virtual bool LxFTDI::set_speed | ( | LxSerial::PortSpeed | baudrate | ) | [inline, virtual] |
bool LxFTDI::set_speed_int | ( | const int | baudrate | ) | [virtual] |
Reimplemented from LxSerial.
Definition at line 29 of file LxFTDI.cpp.
std::string LxFTDI::description [protected] |
Ftdi::Context LxFTDI::dev [protected] |