EtherCAT Slave
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_PDO_getLength()

uint16_t EC_API_SLV_PDO_getLength ( EC_API_SLV_Pdo_t *  pPdo_p)

This function returns the Byte size of a PDO.

Parameters
[in]pPdo_pThe pointer to the PDO instance.
Returns
uint16_t Returns the PDO length in bytes.
Example
#include <ecSlvApi.h>
// required variables
uint16_t length = 0;
EC_API_SLV_SHandle_t* S_ecSlvApiHdl;
TPdo* ptRxPdo1600;
// the Call
length = EC_API_SLV_PDO_getLength(S_ecSlvApiHdl, ptRxPdo1600);
uint16_t EC_API_SLV_PDO_getLength(EC_API_SLV_Pdo_t *pPdo_p)
This function returns the Byte size of a PDO.
Definition ecSlvApi_ProcDataStub.c:218
struct EC_API_SLV_Handle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition ecSlvApi.h:136
See also
EC_API_SLV_PDO_getOffset