PROFINET Device4.2.0
 
Loading...
Searching...
No Matches

◆ PN_API_IOD_arGetType()

PN_API_IOD_ArType_t PN_API_IOD_arGetType ( PN_API_IOD_Handle_t *const  pnHandle,
uint16_t  arNum 
)

Retrieves an application relation's type.

Application relation type can be "single", "supervisor", "single RTC3" or "single system redundancy".

Parameters
[in]pnHandleProfinet API Handle.
[in]arNumAR number.
Returns
AR type as PN_API_IOD_ArType_t.
Return values
PN_API_IOD_ArTypeSingleSingle AR.
PN_API_IOD_ArTypeSupervisorSupervisor AR.
PN_API_IOD_ArTypeSingleRtc3Single AR that uses RT_Class_3.
PN_API_IOD_ArTypeSingleSysRedundancySystem redundancy AR.
Example
#include "pn_api_iod_communication.h"
#include "pn_api_iod_startup.h"
PN_API_IOD_Handle_t* pnHandle = NULL;
uint32_t arNum = 1;
pnHandle = PN_API_IOD_new();
//Prepare and call PN_API_IOD_startup()
...
arType = PN_API_IOD_arGetType(pnHandle, arNum);
PN_API_IOD_ArType_t PN_API_IOD_arGetType(PN_API_IOD_Handle_t *const pnHandle, uint16_t arNum)
Retrieves an application relation's type.
PN_API_IOD_Handle_t * PN_API_IOD_new(void)
Creates Profinet API handle.
PN_API_IOD_ArType_t
AR type.
Definition pn_api_iod_types.h:244
struct PN_API_IOD_Handle PN_API_IOD_Handle_t
API handle instance which holds IO device's info.
Definition pn_api_iod_types.h:61