master/globals.h
changeset 872 d4e0380d63b3
parent 861 6e3de145421a
child 883 4963e22a267a
equal deleted inserted replaced
871:5a8959f77854 872:d4e0380d63b3
    62 #define EC_WAIT_SDO_DICT 3
    62 #define EC_WAIT_SDO_DICT 3
    63 
    63 
    64 /** Minimum size of a buffer used with ec_state_string(). */
    64 /** Minimum size of a buffer used with ec_state_string(). */
    65 #define EC_STATE_STRING_SIZE 32
    65 #define EC_STATE_STRING_SIZE 32
    66 
    66 
    67 /** Maximum EEPROM size in words, to avoid infinite reading. */
    67 /** Maximum SII size in words, to avoid infinite reading. */
    68 #define EC_MAX_EEPROM_SIZE 1024
    68 #define EC_MAX_SII_SIZE 1024
    69 
    69 
    70 /******************************************************************************
    70 /******************************************************************************
    71  * EtherCAT protocol
    71  * EtherCAT protocol
    72  *****************************************************************************/
    72  *****************************************************************************/
    73 
    73 
    85 
    85 
    86 /** Resulting maximum data size of a single datagram in a frame. */
    86 /** Resulting maximum data size of a single datagram in a frame. */
    87 #define EC_MAX_DATA_SIZE (ETH_DATA_LEN - EC_FRAME_HEADER_SIZE \
    87 #define EC_MAX_DATA_SIZE (ETH_DATA_LEN - EC_FRAME_HEADER_SIZE \
    88                           - EC_DATAGRAM_HEADER_SIZE - EC_DATAGRAM_FOOTER_SIZE)
    88                           - EC_DATAGRAM_HEADER_SIZE - EC_DATAGRAM_FOOTER_SIZE)
    89 
    89 
    90 /** Word offset of first EEPROM category. */
    90 /** Word offset of first SII category. */
    91 #define EC_FIRST_EEPROM_CATEGORY_OFFSET 0x40
    91 #define EC_FIRST_SII_CATEGORY_OFFSET 0x40
    92 
    92 
    93 /** Size of a sync manager configuration page. */
    93 /** Size of a sync manager configuration page. */
    94 #define EC_SYNC_PAGE_SIZE 8
    94 #define EC_SYNC_PAGE_SIZE 8
    95 
    95 
    96 /** Maximum number of FMMUs per slave. */
    96 /** Maximum number of FMMUs per slave. */