forked from zjw11525/MyRobot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zjw11525
committed
May 11, 2019
1 parent
39610f3
commit 800d343
Showing
104 changed files
with
32,437 additions
and
173 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
pch.cpp | ||
Matlab2CPP.cpp | ||
Matlab2CPP.cpp | ||
Matlab2CPP.vcxproj -> C:\Users\Administrator\Desktop\MyRobot\Matlab2CPP\Debug\Matlab2CPP.exe |
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1.77 KB
(200%)
Matlab2CPP/Matlab2CPP/Debug/Matlab2CPP.tlog/CL.command.1.tlog
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1.86 KB
(230%)
Matlab2CPP/Matlab2CPP/Debug/Matlab2CPP.tlog/CL.write.1.tlog
Binary file not shown.
Binary file modified
BIN
+584 Bytes
(140%)
Matlab2CPP/Matlab2CPP/Debug/Matlab2CPP.tlog/link.command.1.tlog
Binary file not shown.
Binary file modified
BIN
+294 Bytes
(110%)
Matlab2CPP/Matlab2CPP/Debug/Matlab2CPP.tlog/link.read.1.tlog
Binary file not shown.
Binary file modified
BIN
+478 Bytes
(160%)
Matlab2CPP/Matlab2CPP/Debug/Matlab2CPP.tlog/link.write.1.tlog
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,244 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// File: TcAdsAPI.h | ||
// Description: Prototypes and Definitions for non C++ Applications | ||
// Author: RamonB | ||
// Created: Wed Nov 6 10:00:00 1996 | ||
// | ||
// | ||
// BECKHOFF-Industrieelektronik-GmbH | ||
// | ||
// Modifications: | ||
// KlausBue 11/1999 | ||
// Register Callback for Router notifications | ||
// | ||
// ChristophC 16/07/2001 | ||
// Double definition of router callback function removed | ||
// | ||
//////////////////////////////////////////////////////////////////////////////// | ||
#ifndef __ADSAPI_H__ | ||
#define __ADSAPI_H__ | ||
|
||
#define ADSAPIERR_NOERROR 0x0000 | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsGetDllVersion( void ); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsPortOpen( void ); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsPortClose( void ); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsGetLocalAddress( AmsAddr* pAddr ); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncWriteReq( AmsAddr* pServerAddr, // Ams address of ADS server | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset, // index offset in ADS server interface | ||
unsigned long length, // count of bytes to write | ||
void* pData // pointer to the client buffer | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadReq( AmsAddr* pAddr, // Ams address of ADS server | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset, // index offset in ADS server interface | ||
unsigned long length, // count of bytes to read | ||
void* pData // pointer to the client buffer | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadReqEx( AmsAddr* pAddr, // Ams address of ADS server | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset, // index offset in ADS server interface | ||
unsigned long length, // count of bytes to read | ||
void* pData, // pointer to the client buffer | ||
unsigned long* pcbReturn // count of bytes read | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadWriteReq( AmsAddr* pAddr, // Ams address of ADS server | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset, // index offset in ADS server interface | ||
unsigned long cbReadLength, // count of bytes to read | ||
void* pReadData, // pointer to the client buffer | ||
unsigned long cbWriteLength, // count of bytes to write | ||
void* pWriteData // pointer to the client buffer | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadWriteReqEx( AmsAddr* pAddr, // Ams address of ADS server | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset, // index offset in ADS server interface | ||
unsigned long cbReadLength, // count of bytes to read | ||
void* pReadData, // pointer to the client buffer | ||
unsigned long cbWriteLength, // count of bytes to write | ||
void* pWriteData, // pointer to the client buffer | ||
unsigned long* pcbReturn // count of bytes read | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadDeviceInfoReq( AmsAddr* pAddr, // Ams address of ADS server | ||
char* pDevName,// fixed length string (16 Byte) | ||
AdsVersion* pVersion // client buffer to store server version | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncWriteControlReq( AmsAddr* pAddr, // Ams address of ADS server | ||
unsigned short adsState, // index group in ADS server interface | ||
unsigned short deviceState,// index offset in ADS server interface | ||
unsigned long length, // count of bytes to write | ||
void* pData // pointer to the client buffer | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadStateReq( AmsAddr* pAddr, // Ams address of ADS server | ||
unsigned short* pAdsState, // pointer to client buffer | ||
unsigned short* pDeviceState// pointer to the client buffer | ||
); | ||
|
||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncAddDeviceNotificationReq( AmsAddr* pAddr, // Ams address of ADS server | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset,// index offset in ADS server interface | ||
AdsNotificationAttrib* pNoteAttrib, // attributes of notification request | ||
PAdsNotificationFuncEx pNoteFunc, // address of notification callback | ||
unsigned long hUser, // user handle | ||
unsigned long *pNotification // pointer to notification handle (return value) | ||
); | ||
__declspec( dllexport ) | ||
long __stdcall AdsSyncDelDeviceNotificationReq( AmsAddr* pAddr,// Ams address of ADS server | ||
unsigned long hNotification // notification handle | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncSetTimeout( long nMs ); // Set timeout in ms | ||
|
||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsGetLastError( void ); | ||
|
||
|
||
/// register callback | ||
__declspec( dllexport ) | ||
long __stdcall AdsAmsRegisterRouterNotification (PAmsRouterNotificationFuncEx pNoteFunc ); | ||
|
||
/// unregister callback | ||
__declspec( dllexport ) | ||
long __stdcall AdsAmsUnRegisterRouterNotification (); | ||
|
||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncGetTimeout(long *pnMs ); // client buffer to store timeout | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsAmsPortEnabled(BOOL *pbEnabled); | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// new Ads functions for multithreading applications | ||
__declspec( dllexport ) | ||
long __stdcall AdsPortOpenEx( ); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsPortCloseEx( long port ); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsGetLocalAddressEx(long port, AmsAddr* pAddr ); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncWriteReqEx( long port, // Ams port of ADS client | ||
AmsAddr* pServerAddr, // Ams address of ADS server | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset, // index offset in ADS server interface | ||
unsigned long length, // count of bytes to write | ||
void* pData // pointer to the client buffer | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadReqEx2( long port, // Ams port of ADS client | ||
AmsAddr* pServerAddr, // Ams address of ADS server | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset, // index offset in ADS server interface | ||
unsigned long length, // count of bytes to read | ||
void* pData, // pointer to the client buffer | ||
unsigned long* pcbReturn // count of bytes read | ||
); | ||
|
||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadWriteReqEx2( long port, // Ams port of ADS client | ||
AmsAddr* pServerAddr, // Ams address of ADS server | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset, // index offset in ADS server interface | ||
unsigned long cbReadLength, // count of bytes to read | ||
void* pReadData, // pointer to the client buffer | ||
unsigned long cbWriteLength, // count of bytes to write | ||
void* pWriteData, // pointer to the client buffer | ||
unsigned long* pcbReturn // count of bytes read | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadDeviceInfoReqEx( long port, // Ams port of ADS client | ||
AmsAddr* pServerAddr, // Ams address of ADS server | ||
char* pDevName, // fixed length string (16 Byte) | ||
AdsVersion* pVersion // client buffer to store server version | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncWriteControlReqEx( long port, // Ams port of ADS client | ||
AmsAddr* pServerAddr, // Ams address of ADS server | ||
unsigned short adsState, // index group in ADS server interface | ||
unsigned short deviceState, // index offset in ADS server interface | ||
unsigned long length, // count of bytes to write | ||
void* pData // pointer to the client buffer | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncReadStateReqEx( long port, // Ams port of ADS client | ||
AmsAddr* pServerAddr, // Ams address of ADS server | ||
unsigned short* pAdsState, // pointer to client buffer | ||
unsigned short* pDeviceState // pointer to the client buffer | ||
); | ||
|
||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncAddDeviceNotificationReqEx( long port, // Ams port of ADS client | ||
AmsAddr* pServerAddr, // Ams address of ADS ser | ||
unsigned long indexGroup, // index group in ADS server interface | ||
unsigned long indexOffset, // index offset in ADS server interface | ||
AdsNotificationAttrib* pNoteAttrib, // attributes of notification request | ||
PAdsNotificationFuncEx pNoteFunc, // address of notification callback | ||
unsigned long hUser, // user handle | ||
unsigned long *pNotification // pointer to notification handle (return value) | ||
); | ||
__declspec( dllexport ) | ||
long __stdcall AdsSyncDelDeviceNotificationReqEx( long port, // Ams port of ADS client | ||
AmsAddr* pServerAddr, // Ams address of ADS ser | ||
unsigned long hNotification // notification handle | ||
); | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncSetTimeoutEx(long port, // Ams port of ADS client | ||
long nMs ); // Set timeout in ms | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsSyncGetTimeoutEx(long port, // Ams port of ADS client | ||
long *pnMs ); // client buffer to store timeout | ||
|
||
__declspec( dllexport ) | ||
long __stdcall AdsAmsPortEnabledEx(long nPort, BOOL *pbEnabled); | ||
|
||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif | ||
#endif |
Oops, something went wrong.