37 #ifndef __EC_SOE_REQUEST_H__ 38 #define __EC_SOE_REQUEST_H__ 40 #include <linux/list.h> uint16_t error_code
SoE error code.
ec_al_state_t
Application-layer state.
int ec_soe_request_timed_out(const ec_soe_request_t *)
Checks, if the timeout was exceeded.
ec_direction_t dir
Direction.
void ec_soe_request_write(ec_soe_request_t *)
Request a write operation.
void ec_soe_request_clear(ec_soe_request_t *)
SoE request destructor.
size_t data_size
Size of SDO data.
Global definitions and macros.
ec_al_state_t al_state
AL state (only valid for IDN config).
void ec_soe_request_set_drive_no(ec_soe_request_t *, uint8_t)
Set drive number.
unsigned long jiffies_start
Jiffies, when the request was issued.
ec_internal_request_state_t
Generic request state.
uint32_t issue_timeout
Maximum time in ms, the processing of the request may take.
void ec_soe_request_read(ec_soe_request_t *)
Request a read operation.
int ec_soe_request_append_data(ec_soe_request_t *, const uint8_t *, size_t)
Copies SoE data from an external source.
void ec_soe_request_init(ec_soe_request_t *)
SoE request constructor.
struct list_head list
List item.
ec_direction_t
Direction type for PDO assignment functions.
int ec_soe_request_alloc(ec_soe_request_t *, size_t)
Pre-allocates the data memory.
void ec_soe_request_set_idn(ec_soe_request_t *, uint16_t)
Set IDN.
uint8_t drive_no
Drive number.
int ec_soe_request_copy_data(ec_soe_request_t *, const uint8_t *, size_t)
Copies SoE data from an external source.
unsigned long jiffies_sent
Jiffies, when the upload/download request was sent.
size_t mem_size
Size of SDO data memory.
uint16_t idn
Sercos ID-Number.
int ec_soe_request_copy(ec_soe_request_t *, const ec_soe_request_t *)
Copy another SoE request.
ec_internal_request_state_t state
Request state.
Sercos-over-EtherCAT request.
uint8_t * data
Pointer to SDO data.