equal
deleted
inserted
replaced
42 |
42 |
43 #include "sdo_request.h" |
43 #include "sdo_request.h" |
44 |
44 |
45 /*****************************************************************************/ |
45 /*****************************************************************************/ |
46 |
46 |
|
47 /** Default timeout in ms to wait for Sdo transfer responses. |
|
48 */ |
|
49 #define EC_SDO_REQUEST_RESPONSE_TIMEOUT 3000 |
|
50 |
|
51 /*****************************************************************************/ |
|
52 |
47 void ec_sdo_request_clear_data(ec_sdo_request_t *); |
53 void ec_sdo_request_clear_data(ec_sdo_request_t *); |
48 |
54 |
49 /*****************************************************************************/ |
55 /*****************************************************************************/ |
50 |
56 |
51 /** State type translation table. |
57 /** State type translation table. |
69 req->data = NULL; |
75 req->data = NULL; |
70 req->mem_size = 0; |
76 req->mem_size = 0; |
71 req->data_size = 0; |
77 req->data_size = 0; |
72 req->dir = EC_DIR_OUTPUT; |
78 req->dir = EC_DIR_OUTPUT; |
73 req->issue_timeout = 0; // no timeout |
79 req->issue_timeout = 0; // no timeout |
74 req->response_timeout = 0; // immediate response required |
80 req->response_timeout = EC_SDO_REQUEST_RESPONSE_TIMEOUT; |
75 req->state = EC_REQUEST_INIT; |
81 req->state = EC_REQUEST_INIT; |
76 req->abort_code = 0x00000000; |
82 req->abort_code = 0x00000000; |
77 } |
83 } |
78 |
84 |
79 /*****************************************************************************/ |
85 /*****************************************************************************/ |