mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Device: Add RADMoonT1S
This commit is contained in:
committed by
Kyle Schwarz
parent
80904dd84c
commit
f552df372b
@@ -0,0 +1,51 @@
|
||||
#ifndef __RADMOONT1SSETTINGS_H_
|
||||
#define __RADMOONT1SSETTINGS_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include "icsneo/device/idevicesettings.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
#endif
|
||||
|
||||
#pragma pack(push, 2)
|
||||
typedef struct {
|
||||
uint16_t perf_en;
|
||||
struct
|
||||
{
|
||||
uint16_t hwComLatencyTestEn : 1;
|
||||
uint16_t disableUsbCheckOnBoot : 1;
|
||||
uint16_t reserved : 14;
|
||||
} flags;
|
||||
uint16_t network_enabled_on_boot;
|
||||
uint64_t network_enables;
|
||||
uint64_t network_enables_2;
|
||||
RAD_REPORTING_SETTINGS reporting;
|
||||
uint32_t pwr_man_timeout;
|
||||
uint16_t pwr_man_enable;
|
||||
// Ethernet 10/100/1000
|
||||
ETHERNET_SETTINGS2 ethernet;
|
||||
// Ethernet General
|
||||
OP_ETH_GENERAL_SETTINGS opEthGen;
|
||||
// 10T1S
|
||||
ETHERNET_SETTINGS2 ethT1s;
|
||||
ETHERNET10T1S_SETTINGS t1s;
|
||||
} radmoont1s_settings_t;
|
||||
#pragma pack(pop)
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class RADMoonT1SSettings : public IDeviceSettings {
|
||||
public:
|
||||
RADMoonT1SSettings(std::shared_ptr<Communication> com) : IDeviceSettings(com, sizeof(radmoont1s_settings_t)) {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif // __RADMOONT1SSETTINGS_H_
|
||||
Reference in New Issue
Block a user