Lines Matching refs:mag
237 const AKSENSOR_DATA* mag,
249 buf[5] = CONVERT_MAG(mag->x); /* Mx */
250 buf[6] = CONVERT_MAG(mag->y); /* My */
251 buf[7] = CONVERT_MAG(mag->z); /* Mz */
252 buf[8] = mag->status; /* Mag status */
272 int16 mag[3];
343 mag[0] = (int)((int16_t)(i2cData[2]<<8)+((int16_t)i2cData[1]));
344 mag[1] = (int)((int16_t)(i2cData[4]<<8)+((int16_t)i2cData[3]));
345 mag[2] = (int)((int16_t)(i2cData[6]<<8)+((int16_t)i2cData[5]));
354 if (AKFS_Get_MAGNETIC_FIELD(mag, mstat, &tmpx, &tmpy, &tmpz, &tmp_accuracy) == AKM_SUCCESS) {