47 memset(datagramdata, 0, length);
50 memcpy(datagramdata, data, length);
78 datagramP->command = com;
79 datagramP->index = idx;
80 datagramP->ADP =
htoes(ADP);
81 datagramP->ADO =
htoes(ADO);
82 datagramP->dlength =
htoes(length);
122 datagramP->command = com;
123 datagramP->index = idx;
124 datagramP->ADP =
htoes(ADP);
125 datagramP->ADO =
htoes(ADO);
134 datagramP->dlength =
htoes(length);
303 ecx_APRD(port, ADP, ADO,
sizeof(w), &w, timeout);
348 ecx_FPRD(port, ADP, ADO,
sizeof(w), &w, timeout);
386 return ecx_APWR(port, ADP, ADO,
sizeof(data), &data, timeout);
423 return ecx_FPWR(port, ADP, ADO,
sizeof(data), &data, timeout);
530 memcpy(&DCtE, &(port->
rxbuf[idx][DCtO]),
sizeof(*DCtime));
579 ec_APRD(ADP, ADO,
sizeof(w), &w, timeout);
594 ec_FPRD(ADP, ADO,
sizeof(w), &w, timeout);
605 return ec_APWR(ADP, ADO,
sizeof(data), &data, timeout);
615 return ec_FPWR(ADP, ADO,
sizeof(data), &data, timeout);
int ecx_adddatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, boolean more, uint16 ADP, uint16 ADO, uint16 length, void *data)
uint16 ec_APRDw(uint16 ADP, uint16 ADO, int timeout)
int ec_APWR(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ec_FPRD(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ec_APRD(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int txbuflength[EC_MAXBUF]
int ec_FRMW(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ecx_LWR(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout)
int ecx_LRWDC(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, uint16 DCrs, int64 *DCtime, int timeout)
int ec_ARMW(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ecx_APWRw(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 data, int timeout)
int ecx_FPWRw(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 data, int timeout)
int ecx_FPWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ec_LWR(uint32 LogAdr, uint16 length, void *data, int timeout)
#define EC_DATAGRAMFOLLOWS
int ecx_setupdatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, uint16 ADP, uint16 ADO, uint16 length, void *data)
int ecx_APWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
General typedefs and defines for EtherCAT.
static void ecx_writedatagramdata(void *datagramdata, ec_cmdtype com, uint16 length, const void *data)
int ecx_FPRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ecx_getindex(ecx_portt *port)
int ec_LRW(uint32 LogAdr, uint16 length, void *data, int timeout)
int ecx_BRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ec_BRD(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ecx_FRMW(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
PACKED_BEGIN struct PACKED ec_comt
int ecx_BWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ecx_APRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ec_LRD(uint32 LogAdr, uint16 length, void *data, int timeout)
int ecx_LRD(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout)
int ec_FPWR(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
Headerfile for ethercatbase.c.
int ec_APWRw(uint16 ADP, uint16 ADO, uint16 data, int timeout)
int ec_BWR(uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
uint16 ecx_FPRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout)
int ec_LRWDC(uint32 LogAdr, uint16 length, void *data, uint16 DCrs, int64 *DCtime, int timeout)
uint16 ecx_APRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout)
int ecx_srconfirm(ecx_portt *port, int idx, int timeout)
int ec_FPWRw(uint16 ADP, uint16 ADO, uint16 data, int timeout)
uint16 ec_FPRDw(uint16 ADP, uint16 ADO, int timeout)
int ecx_LRW(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout)
int ec_adddatagram(void *frame, uint8 com, uint8 idx, boolean more, uint16 ADP, uint16 ADO, uint16 length, void *data)
void ecx_setbufstat(ecx_portt *port, int idx, int bufstat)
int ec_setupdatagram(void *frame, uint8 com, uint8 idx, uint16 ADP, uint16 ADO, uint16 length, void *data)
int ecx_ARMW(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)