Functions
ethercatfoe.h File Reference

Headerfile for ethercatfoe.c. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int ecx_FOEdefinehook (ecx_contextt *context, void *hook)
 
int ecx_FOEread (ecx_contextt *context, uint16 slave, char *filename, uint32 password, int *psize, void *p, int timeout)
 
int ecx_FOEwrite (ecx_contextt *context, uint16 slave, char *filename, uint32 password, int psize, void *p, int timeout)
 

Detailed Description

Headerfile for ethercatfoe.c.

Definition in file ethercatfoe.h.

Function Documentation

int ecx_FOEdefinehook ( ecx_contextt context,
void *  hook 
)

FoE progress hook.

Parameters
[in]context= context struct
[in]hook= Pointer to hook function.
Returns
1

Definition at line 54 of file ethercatfoe.c.

int ecx_FOEread ( ecx_contextt context,
uint16  slave,
char *  filename,
uint32  password,
int *  psize,
void *  p,
int  timeout 
)

FoE read, blocking.

Parameters
[in]context= context struct
[in]slave= Slave number.
[in]filename= Filename of file to read.
[in]password= password.
[in,out]psize= Size in bytes of file buffer, returns bytes read from file.
[out]p= Pointer to file buffer
[in]timeout= Timeout per mailbox cycle in us, standard is EC_TIMEOUTRXM
Returns
Workcounter from last slave response

Definition at line 71 of file ethercatfoe.c.

int ecx_FOEwrite ( ecx_contextt context,
uint16  slave,
char *  filename,
uint32  password,
int  psize,
void *  p,
int  timeout 
)

FoE write, blocking.

Parameters
[in]context= context struct
[in]slave= Slave number.
[in]filename= Filename of file to write.
[in]password= password.
[in]psize= Size in bytes of file buffer.
[out]p= Pointer to file buffer
[in]timeout= Timeout per mailbox cycle in us, standard is EC_TIMEOUTRXM
Returns
Workcounter from last slave response

Definition at line 199 of file ethercatfoe.c.



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 27 2020 03:48:21