/device/google/contexthub/firmware/app/test1.app/ |
H A D | test_app1.c | 34 static void handle_event(uint32_t evtType, const void* evtData) argument 37 (void)evtType;
|
/device/google/contexthub/firmware/os/inc/ |
H A D | eventQ.h | 31 typedef void (*EvtQueueForciblyDiscardEvtCbkF)(uint32_t evtType, void *evtData, TaggedPtr evtFreeData); 37 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, TaggedPtr evtFreeData, bool atFront /* do not set this unless you know the repercussions. read: never set this in new code */); 39 void evtQueueRemoveAllMatching(struct EvtQueue* q, bool (*match)(uint32_t evtType, const void *data, void *context), void *context);
|
H A D | seos.h | 54 void (*handle)(uint32_t evtType, const void* evtData); 125 uint32_t evtType; member in struct:AppEventFreeData 162 bool osEventSubscribe(uint32_t tid, uint32_t evtType); /* async */ 163 bool osEventUnsubscribe(uint32_t tid, uint32_t evtType); /* async */ 167 bool osEnqueuePrivateEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t toTid); 168 bool osEnqueuePrivateEvtAsApp(uint32_t evtType, void *evtData, uint32_t toTid); 169 bool osEnqueuePrivateEvtNew(uint16_t evtType, void *evtData, 173 bool osEnqueueEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF); 174 bool osEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF); 175 bool osEnqueueEvtAsApp(uint32_t evtType, voi [all...] |
H A D | syscallDo.h | 42 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) argument 44 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_SUBCRIBE), tid, evtType); 47 static inline bool eOsEventUnsubscribe(uint32_t tid, uint32_t evtType) argument 49 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_UNSUBCRIBE), tid, evtType); 52 static inline bool eOsEnqueueEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEvent) // tidOfWhoWillFreeThisEvent is likely your TID argument 54 return syscallDo3P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE), evtType, evtData, tidOfWhoWillFreeThisEvent); 57 static inline bool eOsEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t tidOfWhoWillFreeThisEvent) // tidOfWhoWillFreeThisEvent is likely your TID argument 59 bool success = eOsEnqueueEvt(evtType, evtData, tidOfWhoWillFreeThisEvent); 65 static inline bool eOsEnqueuePrivateEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEvent, uint32_t toTid) argument 67 return syscallDo4P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE_PRIVATE), evtType, evtDat 75 eOsFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP) argument [all...] |
H A D | cpu.h | 43 void cpuAppHandle(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData);
|
H A D | seos_priv.h | 104 uint32_t evtType; member in struct:SeosInternalSlabData::__anon292 122 void osChreTaskHandle(struct Task *task, uint32_t evtType, const void *evtData);
|
H A D | chreApi.h | 117 void osChreFreeEvent(uint32_t tid, void (*free_info)(uint16_t, void *), uint32_t evtType, void * evtData);
|
H A D | hostIntf.h | 52 uint32_t evtType; member in union:HostIntfDataBuffer::__anon273
|
/device/google/contexthub/firmware/app/test0.app/ |
H A D | test_app0.c | 47 static void handle_event(uint32_t evtType, const void* evtData) argument 54 if (evtType == EVT_APP_START) { 57 } else if (evtType == EVT_APP_TIMER) { 69 } else if (evtType == EVT_APP_FREE_EVT_DATA) { 71 if (aefd->evtType == EVT_APP_TO_HOST)
|
/device/google/contexthub/firmware/os/core/ |
H A D | eventQ.c | 40 uint32_t evtType; member in struct:EvtRecord 92 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); 100 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, argument 118 if (!(rec->evtType & EVENT_TYPE_BIT_DISCARDABLE)) 120 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); 134 rec->evtType = evtType; 159 bool (*match)(uint32_t evtType, const void *data, void *context), 168 if (match(rec->evtType, rec->evtData, context)) { 169 q->forceDiscardCbk(rec->evtType, re 158 evtQueueRemoveAllMatching(struct EvtQueue* q, bool (*match)(uint32_t evtType, const void *data, void *context), void *context) argument [all...] |
H A D | seos.c | 338 static inline void osTaskHandle(struct Task *task, uint16_t evtType, uint16_t fromTid, const void* evtData) argument 342 EVENT_WITH_ORIGIN(evtType, osTaskIsChre(task) ? fromTid : 0), 369 uint32_t evtType = act->privateEvt.evtType; local 375 osLog(LOG_ERROR, "ERROR: Failed to find task to free event: evtType=%08" PRIX32 "\n", evtType); 380 if (osTaskIsChre(srcTask) && (evtType >> 16) == EVT_PRIVATE_CLASS_CHRE) { 383 evtType & EVT_MASK, evtData); 394 struct AppEventFreeData fd = {.evtType = evtType, 401 handleEventFreeing(uint32_t evtType, void *evtData, TaggedPtr evtFreeData) argument 1039 osInternalEvtHandle(uint32_t evtType, void *evtData) argument 1149 osFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP) argument 1177 uint32_t evtType, j; local 1267 osEventSubscribe(uint32_t tid, uint32_t evtType) argument 1273 osEventUnsubscribe(uint32_t tid, uint32_t evtType) argument 1306 uint32_t evtType = EVENT_WITH_ORIGIN(evt, osGetCurrentTid()); local 1319 osRemovePendingEvents(bool (match)uint32_t evtType, const void *evtData, void *context), void *context) argument 1324 osEnqueueEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF) argument 1329 osEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF) argument 1339 osEnqueueEvtAsApp(uint32_t evtType, void *evtData, bool freeData) argument 1364 osEnqueuePrivateEvtEx(uint32_t evtType, void *evtData, TaggedPtr evtFreeInfo, uint32_t toTid) argument 1389 osEnqueuePrivateEvtNew(uint16_t evtType, void *evtData, void (*evtFreeCallback)(uint16_t evtType, void *evtData), uint32_t toTid) argument 1395 osChreFreeEvent(osGetCurrentTid(), evtFreeCallback, evtType, evtData); local 1401 osEnqueuePrivateEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t toTid) argument 1406 osEnqueuePrivateEvtAsApp(uint32_t evtType, void *evtData, uint32_t toTid) argument [all...] |
H A D | timer.c | 226 static bool timerEventMatch(uint32_t evtType, const void *evtData, void *context) argument 232 if (evtType != EVT_PRIVATE_EVT || !da || da->privateEvt.evtType != EVT_APP_TIMER || !da->privateEvt.evtData)
|
H A D | osApi.c | 39 uint32_t evtType = va_arg(args, uint32_t); local 41 *retValP = osEventSubscribe(0, evtType); 47 uint32_t evtType = va_arg(args, uint32_t); local 49 *retValP = osEventUnsubscribe(0, evtType); 54 uint32_t evtType = va_arg(args, uint32_t); local 58 *retValP = osEnqueueEvtAsApp(evtType, evtData, tid ? true : false); 63 uint32_t evtType = va_arg(args, uint32_t); local 68 *retValP = osEnqueuePrivateEvtAsApp(evtType, evtData, toTid); 80 uint32_t evtType = va_arg(args, uint32_t); local 84 osFreeRetainedEvent(evtType, evtDat [all...] |
H A D | nanohub_chre.c | 179 void osChreFreeEvent(uint32_t tid, chreEventCompleteFunction *cbFreeEvt, uint32_t evtType, void * evtData) argument 184 osTaskInvokeEventFreeCallback(chreTask, cbFreeEvt, evtType, evtData); 188 static bool osChreSendEvent(uint16_t evtType, void *evtData, argument 196 * therefore, we have to enforce the evtType >= CHRE_EVENT_FIRST_USER_VALUE. 198 if (evtType < CHRE_EVENT_FIRST_USER_VALUE) { 199 osChreFreeEvent(osGetCurrentTid(), evtFreeCallback, evtType, evtData); local 202 return osEnqueuePrivateEvtNew(evtType, evtData, evtFreeCallback, toTid); 481 uint16_t evtType = va_arg(args, uint32_t); // stored as 32-bit local 485 *retValP = osChreSendEvent(evtType, evtData, freeCallback, toTid);
|
H A D | nanohubCommand.c | 108 static inline bool isSensorEvent(uint32_t evtType) argument 110 return evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType <= EVT_NO_FIRST_SENSOR_EVENT + SENS_TYPE_LAST_USER; 521 uint32_t evtType; member in struct:FirmwareWriteCookie 580 if (resp->evtType == EVT_APP_TO_HOST) { 745 length = packet->length + sizeof(packet->evtType); 749 packet->evtType = htole32(EVT_APP_TO_HOST); 752 packet->evtType = htole32(EVT_RESET_REASON); 755 packet->evtType = htole32(EVT_APP_TO_SENSOR_HAL_DATA); 759 packet->evtType [all...] |
H A D | hostIntf.c | 1153 uint8_t size = sizeof(buffer->evtType) + sizeof(buffer->referenceTime) + sizeof(struct SensorFirstSample); 1482 static void onEvtSensorDataActive(struct ActiveSensor *sensor, uint32_t evtType, const void* evtData) argument 1518 osEventUnsubscribe(mHostIntfTid, evtType); 1524 static void onEvtSensorDataInactive(struct ActiveSensor *sensor, uint32_t evtType, const void* evtData) argument 1540 static void onEvtSensorData(uint32_t evtType, const void* evtData) argument 1542 if (evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType < EVT_NO_SENSOR_CONFIG_EVENT) { 1543 struct ActiveSensor *sensor = getActiveSensorByType(evtType & 0xFF); 1546 onEvtSensorDataActive(sensor, evtType, evtData); 1548 onEvtSensorDataInactive(sensor, evtType, evtDat 1553 hostIntfHandleEvent(uint32_t evtType, const void* evtData) argument [all...] |
/device/google/contexthub/firmware/app/chre/chre_test0.app/ |
H A D | main.c | 73 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) argument 75 switch (evtType) {
|
/device/google/contexthub/firmware/app/chre/chre_test1.app/ |
H A D | main.cpp | 84 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) argument 88 switch (evtType) {
|
/device/google/contexthub/firmware/app/chre/chre_test2.app/ |
H A D | main.cpp | 62 void nanoappHandleEvent(uint32_t srcTid, uint16_t evtType, const void* evtData) argument 64 switch (evtType) {
|
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
H A D | appSupport.c | 208 void cpuAppHandle(const struct AppHdr *app, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData) argument 211 (void)callWithR9((const void*)APP_FLASH_RELOC_BASE(app), app->vec.handle, platInfo->data, evtType, (uintptr_t)evtData); 213 APP_VEC(app)->handle(evtType, evtData);
|
/device/google/contexthub/sensorhal/ |
H A D | hubconnection.h | 137 uint32_t evtType; member in struct:android::HubConnection::ConfigCmd 148 uint32_t evtType; member in struct:android::HubConnection::MsgCmd 216 uint32_t evtType; member in struct:android::HubConnection::nAxisEvent
|
/device/google/contexthub/firmware/os/drivers/leds/ |
H A D | leds_gpio.c | 147 static void handleEvent(uint32_t evtType, const void *evtData) argument 149 switch (evtType) {
|
H A D | leds_lp3943.c | 308 static void handleEvent(uint32_t evtType, const void* evtData) argument 310 switch (evtType) {
|
/device/google/contexthub/firmware/os/drivers/tilt_detection/ |
H A D | tilt_detection.c | 225 static void tiltDetectionHandleEvent(uint32_t evtType, const void* evtData) argument 230 switch (evtType) {
|
/device/google/contexthub/util/nanoapp_cmd/ |
H A D | nanoapp_cmd.c | 68 uint32_t evtType; member in struct:ConfigCmd 493 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; 501 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; 534 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; 547 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT;
|