ethercatfoe.c File Reference

File over EtherCAT (FoE) module. More...

#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include "ethercattype.h"
#include "nicdrv.h"
#include "ethercatbase.h"
#include "ethercatmain.h"
#include "ethercatfoe.h"
Include dependency graph for ethercatfoe.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PACKED
 SDO structure, not to be confused with EcSDOserviceT. More...

Defines

#define EC_MAXFOEDATA   512

Typedefs

typedef struct PACKED ec_FOEt
 FOE structure.

Functions

int ec_FOEread (uint16 slave, char *filename, uint32 password, int *psize, void *p, int timeout)
 FoE read, blocking.
int ec_FOEwrite (uint16 slave, char *filename, uint32 password, int psize, void *p, int timeout)
 FoE write, blocking.

Detailed Description

File over EtherCAT (FoE) module.

SDO read / write and SDO service functions

Definition in file ethercatfoe.c.


Define Documentation

#define EC_MAXFOEDATA   512

Definition at line 60 of file ethercatfoe.c.


Typedef Documentation

typedef struct PACKED ec_FOEt

FOE structure.

Used for Read, Write, Data, Ack and Error mailbox packets.


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

Definition at line 94 of file ethercatfoe.c.

Here is the call graph for this function:

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

Definition at line 209 of file ethercatfoe.c.

Here is the call graph for this function:

Generated by  doxygen 1.6.3