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

◆ DIO_DEVICE_CFG_applyTimeSync()

static uint32_t DIO_DEVICE_CFG_applyTimeSync ( EI_API_ADP_T *  pAdapter)
static

Applies the Time Sync object attributes on the stack.

Called by DIO_DEVICE_CFG_applyTimeSync interface function.

Parameters
[in]pAdapterPointer to adapter object.
Example
#include "device_profiles/discrete_io_device/discrete_io_device_cfg.h"
void DIO_DEVICE_CFG_apply (EI_API_ADP_T *pAdapter)
{
uint32_t errCode = EI_API_ADP_eERR_GENERAL;
if (NULL == pAdapter)
{
goto laError;
}
...
errCode = DIO_DEVICE_CFG_applyTimeSync(pAdapter);
laError:
if (EI_API_ADP_eERR_OK != errCode)
{
OSAL_error (__func__, __LINE__, OSAL_STACK_INIT_ERROR, true, 0);
}
return;
}
static uint32_t DIO_DEVICE_CFG_applyTimeSync(EI_API_ADP_T *pAdapter)
Applies the Time Sync object attributes on the stack.
Definition discrete_io_device_cfg.c:746
void DIO_DEVICE_CFG_apply(EI_API_ADP_T *pAdapter)
Applies the discrete io device profile configuration data on stack.
Definition discrete_io_device_cfg.c:200
@ EI_API_ADP_eERR_GENERAL
Definition EI_API_ADP_define.h:47
@ EI_API_ADP_eERR_OK
Definition EI_API_ADP_define.h:46
See also
DIO_DEVICE_CFG_apply