#pragma once #include "AdsDevice.h" namespace Beckhoff { namespace Ads { #define IOADS_IGR_IODEVICESTATE_BASE 0x5000 #define IOADS_IOF_READDEVIDS 0x1 #define IOADS_IOF_READDEVNAME 0x1 #define IOADS_IOF_READDEVCOUNT 0x2 #define IOADS_IOF_READDEVNETID 0x5 #define IOADS_IOF_READDEVTYPE 0x7 struct ECatAccess { ECatAccess(const std::string& gw, AmsNetId netId, const uint16_t port); long ListECatMasters(std::ostream& os) const; private: AdsDevice device; }; } }