master/globals.h
branchstable-1.1
changeset 1715 e675450f2174
parent 293 14aeb79aa992
child 356 4bdc4f2e1a93
child 1718 048c7310279c
equal deleted inserted replaced
1714:f149465f4c63 1715:e675450f2174
    49 
    49 
    50 /** master main version */
    50 /** master main version */
    51 #define EC_MASTER_VERSION_MAIN  1
    51 #define EC_MASTER_VERSION_MAIN  1
    52 
    52 
    53 /** master sub version (after the dot) */
    53 /** master sub version (after the dot) */
    54 #define EC_MASTER_VERSION_SUB   0
    54 #define EC_MASTER_VERSION_SUB   1
    55 
    55 
    56 /** master extra version (just a string) */
    56 /** master extra version (just a string) */
    57 #define EC_MASTER_VERSION_EXTRA "trunk"
    57 #define EC_MASTER_VERSION_EXTRA "trunk"
    58 
    58 
    59 /** maximum number of FMMUs per slave */
    59 /** maximum number of FMMUs per slave */
    62 /** size of the EoE tx queue */
    62 /** size of the EoE tx queue */
    63 #define EC_EOE_TX_QUEUE_SIZE 100
    63 #define EC_EOE_TX_QUEUE_SIZE 100
    64 
    64 
    65 /** clock frequency for the EoE state machines */
    65 /** clock frequency for the EoE state machines */
    66 #define EC_EOE_FREQUENCY 1000
    66 #define EC_EOE_FREQUENCY 1000
       
    67 
       
    68 /** datagram timeout in microseconds */
       
    69 #define EC_IO_TIMEOUT 500
    67 
    70 
    68 /******************************************************************************
    71 /******************************************************************************
    69  *  EtherCAT protocol
    72  *  EtherCAT protocol
    70  *****************************************************************************/
    73  *****************************************************************************/
    71 
    74 
   168         .name = EC_STR(NAME), .owner = THIS_MODULE, .mode = S_IRUGO | S_IWUSR \
   171         .name = EC_STR(NAME), .owner = THIS_MODULE, .mode = S_IRUGO | S_IWUSR \
   169     }
   172     }
   170 
   173 
   171 /*****************************************************************************/
   174 /*****************************************************************************/
   172 
   175 
   173 extern void ec_print_data(const uint8_t *, size_t);
   176 void ec_print_data(const uint8_t *, size_t);
   174 extern void ec_print_data_diff(const uint8_t *, const uint8_t *, size_t);
   177 void ec_print_data_diff(const uint8_t *, const uint8_t *, size_t);
   175 extern void ec_print_states(uint8_t);
   178 size_t ec_state_string(uint8_t, char *);
   176 
   179 
   177 /*****************************************************************************/
   180 /*****************************************************************************/
   178 
   181 
   179 /**
   182 /**
   180    Code - Message pair.
   183    Code - Message pair.
   190 ec_code_msg_t;
   193 ec_code_msg_t;
   191 
   194 
   192 /*****************************************************************************/
   195 /*****************************************************************************/
   193 
   196 
   194 #endif
   197 #endif
   195