/hardware/invensense/6515/libsensors_iio/ |
D | MPLSupport.cpp | 334 int inv_float_to_q16(float *fdata, long *ldata) in inv_float_to_q16() argument 337 if (!fdata || !ldata) in inv_float_to_q16() 339 ldata[0] = (long)(fdata[0] * 65536.f); in inv_float_to_q16() 340 ldata[1] = (long)(fdata[1] * 65536.f); in inv_float_to_q16() 341 ldata[2] = (long)(fdata[2] * 65536.f); in inv_float_to_q16() 345 int inv_long_to_q16(long *fdata, long *ldata) in inv_long_to_q16() argument 348 if (!fdata || !ldata) in inv_long_to_q16() 350 ldata[0] = (fdata[1] * 65536.f); in inv_long_to_q16() 351 ldata[1] = (fdata[2] * 65536.f); in inv_long_to_q16() 352 ldata[2] = (fdata[3] * 65536.f); in inv_long_to_q16() [all …]
|
D | MPLSupport.h | 37 int inv_float_to_q16(float *fdata, long *ldata); 38 int inv_long_to_q16(long *fdata, long *ldata); 39 int inv_float_to_round(float *fdata, long *ldata); 41 int inv_long_to_float(long *ldata, float *fdata);
|
D | CompassSensor.AKM.cpp | 141 long ldata[3]; in readRawSample() local 143 int res = mCompassSensor->readSample(ldata, timestamp); in readRawSample() 145 data[i] = (float)ldata[i]; in readRawSample()
|
/hardware/invensense/60xx/mlsdk/mllite/ |
D | mlarray.c | 994 long ldata[3]; in inv_get_gyro_float() local 1002 result = inv_get_gyro(ldata); in inv_get_gyro_float() 1003 data[0] = (float)ldata[0] / 65536.0f; in inv_get_gyro_float() 1004 data[1] = (float)ldata[1] / 65536.0f; in inv_get_gyro_float() 1005 data[2] = (float)ldata[2] / 65536.0f; in inv_get_gyro_float() 1069 long ldata[1]; in inv_get_temperature_float() local 1078 result = inv_get_temperature(ldata); in inv_get_temperature_float() 1079 data[0] = (float)ldata[0] / 65536.0f; in inv_get_temperature_float() 1170 long ldata[3]; in inv_get_linear_accel_float() local 1179 result = inv_get_linear_accel(ldata); in inv_get_linear_accel_float() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | results_holder.c | 257 long ldata[4]; in inv_get_gravity() local 258 inv_error_t result = inv_get_quaternion(ldata); in inv_get_gravity() 261 inv_q29_mult(ldata[1], ldata[3]) - inv_q29_mult(ldata[2], ldata[0]); in inv_get_gravity() 263 inv_q29_mult(ldata[2], ldata[3]) + inv_q29_mult(ldata[1], ldata[0]); in inv_get_gravity() 265 (inv_q29_mult(ldata[3], ldata[3]) + inv_q29_mult(ldata[0], ldata[0])) - in inv_get_gravity()
|
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/ |
D | results_holder.c | 242 long ldata[4]; in inv_get_quaternion_float() local 243 inv_error_t result = inv_get_quaternion(ldata); in inv_get_quaternion_float() 244 data[0] = inv_q30_to_float(ldata[0]); in inv_get_quaternion_float() 245 data[1] = inv_q30_to_float(ldata[1]); in inv_get_quaternion_float() 246 data[2] = inv_q30_to_float(ldata[2]); in inv_get_quaternion_float() 247 data[3] = inv_q30_to_float(ldata[3]); in inv_get_quaternion_float()
|
/hardware/invensense/65xx/libsensors_iio/ |
D | CompassSensor.AKM.cpp | 141 long ldata[3]; in readRawSample() local 143 int res = mCompassSensor->readSample(ldata, timestamp); in readRawSample() 145 data[i] = (float)ldata[i]; in readRawSample()
|
D | MPLSensor.h | 307 int inv_float_to_q16(float *fdata, long *ldata); 308 int inv_long_to_q16(long *fdata, long *ldata); 309 int inv_float_to_round(float *fdata, long *ldata); 311 int inv_long_to_float(long *ldata, float *fdata);
|
D | MPLSensor.cpp | 4553 int MPLSensor::inv_float_to_q16(float *fdata, long *ldata) in inv_float_to_q16() argument 4557 if (!fdata || !ldata) in inv_float_to_q16() 4559 ldata[0] = (long)(fdata[0] * 65536.f); in inv_float_to_q16() 4560 ldata[1] = (long)(fdata[1] * 65536.f); in inv_float_to_q16() 4561 ldata[2] = (long)(fdata[2] * 65536.f); in inv_float_to_q16() 4565 int MPLSensor::inv_long_to_q16(long *fdata, long *ldata) in inv_long_to_q16() argument 4569 if (!fdata || !ldata) in inv_long_to_q16() 4571 ldata[0] = (fdata[1] * 65536.f); in inv_long_to_q16() 4572 ldata[1] = (fdata[2] * 65536.f); in inv_long_to_q16() 4573 ldata[2] = (fdata[3] * 65536.f); in inv_long_to_q16() [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
D | results_holder.c | 318 long ldata[4]; in inv_get_quaternion_float() local 319 inv_error_t result = inv_get_quaternion(ldata); in inv_get_quaternion_float() 320 data[0] = inv_q30_to_float(ldata[0]); in inv_get_quaternion_float() 321 data[1] = inv_q30_to_float(ldata[1]); in inv_get_quaternion_float() 322 data[2] = inv_q30_to_float(ldata[2]); in inv_get_quaternion_float() 323 data[3] = inv_q30_to_float(ldata[3]); in inv_get_quaternion_float()
|
/hardware/invensense/60xx/libsensors_iio/ |
D | MPLSensor.h | 201 int inv_float_to_q16(float *fdata, long *ldata); 202 int inv_long_to_q16(long *fdata, long *ldata); 203 int inv_float_to_round(float *fdata, long *ldata);
|
D | MPLSensor.cpp | 2326 int MPLSensor::inv_float_to_q16(float *fdata, long *ldata) in inv_float_to_q16() argument 2330 if (!fdata || !ldata) in inv_float_to_q16() 2332 ldata[0] = (long)(fdata[0] * 65536.f); in inv_float_to_q16() 2333 ldata[1] = (long)(fdata[1] * 65536.f); in inv_float_to_q16() 2334 ldata[2] = (long)(fdata[2] * 65536.f); in inv_float_to_q16() 2338 int MPLSensor::inv_long_to_q16(long *fdata, long *ldata) in inv_long_to_q16() argument 2342 if (!fdata || !ldata) in inv_long_to_q16() 2344 ldata[0] = (fdata[1] * 65536.f); in inv_long_to_q16() 2345 ldata[1] = (fdata[2] * 65536.f); in inv_long_to_q16() 2346 ldata[2] = (fdata[3] * 65536.f); in inv_long_to_q16() [all …]
|