Home
last modified time | relevance | path

Searched refs:extMsg (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/firmware/app/test0.app/
Dtest_app0.c52 struct ExtMsg *extMsg; in handle_event() local
60 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()
/device/google/contexthub/firmware/app/chre/chre_test0.app/
Dmain.c85 struct ExtMsg *extMsg = chreHeapAlloc(sizeof(*extMsg)); in nanoappHandleEvent() local
90 extMsg->msg = 0x01; in nanoappHandleEvent()
91 extMsg->val = mCnt; in nanoappHandleEvent()
92 chreSendMessageToHost(extMsg, sizeof(*extMsg), 0, nanoappFreeMessage); in nanoappHandleEvent()
/device/google/contexthub/firmware/app/chre/chre_test1.app/
Dmain.cpp98 auto extMsg = new ExtMsg; in nanoappHandleEvent() local
103 extMsg->msg = 0x01; in nanoappHandleEvent()
104 extMsg->val = mCnt; in nanoappHandleEvent()
105 chreSendMessageToHost(extMsg, sizeof(*extMsg), 0, nanoappFreeMessage); in nanoappHandleEvent()