EtherNet/IP™ Adapter3.09.00
 
Loading...
Searching...
No Matches

◆ GENERIC_DEVICE_CFG_applyIdentity()

static uint32_t GENERIC_DEVICE_CFG_applyIdentity ( EI_API_ADP_T *  pAdapter)
static

Applies the identity object attributes on the stack.

Called by GENERIC_DEVICE_CFG_apply interface function.

Parameters
[in]pAdapterPointer to adapter object.
Example
#include "device_profiles/generic_device/generic_device_cfg.h"
void GENERIC_DEVICE_CFG_apply (EI_API_ADP_T *pAdapter)
{
uint32_t errCode = EI_API_ADP_eERR_GENERAL;
if (NULL == pAdapter)
{
goto laError;
}
errCode = GENERIC_DEVICE_CFG_applyIdentity(pAdapter);
...
laError:
if (EI_API_ADP_eERR_OK != errCode)
{
OSAL_error (__func__, __LINE__, OSAL_STACK_INIT_ERROR, true, 0);
}
return;
}
@ EI_API_ADP_eERR_GENERAL
Definition EI_API_ADP_define.h:47
@ EI_API_ADP_eERR_OK
Definition EI_API_ADP_define.h:46
void GENERIC_DEVICE_CFG_apply(EI_API_ADP_T *pAdapter)
Applies the generic device profile configuration data on stack.
Definition generic_device_cfg.c:208
static uint32_t GENERIC_DEVICE_CFG_applyIdentity(EI_API_ADP_T *pAdapter)
Applies the identity object attributes on the stack.
Definition generic_device_cfg.c:655
See also
GENERIC_DEVICE_CFG_apply