29 #ifndef __EC_FOE_REQUEST_H__ 30 #define __EC_FOE_REQUEST_H__ 32 #include <linux/list.h> 34 #include "../include/ecrt.h" 43 struct list_head list;
ec_direction_t dir
Direction.
void ec_foe_request_read(ec_foe_request_t *)
Prepares a read request (slave to master).
void ec_foe_request_clear(ec_foe_request_t *)
FoE request destructor.
unsigned long jiffies_sent
Jiffies, when the upload/download request was sent.
uint32_t result
FoE request abort code.
uint32_t response_timeout
Maximum time in ms, the transfer is retried, if the slave does not respond.
Global definitions and macros.
ec_internal_request_state_t
Generic request state.
void ec_foe_request_init(ec_foe_request_t *, uint8_t *file_name)
FoE request constructor.
size_t buffer_size
Size of FoE data memory.
int ec_foe_request_alloc(ec_foe_request_t *, size_t)
Pre-allocates the data memory.
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.
size_t data_size
Size of FoE data.
uint8_t * file_name
Pointer to the filename.
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.
uint32_t error_code
Error code from an FoE Error Request.
ec_internal_request_state_t state
FoE request state.
void ec_foe_request_write(ec_foe_request_t *)
Prepares a write request (master to slave).
uint32_t issue_timeout
Maximum time in ms, the processing of the request may take.