Go to the documentation of this file.
11 #ifndef _ethercatmain_
12 #define _ethercatmain_
21 #define EC_MAXELIST 64
25 #define EC_MAXSLAVE 200
29 #define EC_MAXIOSEGMENTS 64
31 #define EC_MAXMBX 1486
33 #define EC_MAXEEPDO 0x200
39 #define EC_MAXLEN_ADAPTERNAME 128
87 #define ECT_MBXPROT_AOE 0x0001
88 #define ECT_MBXPROT_EOE 0x0002
89 #define ECT_MBXPROT_COE 0x0004
90 #define ECT_MBXPROT_FOE 0x0008
91 #define ECT_MBXPROT_SOE 0x0010
92 #define ECT_MBXPROT_VOE 0x0020
94 #define ECT_COEDET_SDO 0x01
95 #define ECT_COEDET_SDOINFO 0x02
96 #define ECT_COEDET_PDOASSIGN 0x04
97 #define ECT_COEDET_PDOCONFIG 0x08
98 #define ECT_COEDET_UPLOAD 0x10
99 #define ECT_COEDET_SDOCA 0x20
101 #define EC_SMENABLEMASK 0xfffeffff
450 int ec_init(
const char * ifname);
ec_errort Error[EC_MAXELIST+1]
uint16 ecx_siiFMMU(ecx_contextt *context, uint16 slave, ec_eepromFMMUt *FMMU)
PACKED_BEGIN struct PACKED ec_fmmu ec_fmmut
#define EC_MAXLEN_ADAPTERNAME
int ec_mbxreceive(uint16 slave, ec_mbxbuft *mbx, int timeout)
int ec_send_overlap_processdata_group(uint8 group)
int(* PO2SOconfig)(uint16 slave)
int ecx_mbxempty(ecx_contextt *context, uint16 slave, int timeout)
int ecx_writestate(ecx_contextt *context, uint16 slave)
int ecx_send_overlap_processdata(ecx_contextt *context)
PACKED_END PACKED_BEGIN struct PACKED ec_sm ec_smt
int(* EOEhook)(ecx_contextt *context, uint16 slave, void *eoembx)
uint64 ec_readeepromFP(uint16 configadr, uint16 eeproma, int timeout)
uint64 ecx_readeepromAP(ecx_contextt *context, uint16 aiadr, uint16 eeproma, int timeout)
int ec_init_redundant(const char *ifname, char *if2name)
int ecx_writeeepromAP(ecx_contextt *context, uint16 aiadr, uint16 eeproma, uint16 data, int timeout)
int ec_eeprom2master(uint16 slave)
uint8 ec_mbxbuft[EC_MAXMBX+1]
uint16 ec_siiSMnext(uint16 slave, ec_eepromSMt *SM, uint16 n)
void ecx_siistring(ecx_contextt *context, char *str, uint16 slave, uint16 Sn)
int ec_send_processdata(void)
uint32 ecx_readeeprom2(ecx_contextt *context, uint16 slave, int timeout)
struct ec_eepromSM ec_eepromSMt
uint64 ecx_readeepromFP(ecx_contextt *context, uint16 configadr, uint16 eeproma, int timeout)
int ec_init(const char *ifname)
uint32 ec_readeeprom(uint16 slave, uint16 eeproma, int timeout)
int ecx_readstate(ecx_contextt *context)
void ec_clearmbx(ec_mbxbuft *Mbx)
int ec_mbxsend(uint16 slave, ec_mbxbuft *mbx, int timeout)
void ecx_close(ecx_contextt *context)
void ec_packeterror(uint16 Slave, uint16 Index, uint8 SubIdx, uint16 ErrorCode)
int ec_mbxempty(uint16 slave, int timeout)
char desc[EC_MAXLEN_ADAPTERNAME]
PACKED_BEGIN struct PACKED ec_mbxheader ec_mbxheadert
int ecx_eeprom2pdi(ecx_contextt *context, uint16 slave)
int ecx_receive_processdata_group(ecx_contextt *context, uint8 group, int timeout)
int ecx_init(ecx_contextt *context, const char *ifname)
uint8 ecx_siigetbyte(ecx_contextt *context, uint16 slave, uint16 address)
int16 ec_siifind(uint16 slave, uint16 cat)
uint16 ecx_statecheck(ecx_contextt *context, uint16 slave, uint16 reqstate, int timeout)
uint32 IOsegment[EC_MAXIOSEGMENTS]
int ecx_eeprom2master(ecx_contextt *context, uint16 slave)
uint8 ec_siigetbyte(uint16 slave, uint16 address)
PACKED_BEGIN struct PACKED ec_SMcommtype ec_SMcommtypet
int ecx_init_redundant(ecx_contextt *context, ecx_redportt *redport, const char *ifname, char *if2name)
uint16 ec_siiFMMU(uint16 slave, ec_eepromFMMUt *FMMU)
int(* PO2SOconfigx)(ecx_contextt *context, uint16 slave)
PACKED_END PACKED_BEGIN struct PACKED ec_PDOdesc ec_PDOdesct
int ecx_writeeepromFP(ecx_contextt *context, uint16 configadr, uint16 eeproma, uint16 data, int timeout)
boolean ecx_iserror(ecx_contextt *context)
void ec_esidump(uint16 slave, uint8 *esibuf)
uint32 ecx_readeeprom(ecx_contextt *context, uint16 slave, uint16 eeproma, int timeout)
uint8 ec_nextmbxcnt(uint8 cnt)
ec_adaptert * ec_find_adapters(void)
int ec_siiPDO(uint16 slave, ec_eepromPDOt *PDO, uint8 t)
int ecx_send_processdata_group(ecx_contextt *context, uint8 group)
struct ec_group ec_groupt
uint16 SyncM[EC_MAXEEPDO]
uint16 ecx_siiSMnext(ecx_contextt *context, uint16 slave, ec_eepromSMt *SM, uint16 n)
uint16 ec_siiSM(uint16 slave, ec_eepromSMt *SM)
void ecx_readeeprom1(ecx_contextt *context, uint16 slave, uint16 eeproma)
int ec_writeeeprom(uint16 slave, uint16 eeproma, uint16 data, int timeout)
ec_fmmut FMMU[EC_MAXFMMU]
int ec_send_processdata_group(uint8 group)
struct ec_slave ec_slavet
uint32 ec_readeeprom2(uint16 slave, int timeout)
void ec_pusherror(const ec_errort *Ec)
ec_SMcommtypet * SMcommtype
uint64 ec_readeepromAP(uint16 aiadr, uint16 eeproma, int timeout)
int ec_send_overlap_processdata(void)
PACKED_END PACKED_BEGIN struct PACKED ec_alstatus ec_alstatust
void ecx_esidump(ecx_contextt *context, uint16 slave, uint8 *esibuf)
int ecx_writeeeprom(ecx_contextt *context, uint16 slave, uint16 eeproma, uint16 data, int timeout)
int ec_writestate(uint16 slave)
int ec_eeprom2pdi(uint16 slave)
int ec_receive_processdata_group(uint8 group, int timeout)
int ecx_mbxsend(ecx_contextt *context, uint16 slave, ec_mbxbuft *mbx, int timeout)
struct ec_eepromFMMU ec_eepromFMMUt
void ec_siistring(char *str, uint16 slave, uint16 Sn)
uint16 BitSize[EC_MAXEEPDO]
int ecx_send_overlap_processdata_group(ecx_contextt *context, uint8 group)
int ec_writeeepromFP(uint16 configadr, uint16 eeproma, uint16 data, int timeout)
int ec_writeeepromAP(uint16 aiadr, uint16 eeproma, uint16 data, int timeout)
PACKED_END struct ec_idxstack ec_idxstackT
boolean ec_poperror(ec_errort *Ec)
void ec_readeeprom1(uint16 slave, uint16 eeproma)
boolean ecx_poperror(ecx_contextt *context, ec_errort *Ec)
void ec_free_adapters(ec_adaptert *adapter)
static uint8 esibuf[EC_MAXEEPBUF]
int(* FOEhook)(uint16 slave, int packetnumber, int datasize)
uint16 SMbitsize[EC_MAXSM]
int16 ecx_siifind(ecx_contextt *context, uint16 slave, uint16 cat)
ec_PDOassignt * PDOassign
struct ec_ering ec_eringt
void ecx_pusherror(ecx_contextt *context, const ec_errort *Ec)
int ecx_receive_processdata(ecx_contextt *context, int timeout)
uint16 ec_statecheck(uint16 slave, uint16 reqstate, int timeout)
int ec_receive_processdata(int timeout)
uint16 Index[EC_MAXEEPDO]
char name[EC_MAXLEN_ADAPTERNAME]
int ecx_send_processdata(ecx_contextt *context)
void ecx_packeterror(ecx_contextt *context, uint16 Slave, uint16 Index, uint8 SubIdx, uint16 ErrorCode)
PACKED_END PACKED_BEGIN struct PACKED ec_PDOassign ec_PDOassignt
PACKED_END PACKED_BEGIN struct PACKED ec_state_status ec_state_status
struct ec_eepromPDO ec_eepromPDOt
int ecx_siiPDO(ecx_contextt *context, uint16 slave, ec_eepromPDOt *PDO, uint8 t)
int ecx_mbxreceive(ecx_contextt *context, uint16 slave, ec_mbxbuft *mbx, int timeout)
uint16 ecx_siiSM(ecx_contextt *context, uint16 slave, ec_eepromSMt *SM)
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49