IgH EtherCAT Master  1.6.2
reg_request.c File Reference

Register request functions. More...

Go to the source code of this file.

Functions

int ec_reg_request_init (ec_reg_request_t *reg, size_t size)
 Register request constructor. More...
 
void ec_reg_request_clear (ec_reg_request_t *reg)
 Register request destructor. More...
 
uint8_t * ecrt_reg_request_data (const ec_reg_request_t *reg)
 Access to the register request's data. More...
 
ec_request_state_t ecrt_reg_request_state (const ec_reg_request_t *reg)
 Get the current state of the register request. More...
 
int ecrt_reg_request_write (ec_reg_request_t *reg, uint16_t address, size_t size)
 Schedule an register write operation. More...
 
int ecrt_reg_request_read (ec_reg_request_t *reg, uint16_t address, size_t size)
 Schedule a register read operation. More...
 

Detailed Description

Register request functions.

Definition in file reg_request.c.

Function Documentation

◆ ec_reg_request_init()

int ec_reg_request_init ( ec_reg_request_t reg,
size_t  size 
)

Register request constructor.

Returns
Zero on success, otherwise a negative error code.
Parameters
regRegister request.
sizeMemory size.

Definition at line 40 of file reg_request.c.

◆ ec_reg_request_clear()

void ec_reg_request_clear ( ec_reg_request_t reg)

Register request destructor.

Parameters
regRegister request.

Definition at line 65 of file reg_request.c.