Add support for RADGalaxy and neoVI FIRE 2 over Ethernet

This commit is contained in:
Paul Hollinsky
2018-09-18 16:50:42 -04:00
parent 5b1a56ee6c
commit 8375a354af
28 changed files with 3852 additions and 14 deletions
+32
View File
@@ -0,0 +1,32 @@
#ifndef __RADGALAXY_H_
#define __RADGALAXY_H_
#include "device/include/device.h"
#include "platform/include/pcap.h"
namespace icsneo {
class RADGalaxy : public Device {
public:
// Serial numbers start with RG
static constexpr const char* PRODUCT_NAME = "RADGalaxy";
static constexpr const uint16_t USB_PRODUCT_ID = 0x0003;
RADGalaxy(neodevice_t neodevice) : Device(neodevice) {
com = std::make_shared<Communication>(std::make_shared<PCAP>(getWritableNeoDevice()));
setProductName(PRODUCT_NAME);
usbProductId = USB_PRODUCT_ID;
}
static std::vector<std::shared_ptr<Device>> Find() {
std::vector<std::shared_ptr<Device>> found;
for(auto neodevice : PCAP::FindByProduct(USB_PRODUCT_ID))
found.push_back(std::make_shared<RADGalaxy>(neodevice));
return found;
}
};
};
#endif