master/sdo_request.h
changeset 1035 7fafc1a7451e
parent 880 f6212c54a5e3
child 1037 59f191c9185b
equal deleted inserted replaced
1034:36cd81362f10 1035:7fafc1a7451e
    56     uint16_t index; /**< Sdo index. */
    56     uint16_t index; /**< Sdo index. */
    57     uint8_t subindex; /**< Sdo subindex. */
    57     uint8_t subindex; /**< Sdo subindex. */
    58     uint8_t *data; /**< Pointer to Sdo data. */
    58     uint8_t *data; /**< Pointer to Sdo data. */
    59     size_t mem_size; /**< Size of Sdo data memory. */
    59     size_t mem_size; /**< Size of Sdo data memory. */
    60     size_t data_size; /**< Size of Sdo data. */
    60     size_t data_size; /**< Size of Sdo data. */
    61     uint32_t timeout; /**< Timeout in ms. */
    61     uint32_t issue_timeout; /**< Maximum time in ms, the processing of the
       
    62                               request may take. */
       
    63     uint32_t response_timeout; /**< Maximum time in ms, the transfer is
       
    64                                  retried, if the slave does not respond. */
    62     ec_direction_t dir; /**< Direction. EC_DIR_OUTPUT means downloading to
    65     ec_direction_t dir; /**< Direction. EC_DIR_OUTPUT means downloading to
    63                           the slave, EC_DIR_INPUT means uploading from the
    66                           the slave, EC_DIR_INPUT means uploading from the
    64                           slave. */
    67                           slave. */
    65     ec_request_state_t state; /**< Sdo request state. */
    68     ec_request_state_t state; /**< Sdo request state. */
    66     unsigned long start_jiffies; /**< Jiffies, when the request was issued. */
    69     unsigned long jiffies_start; /**< Jiffies, when the request was issued. */
       
    70     unsigned long jiffies_sent; /**< Jiffies, when the upload/download
       
    71                                      request was sent. */
    67 };
    72 };
    68 
    73 
    69 /*****************************************************************************/
    74 /*****************************************************************************/
    70 
    75 
    71 void ec_sdo_request_init(ec_sdo_request_t *);
    76 void ec_sdo_request_init(ec_sdo_request_t *);