Searched refs:extMsg (Results 1 – 3 of 3) sorted by relevance
52 struct ExtMsg *extMsg; in handle_event() local60 extMsg = eOsHeapAlloc(sizeof(*extMsg)); in handle_event()61 extMsg->hdr.appId = APP_ID_MAKE(NANOHUB_VENDOR_GOOGLE, 0x548000); in handle_event()62 extMsg->hdr.dataLen = 5; in handle_event()63 extMsg->msg = 0x01; in handle_event()64 extMsg->val = *(int *)te->data; in handle_event()65 if (!(eOsEnqueueEvt(EVT_APP_TO_HOST, extMsg, mMyTid))) in handle_event()66 eOsHeapFree(extMsg); in handle_event()
85 struct ExtMsg *extMsg = chreHeapAlloc(sizeof(*extMsg)); in nanoappHandleEvent() local90 extMsg->msg = 0x01; in nanoappHandleEvent()91 extMsg->val = mCnt; in nanoappHandleEvent()92 chreSendMessageToHost(extMsg, sizeof(*extMsg), 0, nanoappFreeMessage); in nanoappHandleEvent()
98 auto extMsg = new ExtMsg; in nanoappHandleEvent() local103 extMsg->msg = 0x01; in nanoappHandleEvent()104 extMsg->val = mCnt; in nanoappHandleEvent()105 chreSendMessageToHost(extMsg, sizeof(*extMsg), 0, nanoappFreeMessage); in nanoappHandleEvent()