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

◆ DIO_DEVICE_CFG_apply()

void DIO_DEVICE_CFG_apply ( EI_API_ADP_T *  pAdapter)

Applies the discrete io 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/discrete_io_device/discrete_io_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;
}
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
uint32_t DEVICE_PROFILE_register(DEVICE_PROFILE_INTF_Interface_t *pIntf)
Registers discrete IO device profile interface functions.
Definition discrete_io_device.c:251
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 DIO_DEVICE_CFG_applyIdentity DIO_DEVICE_CFG_applyTimeSync