EtherCAT SubDevice
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_EoE_sendFrame()

uint32_t EC_API_SLV_EoE_sendFrame ( EC_API_SLV_SHandle_t pHandle,
uint16_t  length,
uint8_t *  pData 
)

This is the function to send EoE frames.

Use this function to send Ethernet frames over the EtherCAT network

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]lengthThe data length
[in]pDataThe pointer to the data
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// required variables
EC_API_EError_t retVal = 0;
uint8_t data[1512] = {/ * IP Frame * /
// the Call
retVal = uint32_t EC_API_SLV_EoE_sendFrame(ecSlaveApi, sizeof(data), data);
uint32_t EC_API_SLV_EoE_sendFrame(EC_API_SLV_SHandle_t *pHandle, uint16_t length, uint8_t *pData)
This is the function to send EoE frames.
Definition ecSlvApi_EoE.c:134
enum EC_API_EError EC_API_EError_t