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

◆ GENERIC_DEVICE_CFG_applyTimeSync()

static uint32_t GENERIC_DEVICE_CFG_applyTimeSync ( EI_API_ADP_T *  pAdapter)
static

Applies the Time Sync object attributes on the stack.

Called by GENERIC_DEVICE_CFG_applyTimeSync 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_applyTimeSync(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_applyTimeSync(EI_API_ADP_T *pAdapter)
Applies the Time Sync object attributes on the stack.
Definition generic_device_cfg.c:754
See also
GENERIC_DEVICE_CFG_apply