Home
last modified time | relevance | path

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

/hardware/bsp/intel/peripheral/libupm/src/mma7455/
Dmma7455.cxx75 accelData xyz; in calibrate() local
76 xyz.value.x = xyz.value.y = xyz.value.z = 0; in calibrate()
79 error = readData (&xyz.value.x, &xyz.value.y, &xyz.value.z); in calibrate()
84 xyz.value.x += 2 * -xyz.value.x; in calibrate()
85 xyz.value.y += 2 * -xyz.value.y; in calibrate()
86 xyz.value.z += 2 * -(xyz.value.z - 64); in calibrate()
88 error = i2cWriteReg (MMA7455_XOFFL, (unsigned char *) &xyz, 0x6); in calibrate()
100 accelData xyz; in readData() local
113 nBytes = i2cReadReg (MMA7455_XOUTL, (unsigned char *) &xyz, 0x6); in readData()
119 if (xyz.reg.x_msb & 0x02) { in readData()
[all …]