29 lines
718 B
C++
29 lines
718 B
C++
#ifndef __NEOVIFIRE2USB_H_
|
|
#define __NEOVIFIRE2USB_H_
|
|
|
|
#include "device/neovifire2/include/neovifire2.h"
|
|
#include "platform/include/ftdi.h"
|
|
|
|
namespace icsneo {
|
|
|
|
class NeoVIFIRE2USB : public NeoVIFIRE2 {
|
|
public:
|
|
static constexpr const uint16_t USB_PRODUCT_ID = 0x1000;
|
|
NeoVIFIRE2USB(neodevice_t neodevice) : NeoVIFIRE2(neodevice) {
|
|
com = std::make_shared<Communication>(std::make_shared<FTDI>(getWritableNeoDevice()));
|
|
usbProductId = USB_PRODUCT_ID;
|
|
}
|
|
|
|
static std::vector<std::shared_ptr<Device>> Find() {
|
|
std::vector<std::shared_ptr<Device>> found;
|
|
|
|
for(auto neodevice : FTDI::FindByProduct(USB_PRODUCT_ID))
|
|
found.push_back(std::make_shared<NeoVIFIRE2USB>(neodevice));
|
|
|
|
return found;
|
|
}
|
|
};
|
|
|
|
};
|
|
|
|
#endif |