voidcbAppColdStart(bool_t bAfterAhiInit) {if (!bAfterAhiInit) { // before AHI init, very first of code.// Register modulesToCoNet_REG_MOD_ALL(); } else {// TWELITE NET configurationsToCoNet_AppContext.u32AppId =0x12345678;sToCoNet_AppContext.u8Channel =18;sToCoNet_AppContext.bRxOnIdle =TRUE;// Register user PRSEV.ToCoNet_Event_Register_State_Machine(vProcessEvCore); }}
cbToCoNet_vNwkEvent()
親機では E_EVENT_TOCONET_NWK_START メッセージを処理します。
voidcbToCoNet_vNwkEvent(teEvent eEvent, uint32 u32arg) {switch (eEvent) {case E_EVENT_TOCONET_NWK_START:// send this event to the local event machine.ToCoNet_Event_Process(eEvent, u32arg, vProcessEvCore);break;default:break; }}