/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
D | mma7660.cxx | 47 upm::MMA7660 *accel = new upm::MMA7660(MMA7660_I2C_BUS, in main() local 51 accel->setModeStandby(); in main() 54 accel->setSampleRate(upm::MMA7660::AUTOSLEEP_64); in main() 57 accel->setModeActive(); in main() 63 accel->getRawValues(&x, &y, &z); in main() 71 accel->getAcceleration(&ax, &ay, &az); in main() 84 delete accel; in main()
|
D | h3lis331dl.cxx | 48 upm::H3LIS331DL *accel = new upm::H3LIS331DL(H3LIS331DL_I2C_BUS, in main() local 52 accel->init(); in main() 59 accel->update(); in main() 61 accel->getRawXYZ(&x, &y, &z); in main() 62 accel->getAcceleration(&ax, &ay, &az); in main() 78 delete accel; in main()
|
D | adxl345.cxx | 36 upm::Adxl345* accel = new upm::Adxl345(0); in main() local 39 accel->update(); // Update the data in main() 40 raw = accel->getRawValues(); // Read raw sensor data in main() 41 acc = accel->getAcceleration(); // Read acceleration (g) in main() 42 fprintf(stdout, "Current scale: 0x%2xg\n", accel->getScale()); in main()
|
D | adxl335.cxx | 47 upm::ADXL335* accel = new upm::ADXL335(0, 1, 2); in main() local 54 accel->calibrate(); in main() 61 accel->values(&x, &y, &z); in main() 64 accel->acceleration(&aX, &aY, &aZ); in main() 76 delete accel; in main()
|
D | lsm303.cxx | 58 int16_t* accel = sensor->getRawAccelData(); in main() local 60 std::cout << "acc: rX " << (int)accel[0] in main() 61 << " - rY " << (int)accel[1] in main() 62 << " - Z " << (int)accel[2] in main()
|
/hardware/bsp/intel/peripheral/libupm/examples/java/ |
D | MMA7660Sample.java | 40 upm_mma7660.MMA7660 accel = new upm_mma7660.MMA7660(0); in main() local 43 accel.setModeStandby(); in main() 46 accel.setSampleRate(upm_mma7660.MMA7660.MMA7660_AUTOSLEEP_T.AUTOSLEEP_64); in main() 49 accel.setModeActive(); in main() 52 int[] rawValues = accel.getRawValues(); in main() 56 float[] acceleration = accel.getAcceleration(); in main()
|
D | H3LIS331DLSample.java | 40 float[] accel; in main() local 54 accel = sensor.getAcceleration(); in main() 55 System.out.println( "Acceleration: X: " + accel[0] + " Y: " + accel[1] + " Z: " + accel[2] ); in main()
|
D | Adxl345Sample.java | 40 float[] accel; in main() local 49 accel = sensor.getAcceleration(); in main() 54 System.out.println("Acceleration: X: " + accel[0] + "g Y: " in main() 55 + accel[1] + "g Z: " + accel[2] + "g"); in main()
|
D | MPU9150Sample.java | 46 float[] accel = sensor.getAccelerometer(); in main() local 47 System.out.println("Accelerometer: " + "AX: " + accel[0] + " AY: " + accel[1] + " AZ: " in main() 48 + accel[2]); in main()
|
D | LSM303Sample.java | 57 int[] accel = sensor.getRawAccelData(); in main() local 61 System.out.println("acc: rX " + accel[0] + " - rY " + accel[1] + " - rZ " + accel[2]); in main()
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | data_builder.c | 100 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; in inv_db_load_func() 103 if (sensors.accel.accuracy == 3) { in inv_db_load_func() 188 return sensors.accel.sensitivity; in inv_get_accel_sensitivity() 290 sensors.accel.sample_rate_us = sample_rate_us; in inv_set_accel_sample_rate() 291 sensors.accel.sample_rate_ms = sample_rate_us / 1000; in inv_set_accel_sample_rate() 292 if (sensors.accel.bandwidth == 0) { in inv_set_accel_sample_rate() 293 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); in inv_set_accel_sample_rate() 349 *ts = sensors.accel.timestamp; in inv_raw_sensor_timestamp() 351 if (sensors.accel.timestamp_prev != sensors.accel.timestamp) in inv_raw_sensor_timestamp() 400 } else if ((sensors.accel.status & INV_SENSOR_ON) == 0) { in inv_get_9_axis_timestamp() [all …]
|
D | hal_outputs.c | 129 long accel[3]; in inv_get_sensor_type_accelerometer() local 130 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accelerometer() 131 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer() 132 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer() 133 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer() 154 long gravity[3], accel[3]; in inv_get_sensor_type_linear_acceleration() local 157 inv_get_accel_set(accel, accuracy, ×tamp1); in inv_get_sensor_type_linear_acceleration() 159 accel[0] -= gravity[0] >> 14; in inv_get_sensor_type_linear_acceleration() 160 accel[1] -= gravity[1] >> 14; in inv_get_sensor_type_linear_acceleration() 161 accel[2] -= gravity[2] >> 14; in inv_get_sensor_type_linear_acceleration() [all …]
|
D | data_builder.h | 132 struct inv_single_sensor_t accel; member 246 inv_error_t inv_build_accel(const long *accel, int status,
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
D | data_builder.c | 99 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; in inv_db_load_func() 102 if (sensors.accel.accuracy == 3) { in inv_db_load_func() 187 return sensors.accel.sensitivity; in inv_get_accel_sensitivity() 289 sensors.accel.sample_rate_us = sample_rate_us; in inv_set_accel_sample_rate() 290 sensors.accel.sample_rate_ms = sample_rate_us / 1000; in inv_set_accel_sample_rate() 291 if (sensors.accel.bandwidth == 0) { in inv_set_accel_sample_rate() 292 sensors.accel.bandwidth = (int)(1000000L / sample_rate_us); in inv_set_accel_sample_rate() 322 *sample_rate_ms = sensors.accel.sample_rate_ms; in inv_get_accel_sample_rate_ms() 359 sensors.accel.bandwidth = bandwidth_hz; in inv_set_accel_bandwidth() 391 return (sensors.accel.status & INV_SENSOR_ON) == INV_SENSOR_ON; in inv_get_accel_on() [all …]
|
D | hal_outputs.c | 81 long accel[3]; in inv_get_sensor_type_accelerometer() local 82 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accelerometer() 83 values[0] = accel[0] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer() 84 values[1] = accel[1] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer() 85 values[2] = accel[2] * ACCEL_CONVERSION; in inv_get_sensor_type_accelerometer() 106 long gravity[3], accel[3]; in inv_get_sensor_type_linear_acceleration() local 109 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_linear_acceleration() 111 accel[0] -= gravity[0] >> 14; in inv_get_sensor_type_linear_acceleration() 112 accel[1] -= gravity[1] >> 14; in inv_get_sensor_type_linear_acceleration() 113 accel[2] -= gravity[2] >> 14; in inv_get_sensor_type_linear_acceleration() [all …]
|
D | data_builder.h | 129 struct inv_single_sensor_t accel; member 243 inv_error_t inv_build_accel(const long *accel, int status,
|
/hardware/bsp/intel/peripheral/libupm/examples/javascript/ |
D | lsm303.js | 32 var successFail, coords, outputStr, accel; variable 56 accel = myAccelrCompass.getRawAccelData(); 58 outputStr = "acc: rX " + accel.getitem(0) 59 + " - rY " + accel.getitem(1) 60 + " - Z " + accel.getitem(2);
|
/hardware/bsp/intel/peripheral/libupm/src/lsm303/ |
D | lsm303.cxx | 85 return &accel[0]; in getRawAccelData() 97 return accel[X]; in getAccelX() 103 return accel[Y]; in getAccelY() 109 return accel[Z]; in getAccelZ() 170 accel[X] = (int16_t(readThenWrite(OUT_X_H_A)) << 8) in getAcceleration() 172 accel[Y] = (int16_t(readThenWrite(OUT_Y_H_A)) << 8) in getAcceleration() 174 accel[Z] = (int16_t(readThenWrite(OUT_Z_H_A)) << 8) in getAcceleration()
|
D | lsm303.h | 177 int16_t accel[3]; variable
|
/hardware/bsp/intel/peripheral/libupm/src/lsm303d/ |
D | lsm303d.cxx | 103 return &accel[0]; in getRawAccelData() 115 return accel[X]; in getAccelX() 121 return accel[Y]; in getAccelY() 127 return accel[Z]; in getAccelZ() 178 accel[X] = (int16_t(writeThenRead(OUT_X_H_A)) << 8) in getAcceleration() 180 accel[Y] = (int16_t(writeThenRead(OUT_Y_H_A)) << 8) in getAcceleration() 182 accel[Z] = (int16_t(writeThenRead(OUT_Z_H_A)) << 8) in getAcceleration()
|
/hardware/bsp/intel/peripheral/libupm/examples/python/ |
D | lsm303.py | 73 accel = myAccelrCompass.getRawAccelData(); variable 78 accel.__getitem__(0), accel.__getitem__(1), accel.__getitem__(2))
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
D | datalogger_outputs.c | 109 struct inv_single_sensor_t *pa = &dl_out.sc.accel; in inv_get_sensor_type_accel_raw_short() 128 long accel[3]; in inv_get_sensor_type_accel_float() local 129 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accel_float() 131 values[0] = (float) -accel[0] / 65536.f; in inv_get_sensor_type_accel_float() 132 values[1] = (float) -accel[1] / 65536.f; in inv_get_sensor_type_accel_float() 133 values[2] = (float) -accel[2] / 65536.f; in inv_get_sensor_type_accel_float() 272 struct inv_single_sensor_t *pa = &dl_out.sc.accel; in inv_get_sensor_type_gravity_float()
|
D | and_constructor.c | 154 long accel[3]; in inv_playback() local 157 int32_to_long(buffer, accel, 3); in inv_playback() 158 inv_build_accel(accel, 0, ts); in inv_playback()
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
D | README | 7 In the disable sequence, this will disable all but accel engine; all outputs 23 When this is enabled, the driver enters low power accel mode and disables all 24 other sensor output (including quaternion, gyro, accel, and compass.) in the
|
/hardware/bsp/intel/peripheral/libupm/ |
D | README.md | 20 upm::MMA7660 *accel = new upm::MMA7660(MMA7660_I2C_BUS, 24 accel->setModeStandby(); 27 accel->setSampleRate(upm::MMA7660::AUTOSLEEP_64); 30 accel->setModeActive(); 36 accel->getRawValues(&x, &y, &z); 44 accel->getAcceleration(&ax, &ay, &az);
|