EtherCAT Slave  1.06.01

◆ EC_API_SLV_PDO_enabled()

uint32_t EC_API_SLV_PDO_enabled ( EC_API_SLV_SHandle_t pEcSlaveApi_p,
EC_API_SLV_SPdo_t pPdo_p,
bool *  pEnabled_p 
)

Return if the PDO is assigned to the syncManager.

Parameters
[in]pEcSlaveApi_ppointer to API instance.
[in]pPdo_ppointer to PDO.
[out]pEnabled_pPDO is assigned to SyncManager or not.
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// required variables
bool bEnabled;
// the Call
retVal = EC_API_SLV_PDO_enabled(ecSlaveApi, ptPdo, &bEnabled);
See also
EC_API_SLV_PDO_disable
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:135
EC_API_SLV_SPdo_t
struct EC_API_SLV_SPdo EC_API_SLV_SPdo_t
TPdo is used to describe the RxPDOs and TxPDOs.
Definition: ecSlvApi.h:126
EC_API_SLV_PDO_enabled
uint32_t EC_API_SLV_PDO_enabled(EC_API_SLV_SHandle_t *pEcSlaveApi_p, EC_API_SLV_SPdo_t *pPdo_p, bool *pEnabled_p)
Return if the PDO is assigned to the syncManager.
Definition: ecSlvApi_ProcDataStub.c:1399