Logo
UNICENS V2.1.0-3491
User Manual and API Reference
Ucs_Return_t Ucs_Init ( Ucs_Inst_t self,
const Ucs_InitData_t init_ptr,
Ucs_InitResultCb_t  init_result_fptr 
)

UNICENS initialization function.

This function must be called by the application for initializing the complete MOST NetServices library.

Note
Do not call this function within any of the UNICENS callbacks!
Parameters
selfThe instance
init_ptrReference to UNICENS initialization data
init_result_fptrCallback that reports the result of the initialization Possible result values are shown in the table below.
Result Code Description
UCS_INIT_RES_SUCCESS Initialization succeeded
UCS_INIT_RES_ERR_BUF_OVERFLOW No message buffer available
UCS_INIT_RES_ERR_PMS_INIT PMS cannot establish INIC synchronization within 2 seconds
UCS_INIT_RES_ERR_INIC_VERSION INIC device version check failed
UCS_INIT_RES_ERR_DEV_ATT_CFG Device attach failed due to an configuration error
UCS_INIT_RES_ERR_DEV_ATT_PROC Device attach failed due to a system error
UCS_INIT_RES_ERR_NET_CFG Network configuration failed
UCS_INIT_RES_ERR_TIMEOUT Initialization was not successful within 2 seconds
Returns
Possible return values are shown in the table below.
Value Description
UCS_RET_SUCCESS No error.
UCS_RET_ERR_PARAM Parameter init_ptr or one of its attributes is not set correctly.