diff -r 661ad8bd5ea1 -r 24fac09b5b26 master/globals.h --- a/master/globals.h Fri Aug 10 13:00:31 2007 +0000 +++ b/master/globals.h Fri Aug 10 13:35:11 2007 +0000 @@ -65,6 +65,9 @@ /** minimum size of a buffer used with ec_state_string() */ #define EC_STATE_STRING_SIZE 32 +/** maximum EEPROM size in words, to avoid infinite reading. */ +#define EC_MAX_EEPROM_SIZE 512 + /****************************************************************************** * EtherCAT protocol *****************************************************************************/ @@ -82,6 +85,9 @@ #define EC_MAX_DATA_SIZE (ETH_DATA_LEN - EC_FRAME_HEADER_SIZE \ - EC_DATAGRAM_HEADER_SIZE - EC_DATAGRAM_FOOTER_SIZE) +/** word offset of first EEPROM category. */ +#define EC_FIRST_EEPROM_CATEGORY_OFFSET 0x40 + /*****************************************************************************/ /**