Home
last modified time | relevance | path

Searched refs:mData (Results 1 – 7 of 7) sorted by relevance

/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c192 static struct SensorData mData; variable
225 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback()
236 for (i = 0; i < ARRAY_SIZE(mData.transfers); i++) { in allocXfer()
237 if (!mData.transfers[i].inUse) { in allocXfer()
238 mData.transfers[i].inUse = true; in allocXfer()
239 mData.transfers[i].state = state; in allocXfer()
240 return &mData.transfers[i]; in allocXfer()
266 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback()
271 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid); in proxTimerCallback()
325 if (mData.alsTimerHandle) { in sensorPowerAls()
[all …]
/device/google/contexthub/util/common/
Dring.cpp30 mData((sensors_event_t *)malloc(sizeof(sensors_event_t) * mSize)), in RingBuffer()
36 free(mData); in ~RingBuffer()
37 mData = NULL; in ~RingBuffer()
57 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write()
60 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write()
96 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read()
99 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()
108 : mData((sensors_event_t *)buf), mSize(size/sizeof(sensors_event_t)), in LockfreeBuffer()
110 memset(mData, 0, size); in LockfreeBuffer()
114 memset(mData, 0, mSize*sizeof(sensors_event_t)); in ~LockfreeBuffer()
[all …]
Dring.h40 sensors_event_t *mData; member
53 sensors_event_t *mData;
/device/google/contexthub/firmware/os/algos/
Dfusion.c96 initVec3(&fusion->mData[0], 0.0f, 0.0f, 0.0f); in initFusion()
97 initVec3(&fusion->mData[1], 0.0f, 0.0f, 0.0f); in initFusion()
98 initVec3(&fusion->mData[2], 0.0f, 0.0f, 0.0f); in initFusion()
151 vec3Add(&fusion->mData[0], &unityD); in fusion_init_complete()
165 vec3Add(&fusion->mData[1], &unityD); in fusion_init_complete()
179 vec3Add(&fusion->mData[2], &scaledD); in fusion_init_complete()
192 vec3ScalarMul(&fusion->mData[0], 1.0f / fusion->mCount[0]); in fusion_init_complete()
195 vec3ScalarMul(&fusion->mData[1], 1.0f / fusion->mCount[1]); in fusion_init_complete()
200 struct Vec3 up = fusion->mData[0]; in fusion_init_complete()
204 vec3Cross(&east, &fusion->mData[1], &up); in fusion_init_complete()
/device/google/contexthub/firmware/os/inc/algos/
Dfusion.h51 struct Vec3 mData[3]; member
/device/google/contexthub/contexthubhal/
Dsystem_comms.cpp286 mData.clear(); in setup()
287 mData = std::vector<uint8_t>(msgData, msgData + mLen); in setup()
377 buf.writeRaw(&mData[mPos], chunkSize); in handleTransfer()
394 mData.clear(); in handleFinish()
Dsystem_comms.h204 std::vector<uint8_t> mData; variable