37 #ifndef __EC_FOE_REQUEST_H__ 38 #define __EC_FOE_REQUEST_H__ 40 #include <linux/list.h> 42 #include "../include/ecrt.h" uint32_t issue_timeout
Maximum time in ms, the processing of the request may take.
ec_foe_error_t
FoE error enumeration type.
void ec_foe_request_clear(ec_foe_request_t *)
FoE request destructor.
size_t data_size
Size of FoE data.
Global definitions and macros.
uint8_t file_name[255]
FoE filename.
ec_internal_request_state_t
Generic request state.
int ec_foe_request_alloc(ec_foe_request_t *, size_t)
Pre-allocates the data memory.
uint32_t response_timeout
Maximum time in ms, the transfer is retried, if the slave does not respond.
uint8_t * buffer
Pointer to FoE data.
ec_direction_t
Direction type for PDO assignment functions.
int ec_foe_request_copy_data(ec_foe_request_t *, const uint8_t *, size_t)
Copies FoE data from an external source.
uint32_t error_code
Error code from an FoE Error Request.
struct list_head list
List item.
ec_foe_error_t result
FoE request abort code.
ec_direction_t dir
Direction.
size_t buffer_size
Size of FoE data memory.
unsigned long jiffies_sent
Jiffies, when the upload/download request was sent.
unsigned long jiffies_start
Jiffies, when the request was issued.
int ec_foe_request_timed_out(const ec_foe_request_t *)
Checks, if the timeout was exceeded.
size_t progress
Current position of a BUSY request.
void ec_foe_request_init(ec_foe_request_t *)
FoE request constructor.
uint32_t password
FoE password.
ec_internal_request_state_t state
FoE request state.