EtherCAT SubDevice2.03.00
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_PDO_getPdoType()

uint32_t EC_API_SLV_PDO_getPdoType ( EC_API_SLV_SHandle_t *  pHandle,
EC_API_SLV_Pdo_t *  pPdo,
uint8_t *  pPdoType 
)

Get the PDO type.

Parameters
[in]pHandleThe pointer to the EtherCAT API instance.
[in]pPdopointer to PDO instance.
[out]pPdoTypepointer to memory to where the PDO type is copied. 'True' if PDO is a TxPDO, 'False' if PDO is a RxPDO.
Returns
uint32_t Returns the API error code.
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
uint8_t* pdoType = 0;
// the Call
retVal = EC_API_SLV_PDO_getPdoType(ptEcSlvApi, pPdo, &pdoType);
uint32_t EC_API_SLV_PDO_getPdoType(EC_API_SLV_SHandle_t *pHandle, EC_API_SLV_Pdo_t *pPdo, uint8_t *pPdoType)
Get the PDO type.
Definition ecSlvApi_pdo.c:1351