EtherCAT Slave
1.04.03
◆
EC_API_SLV_PDO_getLength()
uint16_t EC_API_SLV_PDO_getLength
(
EC_API_SLV_SPdo_t
*
pPdo_p
)
This function returns the Byte size of a PDO.
Parameters
[in]
pPdo_p
The 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);
See also
EC_API_SLV_PDO_getOffset
EC_API_SLV_SHandle_t
struct EC_API_SLV_SHandle EC_API_SLV_SHandle_t
EC_API_SLV_SHandle_t describes the EtherCAT Slave API.
Definition:
ecSlvApi.h:134
EC_API_SLV_PDO_getLength
uint16_t EC_API_SLV_PDO_getLength(EC_API_SLV_SPdo_t *pPdo_p)
This function returns the Byte size of a PDO.
Definition:
ecSlvApi_ProcDataStub.c:226
PDO Configuration
generated by
1.8.18