libicsneo/device/plasion/include/neoviplasma.h

30 lines
684 B
C++

#ifndef __NEOVIPLASMA_H_
#define __NEOVIPLASMA_H_
#include "device/plasion/include/plasion.h"
#include "platform/include/ftdi.h"
namespace icsneo {
class NeoVIPLASMA : public Plasion {
public:
static constexpr const char* PRODUCT_NAME = "neoVI PLASMA";
static constexpr const uint16_t PRODUCT_ID = 0x0801;
NeoVIPLASMA(neodevice_t neodevice) : Plasion(neodevice) {
setProductName(PRODUCT_NAME);
productId = PRODUCT_ID;
}
static std::vector<std::shared_ptr<Device>> Find() {
std::vector<std::shared_ptr<Device>> found;
for(auto neodevice : FTDI::FindByProduct(PRODUCT_ID))
found.push_back(std::make_shared<NeoVIPLASMA>(neodevice));
return found;
}
};
}
#endif