29 #ifndef PLUGINS_FTDIDMX_FTDIWIDGET_H_
30 #define PLUGINS_FTDIDMX_FTDIWIDGET_H_
56 const std::string &serial,
64 : m_name(info.Name()),
65 m_serial(info.Serial()),
71 std::string Name()
const {
return m_name; }
72 std::string Serial()
const {
return m_serial; }
73 unsigned int Id()
const {
return m_id; }
75 std::string Description()
const {
76 return m_name +
" with serial number : " + m_serial +
" ";
81 m_name = other.Name();
82 m_serial = other.Serial();
100 static const int VID = 0x0403;
101 static const int PID = 0x6001;
110 const std::string &name,
117 std::string
Serial()
const {
return m_serial; }
120 std::string
Name()
const {
return m_name; }
123 uint32_t
Id()
const {
return m_id; }
125 std::string Description()
const {
126 return m_name +
" with serial number : " + m_serial +
" ";
163 bool Read(
unsigned char* buff,
int size);
172 static void Widgets(std::vector<FtdiWidgetInfo> *widgets);
175 std::string m_serial;
182 struct ftdi_context m_handle;
188 #endif // PLUGINS_FTDIDMX_FTDIWIDGET_H_