mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Implement DeviceType and icsneo_getProductName
This commit is contained in:
@@ -2,16 +2,17 @@
|
||||
#define __NEOVIION_H_
|
||||
|
||||
#include "device/plasion/include/plasion.h"
|
||||
#include "device/include/devicetype.h"
|
||||
#include "platform/include/ftdi.h"
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
class NeoVIION : public Plasion {
|
||||
public:
|
||||
static constexpr const char* PRODUCT_NAME = "neoVI ION";
|
||||
static constexpr DeviceType::Enum DEVICE_TYPE = DeviceType::ION;
|
||||
static constexpr const uint16_t PRODUCT_ID = 0x0901;
|
||||
NeoVIION(neodevice_t neodevice) : Plasion(neodevice) {
|
||||
setProductName(PRODUCT_NAME);
|
||||
getWritableNeoDevice().type = DEVICE_TYPE;
|
||||
productId = PRODUCT_ID;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,16 +2,17 @@
|
||||
#define __NEOVIPLASMA_H_
|
||||
|
||||
#include "device/plasion/include/plasion.h"
|
||||
#include "device/include/devicetype.h"
|
||||
#include "platform/include/ftdi.h"
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
class NeoVIPLASMA : public Plasion {
|
||||
public:
|
||||
static constexpr const char* PRODUCT_NAME = "neoVI PLASMA";
|
||||
static constexpr DeviceType::Enum DEVICE_TYPE = DeviceType::PLASMA;
|
||||
static constexpr const uint16_t PRODUCT_ID = 0x0801;
|
||||
NeoVIPLASMA(neodevice_t neodevice) : Plasion(neodevice) {
|
||||
setProductName(PRODUCT_NAME);
|
||||
getWritableNeoDevice().type = DEVICE_TYPE;
|
||||
productId = PRODUCT_ID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user