Searched refs:mag (Results 1 - 10 of 10) sorted by relevance

/hardware/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/
H A DAKFS_AK8975.c25 const int16 mag[3],
39 hdata[0].u.x = mag[0] * (((asa->u.x)/256.0f) + 0.5f);
40 hdata[0].u.y = mag[1] * (((asa->u.y)/256.0f) + 0.5f);
41 hdata[0].u.z = mag[2] * (((asa->u.z)/256.0f) + 0.5f);
24 AKFS_DecompAK8975( const int16 mag[3], const int16 status, const uint8vec* asa, const int16 nhdata, AKFVEC hdata[] ) argument
H A DAKFS_AK8975.h42 const int16 mag[3],
/hardware/akm/AK8975_FS/akmdfs/
H A DAKFS_Measure.c237 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]; local
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, msta
234 AKFS_OutputResult( const uint16 flag, const AKSENSOR_DATA* acc, const AKSENSOR_DATA* mag, const AKSENSOR_DATA* ori ) argument
[all...]
H A DAKFS_APIs.h45 const int16 mag[3],
H A DAKFS_Measure.h64 const AKSENSOR_DATA* mag,
H A DAKFS_APIs.c142 @param[in] mag A set of measurement data from magnetometer. X axis value
143 should be in mag[0], Y axis value should be in mag[1], Z axis value should be
144 in mag[2].
153 const int16 mag[3],
166 __FUNCTION__, mag[0], mag[1], mag[2], status);
171 mag,
152 AKFS_Get_MAGNETIC_FIELD( const int16 mag[3], const int16 status, AKFLOAT* vx, AKFLOAT* vy, AKFLOAT* vz, int16* accuracy ) argument
/hardware/invensense/60xx/mlsdk/mllite/
H A DmlMathFunc.c201 float mag; local
202 mag = sqrtf(q[0] * q[0] + q[1] * q[1] + q[2] * q[2] + q[3] * q[3]);
203 if (mag) {
204 q[0] /= mag;
205 q[1] /= mag;
206 q[2] /= mag;
207 q[3] /= mag;
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/
H A Dml_math_func.c313 float mag; local
314 mag = sqrtf(q[0] * q[0] + q[1] * q[1] + q[2] * q[2] + q[3] * q[3]);
315 if (mag) {
316 q[0] /= mag;
317 q[1] /= mag;
318 q[2] /= mag;
319 q[3] /= mag;
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
H A Dml_math_func.c313 float mag; local
314 mag = sqrtf(q[0] * q[0] + q[1] * q[1] + q[2] * q[2] + q[3] * q[3]);
315 if (mag) {
316 q[0] /= mag;
317 q[1] /= mag;
318 q[2] /= mag;
319 q[3] /= mag;
H A Dhal_outputs.c349 long mag[3]; local
353 inv_get_compass_set_raw(mag, accuracy, timestamp);
360 values[i] = (float)mag[i] * COMPASS_CONVERSION;

Completed in 2443 milliseconds