A Writer class. More...
#include <writer.hpp>
Public Member Functions | |
FTDI_Writer () | |
void | reset_flags () |
int | write (const std::string &new_id_) |
int | write (const std::string &old_id_, const std::string &new_id_) |
int | write (const std::string &old_id_, const std::string &new_id_, const std::string &manufacturer_, const std::string &product_) |
Private Attributes | |
int | log_level |
const unsigned short | product_id |
bool | serial_only |
bool | use_first_device |
const unsigned short | vendor_id |
A Writer class.
A Writer class for FTDI devices, especially for FTDI FT232R chip.
Definition at line 52 of file writer.hpp.
|
inline |
A constructor, that more elaborated..
Definition at line 57 of file writer.hpp.
|
inline |
reset flags to default state.
Definition at line 69 of file writer.hpp.
|
inline |
Write new serial name to ftdi device what first detected.
[in] | new_id_ | new serial number for ftdi device |
Definition at line 81 of file writer.hpp.
|
inline |
Write new serial name to ftdi device what have specified serial name.
[in] | old_id_ | serial number of target device |
[in] | new_id_ | new serial number for ftdi device |
Definition at line 97 of file writer.hpp.
|
inline |
Write new serial name to ftdi device what have specified serial name, manufacturer and product name also.
[in] | old_id_ | serial number of target device |
[in] | new_id_ | new serial number for ftdi device |
[in] | manufacturer_ | new manufacture name for ftdi device |
[in] | product_ | new product name for ftdi device |
Definition at line 115 of file writer.hpp.
|
private |
currently unused.
Definition at line 281 of file writer.hpp.
|
private |
product ID of FTDI chip. Fixed to 0x6001 for FT232R chip.
Definition at line 293 of file writer.hpp.
|
private |
flags to control internal behavior of writer class.
Definition at line 282 of file writer.hpp.
|
private |
flags to control internal behavior of writer class.
Definition at line 283 of file writer.hpp.
|
private |
vendor ID of FTDI chip. Fixed to 0x0403 for FTDI company.
Definition at line 288 of file writer.hpp.