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

◆ DEVICE_PROFILE_register()

uint32_t DEVICE_PROFILE_register ( DEVICE_PROFILE_INTF_Interface_t pIntf)

Registers generic device profile interface functions.

Registers discrete IO device profile interface functions.

Called by DEVICE_PROFILE_INTF_init function of device profile interface. Function needs to be defined in each profile.

Remarks
In time of build process only one device profile can be active. Rest profiles need to be excluded from the build.
Parameters
[in]pIntfPointer to device profile interface which needs to be initialized.
Returns
value as bool.
Return values
trueSuccess.
falseInvalid input parameter defined as NULL.
Example
#include "device_profiles/generic_device/generic_device_cfg.h"
uint32_t DEVICE_PROFILE_INTF_init (void)
{
return DEVICE_PROFILE_register(&EI_APP_DEVICE_PROFILE_intf_s);
}
uint32_t DEVICE_PROFILE_register(DEVICE_PROFILE_INTF_Interface_t *pIntf)
Registers discrete IO device profile interface functions.
Definition discrete_io_device.c:251
See also
DEVICE_PROFILE_register DEVICE_PROFILE_INTF_cfgInit