8#if defined(USE_TWINCAT_ROUTER)
9#include "TwinCAT/AdsLib.h"
27long AdsSyncReadReqEx2(
long port,
31 uint32_t bufferLength,
43long AdsSyncReadDeviceInfoReqEx(
long port,
const AmsAddr* pAddr,
char* devName,
AdsVersion* version);
53long AdsSyncReadStateReqEx(
long port,
const AmsAddr* pAddr, uint16_t* adsState, uint16_t* devState);
68long AdsSyncReadWriteReqEx2(
long port,
75 const void* writeData,
88long AdsSyncWriteReqEx(
long port,
92 uint32_t bufferLength,
105long AdsSyncWriteControlReqEx(
long port,
109 uint32_t bufferLength,
126long AdsSyncAddDeviceNotificationReqEx(
long port,
129 uint32_t indexOffset,
133 uint32_t* pNotification);
142long AdsSyncDelDeviceNotificationReqEx(
long port,
const AmsAddr* pAddr, uint32_t hNotification);
150long AdsSyncGetTimeoutEx(
long port, uint32_t* timeout);
162long AddLocalRoute(
AmsNetId ams,
const char* ip);
186long AddRemoteRoute(
const std::string& remote,
188 const std::string& destAddr,
189 const std::string& routeName,
190 const std::string& remoteUsername,
191 const std::string& remotePassword);
199long GetRemoteAddress(
const std::string& remote,
204#define AdsAddRoute bhf::ads::AddLocalRoute
205#define AdsDelRoute bhf::ads::DelLocalRoute
206#define AdsSetLocalAddress bhf::ads::SetLocalAddress
void(* PAdsNotificationFuncEx)(const AmsAddr *pAddr, const AdsNotificationHeader *pNotification, uint32_t hUser)
Type definition of the callback function required by the AdsSyncAddDeviceNotificationReqEx() function...
Definition: AdsDef.h:363
This structure contains all the attributes for the definition of a notification.
Definition: AdsDef.h:323
The structure contains the version number, revision number and build number.
Definition: AdsDef.h:248
The complete address of an ADS device can be stored in this structure.
Definition: AdsDef.h:237
The NetId of and ADS device can be represented in this structure.
Definition: AdsDef.h:224