ethercatfoe.h File Reference
Headerfile for ethercatfoe.c.
More...
Functions |
int | ec_FOEread (uint16 slave, char *filename, uint32 password, int *psize, void *p, int timeout) |
int | ec_FOEwrite (uint16 slave, char *filename, uint32 password, int psize, void *p, int timeout) |
Detailed Description
Headerfile for ethercatfoe.c.
Function Documentation
int ec_FOEread |
( |
uint16 |
slave, |
|
|
char * |
filename, |
|
|
uint32 |
password, |
|
|
int * |
psize, |
|
|
void * |
p, |
|
|
int |
timeout | |
|
) |
| | |
FoE read, blocking.
- Parameters:
-
[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 in us, standard is EC_TIMEOUTRXM |
- Returns:
- Workcounter from last slave response
int ec_FOEwrite |
( |
uint16 |
slave, |
|
|
char * |
filename, |
|
|
uint32 |
password, |
|
|
int |
psize, |
|
|
void * |
p, |
|
|
int |
timeout | |
|
) |
| | |
FoE write, blocking.
- Parameters:
-
[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 in us, standard is EC_TIMEOUTRXM |
- Returns:
- Workcounter from last slave response