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

◆ GENERIC_DEVICE_CFG_apply()

void GENERIC_DEVICE_CFG_apply ( EI_API_ADP_T *  pAdapter)

Applies the generic device profile configuration data on stack.

Called by DEVICE_PROFILE_INTF_cfgApply function of device profile interface. Function needs to be registered by DEVICE_PROFILE_register call.

Remarks
Any error on adapter interface function can lead to hard fault and to call of OSAL error handler which leads to the stop of execution.
Parameters
[in]pAdapterPointer to adapter object.
Example
#include "device_profiles/generic_device/generic_device_cfg.h"
{
uint32_t error = DEVICE_PROFILE_INTF_ERR_General;
if (NULL == pIntf)
{
error = DEVICE_PROFILE_INTF_ERR_PtrInvalid;
goto laError;
}
...
...
error = DEVICE_PROFILE_INTF_ERR_OK;
laError:
return error;
}
uint32_t DEVICE_PROFILE_register(DEVICE_PROFILE_INTF_Interface_t *pIntf)
Registers discrete IO device profile interface functions.
Definition discrete_io_device.c:251
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
struct DEVICE_PROFILE_INTF_Interface::@7 cfg
void(* apply)(EI_API_ADP_T *pAdapter)
Definition device_profile_intf_intern.h:54
Definition device_profile_intf_intern.h:46
See also
DEVICE_PROFILE_register DEVICE_PROFILE_INTF_cfgApply GENERIC_DEVICE_CFG_applyIdentity GENERIC_DEVICE_CFG_applyTimeSync