master/sdo_request.c
changeset 1037 59f191c9185b
parent 1035 7fafc1a7451e
child 1053 0cb9604cbaa7
equal deleted inserted replaced
1036:dc2008bc8113 1037:59f191c9185b
    71     req->data_size = 0;
    71     req->data_size = 0;
    72     req->dir = EC_DIR_OUTPUT;
    72     req->dir = EC_DIR_OUTPUT;
    73     req->issue_timeout = 0; // no timeout
    73     req->issue_timeout = 0; // no timeout
    74     req->response_timeout = 0; // immediate response required
    74     req->response_timeout = 0; // immediate response required
    75     req->state = EC_REQUEST_INIT;
    75     req->state = EC_REQUEST_INIT;
       
    76     req->abort_code = 0x00000000;
    76 }
    77 }
    77 
    78 
    78 /*****************************************************************************/
    79 /*****************************************************************************/
    79 
    80 
    80 /** Sdo request destructor.
    81 /** Sdo request destructor.
   209 
   210 
   210 void ecrt_sdo_request_read(ec_sdo_request_t *req)
   211 void ecrt_sdo_request_read(ec_sdo_request_t *req)
   211 {
   212 {
   212     req->dir = EC_DIR_INPUT;
   213     req->dir = EC_DIR_INPUT;
   213     req->state = EC_REQUEST_QUEUED;
   214     req->state = EC_REQUEST_QUEUED;
       
   215     req->abort_code = 0x00000000;
   214     req->jiffies_start = jiffies;
   216     req->jiffies_start = jiffies;
   215 }
   217 }
   216 
   218 
   217 /*****************************************************************************/
   219 /*****************************************************************************/
   218 
   220 
   219 void ecrt_sdo_request_write(ec_sdo_request_t *req)
   221 void ecrt_sdo_request_write(ec_sdo_request_t *req)
   220 {
   222 {
   221     req->dir = EC_DIR_OUTPUT;
   223     req->dir = EC_DIR_OUTPUT;
   222     req->state = EC_REQUEST_QUEUED;
   224     req->state = EC_REQUEST_QUEUED;
       
   225     req->abort_code = 0x00000000;
   223     req->jiffies_start = jiffies;
   226     req->jiffies_start = jiffies;
   224 }
   227 }
   225 
   228 
   226 /*****************************************************************************/
   229 /*****************************************************************************/
   227 
   230