82 datagramP->command = com;
83 datagramP->index = idx;
84 datagramP->ADP =
htoes(ADP);
85 datagramP->ADO =
htoes(ADO);
86 datagramP->dlength =
htoes(length);
129 datagramP->command = com;
130 datagramP->index = idx;
131 datagramP->ADP =
htoes(ADP);
132 datagramP->ADO =
htoes(ADO);
141 datagramP->dlength =
htoes(length);
313 ecx_APRD(port, ADP, ADO,
sizeof(w), &w, timeout);
358 ecx_FPRD(port, ADP, ADO,
sizeof(w), &w, timeout);
396 return ecx_APWR(port, ADP, ADO,
sizeof(data), &data, timeout);
433 return ecx_FPWR(port, ADP, ADO,
sizeof(data), &data, timeout);
540 memcpy(&DCtE, &(port->
rxbuf[idx][DCtO]),
sizeof(*DCtime));
556 return ecx_adddatagram (&ecx_port, frame, com, idx, more, ADP, ADO, length, data);
561 return ecx_BWR (&ecx_port, ADP, ADO, length, data, timeout);
566 return ecx_BRD(&ecx_port, ADP, ADO, length, data, timeout);
571 return ecx_APRD(&ecx_port, ADP, ADO, length, data, timeout);
576 return ecx_ARMW(&ecx_port, ADP, ADO, length, data, timeout);
581 return ecx_FRMW(&ecx_port, ADP, ADO, length, data, timeout);
589 ec_APRD(ADP, ADO,
sizeof(w), &w, timeout);
596 return ecx_FPRD(&ecx_port, ADP, ADO, length, data, timeout);
604 ec_FPRD(ADP, ADO,
sizeof(w), &w, timeout);
610 return ecx_APWR(&ecx_port, ADP, ADO, length, data, timeout);
615 return ec_APWR(ADP, ADO,
sizeof(data), &data, timeout);
620 return ecx_FPWR(&ecx_port, ADP, ADO, length, data, timeout);
625 return ec_FPWR(ADP, ADO,
sizeof(data), &data, timeout);
628 int ec_LRW(
uint32 LogAdr,
uint16 length,
void *data,
int timeout)
630 return ecx_LRW(&ecx_port, LogAdr, length, data, timeout);
633 int ec_LRD(
uint32 LogAdr,
uint16 length,
void *data,
int timeout)
635 return ecx_LRD(&ecx_port, LogAdr, length, data, timeout);
638 int ec_LWR(
uint32 LogAdr,
uint16 length,
void *data,
int timeout)
640 return ecx_LWR(&ecx_port, LogAdr, length, data, timeout);
645 return ecx_LRWDC(&ecx_port, LogAdr, length, data, DCrs, DCtime, timeout);
int ecx_adddatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, boolean more, uint16 ADP, uint16 ADO, uint16 length, void *data)
int ecx_srconfirm(ecx_portt *port, int idx, int timeout)
void ecx_setbufstat(ecx_portt *port, int idx, int bufstat)
int txbuflength[EC_MAXBUF]
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 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)
#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.
int ecx_FPRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ecx_BRD(ecx_portt *port, 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 ecx_LRD(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout)
Headerfile for ethercatbase.c.
uint16 ecx_FPRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout)
uint16 ecx_APRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout)
int ecx_LRW(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout)
int ecx_ARMW(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
int ecx_getindex(ecx_portt *port)