Skip to content

Commit

Permalink
AdsLib: update infosys links...
Browse files Browse the repository at this point in the history
Fixes: #121

Signed-off-by: Patrick Bruenn <[email protected]>
  • Loading branch information
pbruenn committed Mar 16, 2021
1 parent d6b1e35 commit d4fb045
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions AdsLib/AdsLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @param[in] bufferLength Length of the data in bytes.
* @param[out] buffer Pointer to a data buffer that will receive the data.
* @param[out] bytesRead pointer to a variable. If successful, this variable will return the number of actually read data bytes.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncReadReqEx2(long port,
const AmsAddr* pAddr,
Expand All @@ -35,17 +35,17 @@ long AdsSyncReadReqEx2(long port,
* @param[in] pAddr Structure with NetId and port number of the ADS server.
* @param[out] devName Pointer to a character string of at least 16 bytes, that will receive the name of the ADS device.
* @param[out] version Address of a variable of type AdsVersion, which will receive the version number, revision number and the build number.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncReadDeviceInfoReqEx(long port, const AmsAddr* pAddr, char* devName, AdsVersion* version);

/**
* Reads the ADS status and the device status from an ADS server.
* @param[in] port port number of an Ads port that had previously been opened with AdsPortOpenEx().
* @param[in] pAddr Structure with NetId and port number of the ADS server.
* @param[out] adsState Address of a variable that will receive the ADS status (see data type [ADSSTATE](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/tcadsdll_enumadsstate.htm?id=17630)).
* @param[out] adsState Address of a variable that will receive the ADS status (see data type [ADSSTATE](https://infosys.beckhoff.com/content/1031/tcadsdll2/html/tcadsdll_enumadsstate.htm?id=2714257434501002224).
* @param[out] devState Address of a variable that will receive the device status.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncReadStateReqEx(long port, const AmsAddr* pAddr, uint16_t* adsState, uint16_t* devState);

Expand All @@ -60,7 +60,7 @@ long AdsSyncReadStateReqEx(long port, const AmsAddr* pAddr, uint16_t* adsState,
* @param[in] writeLength Length of the data, in bytes, send to the ADS server.
* @param[in] writeData Buffer with data send to the ADS server.
* @param[out] bytesRead pointer to a variable. If successful, this variable will return the number of actually read data bytes.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncReadWriteReqEx2(long port,
const AmsAddr* pAddr,
Expand All @@ -80,7 +80,7 @@ long AdsSyncReadWriteReqEx2(long port,
* @param[in] indexOffset Index Offset.
* @param[in] bufferLength Length of the data, in bytes, send to the ADS server.
* @param[in] buffer Buffer with data send to the ADS server.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncWriteReqEx(long port,
const AmsAddr* pAddr,
Expand All @@ -97,7 +97,7 @@ long AdsSyncWriteReqEx(long port,
* @param[in] devState New device status.
* @param[in] bufferLength Length of the additional data, in bytes, send to the ADS server.
* @param[in] buffer Buffer with additional data send to the ADS server.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncWriteControlReqEx(long port,
const AmsAddr* pAddr,
Expand All @@ -118,7 +118,7 @@ long AdsSyncWriteControlReqEx(long port,
* @param[in] pFunc Pointer to the structure describing the callback function.
* @param[in] hUser 32-bit value that is passed to the callback function.
* @param[out] pNotification Address of the variable that will receive the handle of the notification.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncAddDeviceNotificationReqEx(long port,
const AmsAddr* pAddr,
Expand All @@ -134,14 +134,14 @@ long AdsSyncAddDeviceNotificationReqEx(long port,
* @param[in] port port number of an Ads port that had previously been opened with AdsPortOpenEx().
* @param[in] pAddr Structure with NetId and port number of the ADS server.
* @param[in] hNotification Address of the variable that contains the handle of the notification.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncDelDeviceNotificationReqEx(long port, const AmsAddr* pAddr, uint32_t hNotification);

/**
* Read the configured timeout for the ADS functions. The standard value is 5000 ms.
* @param[in] port port number of an Ads port that had previously been opened with AdsPortOpenEx().
* @param[out] timeout Buffer to store timeout value in ms.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncGetTimeoutEx(long port, uint32_t* timeout);
8 changes: 4 additions & 4 deletions AdsLib/standalone/AdsLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Add new ams route to target system
* @param[in] ams address of the target system
* @param[in] ip address of the target system
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsAddRoute(AmsNetId ams, const char* ip);

Expand All @@ -25,7 +25,7 @@ void AdsDelRoute(AmsNetId ams);
* closed. The port to be closed must previously have been opened via
* an AdsPortOpenEx() call.
* @param[in] port port number of an Ads port that had previously been opened with AdsPortOpenEx().
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsPortCloseEx(long port);

Expand All @@ -41,7 +41,7 @@ long AdsPortOpenEx();
* Returns the local NetId and port number.
* @param[in] port port number of an Ads port that had previously been opened with AdsPortOpenEx().
* @param[out] pAddr Pointer to the structure of type AmsAddr.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsGetLocalAddressEx(long port, AmsAddr* pAddr);

Expand All @@ -55,6 +55,6 @@ void AdsSetLocalAddress(AmsNetId ams);
* Alters the timeout for the ADS functions. The standard value is 5000 ms.
* @param[in] port port number of an Ads port that had previously been opened with AdsPortOpenEx().
* @param[in] timeout Timeout in ms.
* @return [ADS Return Code](http://infosys.beckhoff.de/content/1033/tc3_adsdll2/html/ads_returncodes.htm?id=17663)
* @return [ADS Return Code](https://infosys.beckhoff.com/content/1031/tcadscommon/html/ads_returncodes.htm?id=1666172286265530469)
*/
long AdsSyncSetTimeoutEx(long port, uint32_t timeout);

0 comments on commit d4fb045

Please sign in to comment.