52 lines
977 B
C++
52 lines
977 B
C++
#ifndef __RADMOON2SETTINGS_H_
|
|
#define __RADMOON2SETTINGS_H_
|
|
|
|
#include <stdint.h>
|
|
#include "icsneo/device/idevicesettings.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
namespace icsneo {
|
|
|
|
#endif // __cplusplus
|
|
|
|
#pragma pack(push, 2)
|
|
typedef struct {
|
|
uint16_t perf_en;
|
|
|
|
AE_GENERAL_SETTINGS aeGen;
|
|
AE_SETTINGS ae_01;
|
|
|
|
uint16_t network_enables;
|
|
uint16_t network_enables_2;
|
|
uint16_t network_enabled_on_boot;
|
|
uint16_t network_enables_3;
|
|
|
|
STextAPISettings text_api;
|
|
|
|
uint16_t pc_com_mode;
|
|
TIMESYNC_ICSHARDWARE_SETTINGS timeSyncSettings;
|
|
uint16_t hwComLatencyTestEn;
|
|
|
|
RAD_GPTP_SETTINGS gPTP;
|
|
uint64_t network_enables_5;
|
|
|
|
} radmoon2_settings_t;
|
|
#pragma pack(pop)
|
|
|
|
#ifdef __cplusplus
|
|
|
|
static_assert(sizeof(radmoon2_settings_t) == 170, "RADMoon2 settings size mismatch");
|
|
|
|
#include <iostream>
|
|
|
|
class RADMoon2Settings : public IDeviceSettings {
|
|
public:
|
|
RADMoon2Settings(std::shared_ptr<Communication> com) : IDeviceSettings(com, sizeof(radmoon2_settings_t)) {}
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __cplusplus
|
|
|
|
#endif |