mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Fix structs for FIRE 2 settings
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "device/neovifire2/include/neovifire2.h"
|
||||
#include "platform/include/pcap.h"
|
||||
#include "device/neovifire2/include/neovifire2settings.h"
|
||||
#include <memory>
|
||||
|
||||
namespace icsneo {
|
||||
@@ -15,6 +16,7 @@ public:
|
||||
auto packetizer = std::make_shared<Packetizer>();
|
||||
auto decoder = std::make_shared<Decoder>();
|
||||
com = std::make_shared<Communication>(transport, packetizer, decoder);
|
||||
settings = std::make_shared<NeoVIFIRE2Settings>(com);
|
||||
productId = PRODUCT_ID;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
#include <stdint.h>
|
||||
#include "device/include/idevicesettings.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
#endif
|
||||
|
||||
#pragma pack(push, 2)
|
||||
typedef struct {
|
||||
uint16_t perf_en;
|
||||
@@ -105,10 +111,9 @@ typedef struct {
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
class NeoVIFIRE2Settings : public IDeviceSettings {
|
||||
public:
|
||||
NeoVIFIRE2Settings(std::shared_ptr<Communication> com) : IDeviceSettings(com) {}
|
||||
void refresh() {
|
||||
IDeviceSettings::refresh();
|
||||
if(settingsLoaded) {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "device/neovifire2/include/neovifire2.h"
|
||||
#include "platform/include/ftdi.h"
|
||||
#include "device/neovifire2/include/neovifire2settings.h"
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
@@ -14,6 +15,7 @@ public:
|
||||
auto packetizer = std::make_shared<Packetizer>();
|
||||
auto decoder = std::make_shared<Decoder>();
|
||||
com = std::make_shared<Communication>(transport, packetizer, decoder);
|
||||
settings = std::make_shared<NeoVIFIRE2Settings>(com);
|
||||
productId = PRODUCT_ID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user