Skip to content

Commit

Permalink
Merge pull request #1 from polfeliu/INGK-979-try-to-expose-timeouts-o…
Browse files Browse the repository at this point in the history
…f-soem-to-pysoem

require timeout from external file soem_config
  • Loading branch information
bnjmnp authored Dec 1, 2024
2 parents 1540138 + b20fe93 commit 4edaf99
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions soem/ethercattype.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ extern "C"
#endif

#include "osal.h"
#include "soem_config.h"

/** define EC_VER1 if version 1 default context and functions are needed
* define EC_VER2 if application uses only ecx_ functions and own context */
Expand Down Expand Up @@ -60,20 +61,8 @@ extern "C"
#define EC_ECATTYPE 0x1000
/** number of frame buffers per channel (tx, rx1 rx2) */
#define EC_MAXBUF 16
/** timeout value in us for tx frame to return to rx */
#define EC_TIMEOUTRET 2000
/** timeout value in us for safe data transfer, max. triple retry */
#define EC_TIMEOUTRET3 (EC_TIMEOUTRET * 3)
/** timeout value in us for return "safe" variant (f.e. wireless) */
#define EC_TIMEOUTSAFE 20000
/** timeout value in us for EEPROM access */
#define EC_TIMEOUTEEP 20000
/** timeout value in us for tx mailbox cycle */
#define EC_TIMEOUTTXM 20000
/** timeout value in us for rx mailbox cycle */
#define EC_TIMEOUTRXM 700000
/** timeout value in us for check statechange */
#define EC_TIMEOUTSTATE 2000000


/** size of EEPROM bitmap cache */
#define EC_MAXEEPBITMAP 128
/** size of EEPROM cache buffer */
Expand Down

0 comments on commit 4edaf99

Please sign in to comment.