Searched defs:sensors (Results 1 - 12 of 12) sorted by relevance

/hardware/invensense/60xx/mlsdk/mllite/
H A Dmldl_cfg_mpu.c257 unsigned long sensors)
261 mldl_cfg->requested_sensors = sensors;
288 unsigned long sensors)
293 mldl_cfg->requested_sensors = (~sensors) & INV_ALL_SENSORS;
294 //MPL_LOGI("%s: suspending sensors to %04lx\n", __func__,
252 inv_mpu_resume(struct mldl_cfg* mldl_cfg, void *mlsl_handle, void *accel_handle, void *compass_handle, void *pressure_handle, unsigned long sensors) argument
283 inv_mpu_suspend(struct mldl_cfg *mldl_cfg, void *mlsl_handle, void *accel_handle, void *compass_handle, void *pressure_handle, unsigned long sensors) argument
H A Dmldl.c246 * @param sensors
247 * Bitfield of the sensors that are going to be used. Combination of the
269 inv_error_t inv_init_requested_sensors(unsigned long sensors) argument
271 mldlCfg.requested_sensors = sensors;
281 * @param sensors
282 * Bitfield of the sensors to turn on. Combination of the following:
303 inv_error_t inv_dl_start(unsigned long sensors) argument
308 mldlCfg.requested_sensors = sensors;
314 sensors);
324 * @param sensors Bitfile
346 inv_dl_stop(unsigned long sensors) argument
[all...]
H A Dml.c29 * sensors.
1682 * NOTE: In this version only full sensors controll is allowed. Independent
1685 * @param sensors Bit field of each axis desired to be turned on or off
1689 inv_error_t inv_set_mpu_sensors(unsigned long sensors) argument
1700 if (((sensors & INV_THREE_AXIS_ACCEL) != INV_THREE_AXIS_ACCEL) &&
1701 ((sensors & INV_THREE_AXIS_ACCEL) != 0)) {
1704 if (((sensors & INV_THREE_AXIS_ACCEL) != 0) &&
1709 if (((sensors & INV_THREE_AXIS_COMPASS) != INV_THREE_AXIS_COMPASS) &&
1710 ((sensors & INV_THREE_AXIS_COMPASS) != 0)) {
1713 if (((sensors
[all...]
/hardware/invensense/60xx/libsensors_iio/
H A Dsensors_mpl.cpp19 #include <hardware/sensors.h>
33 #include "sensors.h"
53 static int sensors = (sizeof(sSensorList) / sizeof(sensor_t)); variable
62 return sensors;
122 sensors =
H A DMPLSensor.cpp684 /* TODO: Turn off and close all sensors */
1013 int MPLSensor::enableSensors(unsigned long sensors, int /*en*/, uint32_t changed) { argument
1048 LOGV_IF(PROCESS_VERBOSE, "HAL:enableSensors - sensors: 0x%0x", (unsigned int)sensors);
1051 res = enableOneSensor(sensors & INV_THREE_AXIS_GYRO, "gyro", &MPLSensor::enableGyro);
1058 res = enableOneSensor(sensors & INV_THREE_AXIS_ACCEL, "accel", &MPLSensor::enableAccel);
1066 res = enableOneSensor(sensors & INV_THREE_AXIS_COMPASS, "compass", &MPLSensor::enableCompass);
1096 if (sensors &
1119 if ((sensors & INV_THREE_AXIS_ACCEL) == 0) {
1131 } else { // all sensors idl
[all...]
/hardware/invensense/65xx/libsensors_iio/
H A Dsensors_mpl.cpp19 #include <hardware/sensors.h>
33 #include "sensors.h"
54 static int sensors = (sizeof(sSensorList) / sizeof(sensor_t)); variable
63 return sensors;
136 sensors =
H A DMPLSensor.cpp93 // mask of virtual sensors that require gyro + accel + compass data
100 // mask of virtual sensors that require gyro + accel data (but no compass data)
104 // mask of virtual sensors that require mag + accel data (but no gyro data)
108 // mask of all virtual sensors
1046 /* TODO: Turn off and close all sensors */
2049 int MPLSensor::enableSensors(unsigned long sensors, int en, uint32_t changed) argument
2076 LOGV_IF(ENG_VERBOSE, "HAL:enableSensors - sensors: 0x%0x",
2077 (unsigned int)sensors);
2081 (sensors & INV_THREE_AXIS_GYRO? "enable": "disable"));
2082 res = enableGyro(!!(sensors
[all...]
/hardware/invensense/6515/libsensors_iio/
H A Dsensors_mpl.cpp20 #include <hardware/sensors.h>
36 #include "sensors.h"
68 static int sensors = (sizeof(sSensorList) / sizeof(sensor_t)); variable
77 return sensors;
155 sensors =
H A DMPLSensor.cpp563 /* disable all sensors and features */
2074 int MPLSensor::enableSensors(unsigned long sensors, int en, uint32_t changed) argument
2103 LOGV_IF(ENG_VERBOSE, "HAL:enableSensors - sensors: 0x%0x",
2104 (unsigned int)sensors);
2108 (sensors & INV_THREE_AXIS_GYRO? "enable": "disable"));
2109 res = enableGyro(!!(sensors & INV_THREE_AXIS_GYRO));
2122 (sensors & INV_THREE_AXIS_ACCEL? "enable": "disable"));
2123 res = enableAccel(!!(sensors & INV_THREE_AXIS_ACCEL));
2128 if (!(sensors & INV_THREE_AXIS_ACCEL) && !cal_stored) {
2136 (sensors
[all...]
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/
H A Ddata_builder.c77 static struct inv_sensor_cal_t sensors; variable in typeref:struct:inv_sensor_cal_t
109 // copy in the saved accuracy in the actual sensors accuracy
110 sensors.gyro.accuracy = inv_data_builder.save.gyro_accuracy;
111 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy;
112 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy;
114 if (sensors.compass.accuracy == 3) {
133 memset(&sensors, 0, sizeof(sensors));
146 return sensors.gyro.sensitivity;
156 return sensors
[all...]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
H A Ddata_builder.c61 static struct inv_sensor_cal_t sensors; variable in typeref:struct:inv_sensor_cal_t
91 memcpy(raw, sensors.compass.raw, sizeof(sensors.compass.raw));
98 // copy in the saved accuracy in the actual sensors accuracy
99 sensors.gyro.accuracy = inv_data_builder.save.gyro_accuracy;
100 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy;
101 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy;
103 if (sensors.accel.accuracy == 3) {
106 if (sensors.compass.accuracy == 3) {
155 memset(&sensors,
[all...]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
H A Ddata_builder.c60 static struct inv_sensor_cal_t sensors; variable in typeref:struct:inv_sensor_cal_t
90 memcpy(raw, sensors.compass.raw, sizeof(sensors.compass.raw));
97 // copy in the saved accuracy in the actual sensors accuracy
98 sensors.gyro.accuracy = inv_data_builder.save.gyro_accuracy;
99 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy;
100 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy;
102 if (sensors.accel.accuracy == 3) {
105 if (sensors.compass.accuracy == 3) {
154 memset(&sensors,
[all...]

Completed in 352 milliseconds