master/globals.h
changeset 1774 a9143f82c7c5
parent 1606 6c5849669900
child 1826 ec6223c3b7ec
equal deleted inserted replaced
1773:5371f3e5f6a1 1774:a9143f82c7c5
    49 #define EC_IO_TIMEOUT 500
    49 #define EC_IO_TIMEOUT 500
    50 
    50 
    51 /** SDO injection timeout in microseconds. */
    51 /** SDO injection timeout in microseconds. */
    52 #define EC_SDO_INJECTION_TIMEOUT 10000
    52 #define EC_SDO_INJECTION_TIMEOUT 10000
    53 
    53 
    54 /** time to send a byte in nanoseconds. */
    54 /** Time to send a byte in nanoseconds.
    55 #define EC_BYTE_TRANSMITION_TIME 80
    55  *
       
    56  * t_ns = 1 / (100 MBit/s / 8 bit/byte) = 80 ns/byte
       
    57  */
       
    58 #define EC_BYTE_TRANSMISSION_TIME_NS 80
    56 
    59 
    57 /** Number of state machine retries on datagram timeout. */
    60 /** Number of state machine retries on datagram timeout. */
    58 #define EC_FSM_RETRIES 3
    61 #define EC_FSM_RETRIES 3
    59 
    62 
    60 /** Seconds to wait before fetching SDO dictionary
    63 /** Seconds to wait before fetching SDO dictionary