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

◆ EC_API_SLV_PDO_enabled()

uint32_t EC_API_SLV_PDO_enabled ( EC_API_SLV_SHandle_t *  pEcSlaveApi_p,
EC_API_SLV_Pdo_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);
uint32_t EC_API_SLV_PDO_enabled(EC_API_SLV_SHandle_t *pEcSlaveApi_p, EC_API_SLV_Pdo_t *pPdo_p, bool *pEnabled_p)
Return if the PDO is assigned to the syncManager.
Definition ecSlvApi_ProcDataStub.c:1795
struct EC_API_SLV_Pdo EC_API_SLV_Pdo_t
TPdo is used to describe the RxPDOs and TxPDOs.
Definition ecSlvApi.h:127
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_disable