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

◆ DIO_DEVICE_CFG_init()

bool DIO_DEVICE_CFG_init ( EI_API_ADP_T *  pAdapter)

Makes full initialization of factory reset values.

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

Parameters
[in]pAdapterPointer to adapter object.
Returns
value as bool.
Return values
trueSuccess.
falseInvalid input parameter defined as NULL.
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;
}
bool DIO_DEVICE_CFG_init(EI_API_ADP_T *pAdapter)
Makes full initialization of factory reset values.
Definition discrete_io_device_cfg.c:121
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
bool(* init)(EI_API_ADP_T *pAdapter, EI_API_CIP_NODE_T *pCipNode)
Definition device_profile_intf_intern.h:48
Definition device_profile_intf_intern.h:46
See also
DEVICE_PROFILE_register DEVICE_PROFILE_INTF_cfgInit