35 #ifndef __EC_SDO_REQUEST_H__ 36 #define __EC_SDO_REQUEST_H__ 38 #include <linux/list.h> void ec_sdo_request_init(ec_sdo_request_t *)
SDO request constructor.
ec_internal_request_state_t state
SDO request state.
uint32_t response_timeout
Maximum time in ms, the transfer is retried, if the slave does not respond.
size_t mem_size
Size of SDO data memory.
uint32_t abort_code
SDO request abort code.
void ec_sdo_request_clear(ec_sdo_request_t *)
SDO request destructor.
uint8_t * data
Pointer to SDO data.
int ec_sdo_request_timed_out(const ec_sdo_request_t *)
Checks, if the timeout was exceeded.
Global definitions and macros.
ec_direction_t dir
Direction.
ec_internal_request_state_t
Generic request state.
unsigned long jiffies_sent
Jiffies, when the upload/download request was sent.
ec_direction_t
Direction type for PDO assignment functions.
int ec_sdo_request_copy_data(ec_sdo_request_t *, const uint8_t *, size_t)
Copies SDO data from an external source.
uint8_t subindex
SDO subindex.
size_t data_size
Size of SDO data.
int ec_sdo_request_copy(ec_sdo_request_t *, const ec_sdo_request_t *)
Copy another SDO request.
struct list_head list
List item.
uint32_t issue_timeout
Maximum time in ms, the processing of the request may take.
unsigned long jiffies_start
Jiffies, when the request was issued.
int ec_sdo_request_alloc(ec_sdo_request_t *, size_t)
Pre-allocates the data memory.
uint8_t complete_access
SDO shall be transferred completely.