00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00046 #ifndef _ethercatbase_
00047 #define _ethercatbase_
00048
00049 #ifdef __cplusplus
00050 extern "C"
00051 {
00052 #endif
00053
00054 int ecx_setupdatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, uint16 ADP, uint16 ADO, uint16 length, void *data);
00055 int ecx_adddatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, boolean more, uint16 ADP, uint16 ADO, uint16 length, void *data);
00056 int ecx_BWR(ecx_portt *port, uint16 ADP,uint16 ADO,uint16 length,void *data,int timeout);
00057 int ecx_BRD(ecx_portt *port, uint16 ADP,uint16 ADO,uint16 length,void *data,int timeout);
00058 int ecx_APRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00059 int ecx_ARMW(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00060 int ecx_FRMW(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00061 uint16 ecx_APRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout);
00062 int ecx_FPRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00063 uint16 ecx_FPRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout);
00064 int ecx_APWRw(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 data, int timeout);
00065 int ecx_APWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00066 int ecx_FPWRw(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 data, int timeout);
00067 int ecx_FPWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00068 int ecx_LRW(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout);
00069 int ecx_LRD(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout);
00070 int ecx_LWR(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout);
00071 int ecx_LRWDC(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, uint16 DCrs, int64 *DCtime, int timeout);
00072
00073 #ifdef EC_VER1
00074 int ec_setupdatagram(void *frame, uint8 com, uint8 idx, uint16 ADP, uint16 ADO, uint16 length, void *data);
00075 int ec_adddatagram(void *frame, uint8 com, uint8 idx, boolean more, uint16 ADP, uint16 ADO, uint16 length, void *data);
00076 int ec_BWR(uint16 ADP,uint16 ADO,uint16 length,void *data,int timeout);
00077 int ec_BRD(uint16 ADP,uint16 ADO,uint16 length,void *data,int timeout);
00078 int ec_APRD(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00079 int ec_ARMW(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00080 int ec_FRMW(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00081 uint16 ec_APRDw(uint16 ADP, uint16 ADO, int timeout);
00082 int ec_FPRD(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00083 uint16 ec_FPRDw(uint16 ADP, uint16 ADO, int timeout);
00084 int ec_APWRw(uint16 ADP, uint16 ADO, uint16 data, int timeout);
00085 int ec_APWR(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00086 int ec_FPWRw(uint16 ADP, uint16 ADO, uint16 data, int timeout);
00087 int ec_FPWR(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout);
00088 int ec_LRW(uint32 LogAdr, uint16 length, void *data, int timeout);
00089 int ec_LRD(uint32 LogAdr, uint16 length, void *data, int timeout);
00090 int ec_LWR(uint32 LogAdr, uint16 length, void *data, int timeout);
00091 int ec_LRWDC(uint32 LogAdr, uint16 length, void *data, uint16 DCrs, int64 *DCtime, int timeout);
00092 #endif
00093
00094 #ifdef __cplusplus
00095 }
00096 #endif
00097
00098 #endif