Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/drivers/ams_tmd2772/
Dams_tmd2772.c173 static struct SensorData mData; variable
201 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); in i2cCallback()
208 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); in alsTimerCallback()
213 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid); in proxTimerCallback()
249 mData.txrxBuf.bytes[0] = AMS_TMD2772_REG_ENABLE; in setMode()
250 mData.txrxBuf.bytes[1] = POWER_ON_BIT | WAIT_ENABLE_BIT | in setMode()
252 mData.txrxBuf.bytes[2] = AMS_TMD2772_ATIME_SETTING; in setMode()
253 mData.txrxBuf.bytes[3] = AMS_TMD2772_PTIME_SETTING; in setMode()
254mData.txrxBuf.bytes[4] = alsOn ? AMS_TMD2772_WTIME_SETTING_ALS_ON : AMS_TMD2772_WTIME_SETTING_ALS_… in setMode()
255 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mData.txrxBuf.bytes, 5, in setMode()
[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()
Dring.h40 sensors_event_t *mData; member
/device/google/contexthub/firmware/src/algos/
Dfusion.c95 initVec3(&fusion->mData[0], 0.0f, 0.0f, 0.0f); in initFusion()
96 initVec3(&fusion->mData[1], 0.0f, 0.0f, 0.0f); in initFusion()
97 initVec3(&fusion->mData[2], 0.0f, 0.0f, 0.0f); in initFusion()
146 vec3Add(&fusion->mData[0], &unityD); in fusion_init_complete()
160 vec3Add(&fusion->mData[1], &unityD); in fusion_init_complete()
174 vec3Add(&fusion->mData[2], &scaledD); in fusion_init_complete()
187 vec3ScalarMul(&fusion->mData[0], 1.0f / fusion->mCount[0]); in fusion_init_complete()
190 vec3ScalarMul(&fusion->mData[1], 1.0f / fusion->mCount[1]); in fusion_init_complete()
195 struct Vec3 up = fusion->mData[0]; in fusion_init_complete()
199 vec3Cross(&east, &fusion->mData[1], &up); in fusion_init_complete()
/device/google/contexthub/firmware/inc/algos/
Dfusion.h50 struct Vec3 mData[3]; member
/device/google/contexthub/contexthubhal/
Dsystem_comms.cpp286 mData.clear(); in setup()
287 mData = std::vector<uint8_t>(p, p + mLen); in setup()
363 buf.writeRaw(&mData[mPos], chunkSize); in handleTransfer()
380 mData.clear(); in handleFinish()
Dsystem_comms.h200 std::vector<uint8_t> mData; variable