/device/google/contexthub/firmware/app/test1.app/ |
test_app1.c | 34 static void handle_event(uint32_t evtType, const void* evtData) 37 (void)evtType;
|
/device/google/contexthub/firmware/app/test0.app/ |
test_app0.c | 47 static void handle_event(uint32_t evtType, const void* evtData) 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/inc/ |
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 */);
|
seos.h | 54 void (*handle)(uint32_t evtType, const void* evtData); 129 uint32_t evtType; 160 bool osEventSubscribe(uint32_t tid, uint32_t evtType); /* async */ 161 bool osEventUnsubscribe(uint32_t tid, uint32_t evtType); /* async */ 163 bool osEnqueuePrivateEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t toTid); 164 bool osEnqueuePrivateEvtAsApp(uint32_t evtType, void *evtData, uint32_t fromApp, uint32_t toTid); 166 bool osEnqueueEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF); 167 bool osEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF); 168 bool osEnqueueEvtAsApp(uint32_t evtType, void *evtData, uint32_t fromApp); 261 void osFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP) [all...] |
syscallDo.h | 95 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) 97 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_SUBCRIBE), tid, evtType); 100 static inline bool eOsEventUnsubscribe(uint32_t tid, uint32_t evtType) 102 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_UNSUBCRIBE), tid, evtType); 105 static inline bool eOsEnqueueEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEvent) // tidOfWhoWillFreeThisEvent is likely your TID 107 return syscallDo3P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE), evtType, evtData, tidOfWhoWillFreeThisEvent); 110 static inline bool eOsEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t tidOfWhoWillFreeThisEvent) // tidOfWhoWillFreeThisEvent is likely your TID 112 bool success = eOsEnqueueEvt(evtType, evtData, tidOfWhoWillFreeThisEvent); 118 static inline bool eOsEnqueuePrivateEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEvent, uint32_t toTid) 120 return syscallDo4P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_EVENTQ, SYSCALL_OS_MAIN_EVTQ_ENQUEUE_PRIVATE), evtType, evtData, tidOfWhoWillFreeThisEvent, toTid) [all...] |
cpu.h | 43 void cpuAppHandle(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData);
|
hostIntf.h | 51 uint32_t evtType;
|
nanohubPacket.h | 261 __le32 evtType; 270 __le32 evtType;
|
sensors.h | 278 bool sensorMarshallEvent(uint32_t sensorHandle, uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP);
|
/device/google/contexthub/firmware/src/ |
eventQ.c | 33 uint32_t evtType; 75 q->forceDiscardCbk(t->evtType, t->evtData, t->evtFreeData); 83 bool evtQueueEnqueue(struct EvtQueue* q, uint32_t evtType, void *evtData, TaggedPtr evtFreeData, bool atFront) 97 while (rec && !(rec->evtType & EVENT_TYPE_BIT_DISCARDABLE)) 101 q->forceDiscardCbk(rec->evtType, rec->evtData, rec->evtFreeData); 118 rec->evtType = evtType; 178 *evtTypeP = rec->evtType;
|
seos.c | 118 uint32_t evtType; 373 static inline void osTaskHandle(struct Task *task, uint32_t evtType, const void* evtData) 376 cpuAppHandle(task->app, &task->platInfo, evtType, evtData); 380 static void handleEventFreeing(uint32_t evtType, void *evtData, TaggedPtr evtFreeData) // watch out, this is synchronous 389 struct AppEventFreeData fd = {.evtType = evtType, .evtData = evtData}; 943 static void osInternalEvtHandle(uint32_t evtType, void *evtData) 949 switch (evtType) { 961 if (evtType == EVT_UNSUBSCRIBE_TO_EVT && i != task->subbedEvtCount) 964 else if (evtType == EVT_SUBSCRIBE_TO_EVT && i == task->subbedEvtCount) [all...] |
nanohubCommand.c | 102 static inline bool isSensorEvent(uint32_t evtType) 104 return evtType > EVT_NO_FIRST_SENSOR_EVENT && evtType <= EVT_NO_FIRST_SENSOR_EVENT + SENS_TYPE_LAST_USER; 698 length = packet->length + sizeof(packet->evtType); 702 packet->evtType = htole32(EVT_APP_TO_HOST); 705 packet->evtType = htole32(EVT_RESET_REASON); 709 packet->evtType = htole32(HOST_EVT_DEBUG_LOG); 713 packet->evtType = htole32(0x00000000); 717 packet->evtType = htole32(EVT_NO_FIRST_SENSOR_EVENT + packet->sensType); 725 if ((!totLength || (isSensorEvent(firstPacket->evtType) && isSensorEvent(packet->evtType))) && totLength + length <= sizeof(struct HostIntfDataBuffer)) [all...] |
osApi.c | 38 uint32_t evtType = va_arg(args, uint32_t); 40 *retValP = osEventSubscribe(0, evtType); 46 uint32_t evtType = va_arg(args, uint32_t); 48 *retValP = osEventUnsubscribe(0, evtType); 53 uint32_t evtType = va_arg(args, uint32_t); 57 *retValP = osEnqueueEvtAsApp(evtType, evtData, 0); 62 uint32_t evtType = va_arg(args, uint32_t); 67 *retValP = osEnqueuePrivateEvtAsApp(evtType, evtData, 0, toTid); 79 uint32_t evtType = va_arg(args, uint32_t); 83 osFreeRetainedEvent(evtType, evtData, evtFreeingInfoP) [all...] |
hostIntf.c | [all...] |
sensors.c | 329 static bool sensorCallFuncMarshall(struct Sensor* s, uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP) 332 INVOKE_AS_OWNER_AND_RETURN(LOCAL_APP_OPS(s)->sensorMarshallData, evtType, evtData, evtFreeingInfoP, s->callData); 339 evt->externalMarshallEvt.origEvtType = evtType; 849 bool sensorMarshallEvent(uint32_t sensorHandle, uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP) 856 return sensorCallFuncMarshall(s, evtType, evtData, evtFreeingInfoP);
|
/device/google/contexthub/sensorhal/ |
hubconnection.h | 97 uint32_t evtType; 108 uint32_t evtType; 157 uint32_t evtType;
|
/device/google/contexthub/util/nanoapp_cmd/ |
nanoapp_cmd.c | 57 uint32_t evtType; 356 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; 368 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; 381 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT;
|
/device/google/contexthub/firmware/src/cpu/cortexm4f/ |
appSupport.c | 207 void cpuAppHandle(const struct AppHdr *app, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData) 210 (void)callWithR9((const void*)APP_FLASH_RELOC_BASE(app), app->vec.handle, platInfo->data, evtType, (uintptr_t)evtData); 212 APP_VEC(app)->handle(evtType, evtData);
|
/device/google/contexthub/firmware/src/drivers/tilt_detection/ |
tilt_detection.c | 225 static void tiltDetectionHandleEvent(uint32_t evtType, const void* evtData) 230 switch (evtType) {
|
/device/google/contexthub/firmware/src/drivers/vsync/ |
vsync.c | 191 static void handleEvent(uint32_t evtType, const void* evtData)
|
/device/google/contexthub/firmware/src/drivers/ams_tmd2772/ |
ams_tmd2772.c | 639 static void handle_event(uint32_t evtType, const void* evtData) 641 switch (evtType) { 668 if (evtType == EVT_SENSOR_ALS_TIMER)
|
/device/google/contexthub/firmware/src/drivers/bosch_bmp280/ |
bosch_bmp280.c | 496 static void handleEvent(uint32_t evtType, const void* evtData) 498 switch (evtType) {
|
/device/google/contexthub/firmware/src/drivers/window_orientation/ |
window_orientation.c | 606 static void windowOrientationHandleEvent(uint32_t evtType, const void* evtData) 615 switch (evtType) {
|
/device/google/contexthub/firmware/src/drivers/hall/ |
hall.c | 203 static void handleEvent(uint32_t evtType, const void* evtData)
|
/device/google/contexthub/firmware/src/drivers/hall_twopole/ |
hall_twopole.c | 219 static void handleEvent(uint32_t evtType, const void* evtData)
|