Home
last modified time | relevance | path

Searched refs:en (Results 1 – 25 of 37) sorted by relevance

12

/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/
Dinv_gesture_test.c277 int master_enable(int en) in master_enable() argument
279 if (write_sysfs_int(mpu.enable, en) < 0) { in master_enable()
287 int enable_tap(int en) in enable_tap() argument
289 if (write_sysfs_int(mpu.tap_on, en) < 0) { in enable_tap()
313 int enable_display_orientation(int en) in enable_display_orientation() argument
315 if (write_sysfs_int(mpu.display_orientation_on, en) < 0) { in enable_display_orientation()
325 int enable_orientation(int en) in enable_orientation() argument
327 if (write_sysfs_int(mpu.orientation_on, en) < 0) { in enable_orientation()
337 int enable_smd(int en) in enable_smd() argument
339 if (write_sysfs_int(mpu.smd_enable, en) < 0) { in enable_smd()
[all …]
/hardware/invensense/65xx/libsensors_iio/
DCompassSensor.IIO.primary.cpp242 int CompassSensor::enable(int32_t handle, int en) in enable() argument
246 mEnable = en; in enable()
256 if (en) { in enable()
258 en, compassSysFs.compass_x_fifo_enable, getTimestamp()); in enable()
259 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en); in enable()
261 en, compassSysFs.compass_y_fifo_enable, getTimestamp()); in enable()
262 res += write_sysfs_int(compassSysFs.compass_y_fifo_enable, en); in enable()
264 en, compassSysFs.compass_z_fifo_enable, getTimestamp()); in enable()
265 res += write_sysfs_int(compassSysFs.compass_z_fifo_enable, en); in enable()
267 res = masterEnable(en); in enable()
[all …]
DMPLSensor.cpp1123 int MPLSensor::onDmp(int en) in onDmp() argument
1129 mDmpOn = en; in onDmp()
1146 } else if (status != en) { in onDmp()
1148 en, mpu.dmp_on, getTimestamp()); in onDmp()
1149 if (write_sysfs_int(mpu.dmp_on, en) < 0) { in onDmp()
1152 mDmpOn = en; in onDmp()
1154 if(!en) { in onDmp()
1160 en, mpu.dmp_int_on, getTimestamp()); in onDmp()
1161 if (write_sysfs_int(mpu.dmp_int_on, en) < 0) { in onDmp()
1166 if (!en) { in onDmp()
[all …]
DMPLSensor.h206 int setBatch(int en, int toggleEnable);
284 int masterEnable(int en);
285 int enablePedStandalone(int en);
286 int enablePedStandaloneData(int en);
296 int enableGyro(int en);
297 int enableLowPowerAccel(int en);
298 int enableAccel(int en);
299 int enableCompass(int en, int rawSensorOn);
300 int enablePressure(int en);
305 int enableSensors(unsigned long sensors, int en, uint32_t changed);
[all …]
DPressureSensor.IIO.secondary.cpp88 int PressureSensor::enable(int32_t handle, int en) in enable() argument
95 en, pressureSysFs.pressure_enable, getTimestamp()); in enable()
96 res = write_sysfs_int(pressureSysFs.pressure_enable, en); in enable()
DCompassSensor.AKM.cpp76 int CompassSensor::enable(int32_t handle, int en) in enable() argument
81 return mCompassSensor->setEnable(handle, en); in enable()
DMPLSupport.h24 int enable_sysfs_sensor(int fd, int en);
/hardware/invensense/6515/libsensors_iio/
DMPLSensor.h189 int setBatch(int en, int toggleEnable);
190 int writeBatchTimeout(int en);
262 int masterEnable(int en);
263 int enablePedStandalone(int en);
264 int enablePedStandaloneData(int en);
277 int enableGyro(int en);
278 int enableLowPowerAccel(int en);
279 int enableAccel(int en);
280 int enableCompass(int en, int rawSensorOn);
281 int enablePressure(int en);
[all …]
DCompassSensor.IIO.primary.cpp242 int CompassSensor::enable(int32_t handle, int en) in enable() argument
246 mEnable = en; in enable()
256 if (en) { in enable()
258 en, compassSysFs.compass_x_fifo_enable, getTimestamp()); in enable()
259 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en); in enable()
261 en, compassSysFs.compass_y_fifo_enable, getTimestamp()); in enable()
262 res += write_sysfs_int(compassSysFs.compass_y_fifo_enable, en); in enable()
264 en, compassSysFs.compass_z_fifo_enable, getTimestamp()); in enable()
265 res += write_sysfs_int(compassSysFs.compass_z_fifo_enable, en); in enable()
267 res = masterEnable(en); in enable()
[all …]
DMPLSensor.cpp1015 int MPLSensor::onDmp(int en) in onDmp() argument
1021 mDmpOn = en; in onDmp()
1038 } else if (status != en) { in onDmp()
1040 en, mpu.dmp_on, getTimestamp()); in onDmp()
1041 if (write_sysfs_int(mpu.dmp_on, en) < 0) { in onDmp()
1044 mDmpOn = en; in onDmp()
1046 if(!en) { in onDmp()
1052 en, mpu.dmp_int_on, getTimestamp()); in onDmp()
1053 if (write_sysfs_int(mpu.dmp_int_on, en) < 0) { in onDmp()
1058 if (!en) { in onDmp()
[all …]
DPressureSensor.IIO.secondary.cpp88 int PressureSensor::enable(int32_t handle, int en) in enable() argument
95 en, pressureSysFs.pressure_enable, getTimestamp()); in enable()
96 res = write_sysfs_int(pressureSysFs.pressure_enable, en); in enable()
DCompassSensor.AKM.cpp76 int CompassSensor::enable(int32_t handle, int en) in enable() argument
81 return mCompassSensor->setEnable(handle, en); in enable()
DMPLSupport.h24 int enable_sysfs_sensor(int fd, int en);
DCompassSensor.IIO.9150.cpp141 int CompassSensor::enable(int32_t handle, int en) in enable() argument
146 en, compassSysFs.compass_enable, getTimestamp()); in enable()
147 res = write_sysfs_int(compassSysFs.compass_enable, en); in enable()
/hardware/invensense/60xx/libsensors_iio/
DMPLSensor.h189 int masterEnable(int en);
190 int onPower(int en);
194 int enableOneSensor(int en, const char *name, int (MPLSensor::*enabler)(int));
195 int enableGyro(int en);
196 int enableAccel(int en);
197 int enableCompass(int en);
199 int enableSensors(unsigned long sensors, int en, uint32_t changed);
DMPLSensor.cpp754 int MPLSensor::onPower(int en) in onPower() argument
763 en, mpu.power_state, getTimestamp()); in onPower()
770 if (en != curr_power_state) { in onPower()
771 if((res = write_sysfs_int(mpu.power_state, en)) < 0) { in onPower()
777 curr_power_state, en); in onPower()
782 int MPLSensor::onDMP(int en) in onDMP() argument
810 } else if (status != en) { in onDMP()
811 res = write_sysfs_int(mpu.dmp_on, en); in onDMP()
813 if (write_sysfs_int(mpu.dmp_int_on, en) < 0) { in onDMP()
832 int MPLSensor::enableLPQuaternion(int en) in enableLPQuaternion() argument
[all …]
DCompassSensor.IIO.9150.cpp139 int CompassSensor::enable(int32_t /*handle*/, int en) in enable() argument
143 mEnable = en; in enable()
146 res = write_sysfs_int(compassSysFs.compass_enable, en); in enable()
149 if (en) { in enable()
150 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en); in enable()
151 res = write_sysfs_int(compassSysFs.compass_y_fifo_enable, en); in enable()
152 res = write_sysfs_int(compassSysFs.compass_z_fifo_enable, en); in enable()
DMPLSupport.cpp94 int enable_sysfs_sensor(int fd, int en) in enable_sysfs_sensor() argument
101 char c = en ? '1' : '0'; in enable_sysfs_sensor()
DMPLSupport.h28 int enable_sysfs_sensor(int fd, int en);
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Diio_utils.h596 int *counter, char *sensor, int en) in enable_se()
620 write_sysfs_int_and_verify((char *)ent->d_name, scan_el_dir, en); in enable_se()
632 int en) in enable_accel_se()
634 return enable_se(device_dir, ci_array, counter, "accel", en); in enable_accel_se()
639 int en) in enable_anglvel_se()
641 return enable_se(device_dir, ci_array, counter, "anglvel", en); in enable_anglvel_se()
646 int en) in enable_quaternion_se()
648 return enable_se(device_dir, ci_array, counter, "quaternion", en); in enable_quaternion_se()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Diio_utils.h596 int *counter, char *sensor, int en) in enable_se()
620 write_sysfs_int_and_verify((char *)ent->d_name, scan_el_dir, en); in enable_se()
632 int en) in enable_accel_se()
634 return enable_se(device_dir, ci_array, counter, "accel", en); in enable_accel_se()
639 int en) in enable_anglvel_se()
641 return enable_se(device_dir, ci_array, counter, "anglvel", en); in enable_anglvel_se()
646 int en) in enable_quaternion_se()
648 return enable_se(device_dir, ci_array, counter, "quaternion", en); in enable_quaternion_se()
/hardware/invensense/60xx/libsensors_iio/software/core/mpl/
Dfusion_9axis.h30 inv_error_t inv_9x_fusion_enable_jitter_reduction(int en);
/hardware/invensense/65xx/libsensors_iio/software/core/mpl/
Dfusion_9axis.h30 inv_error_t inv_9x_fusion_enable_jitter_reduction(int en);
/hardware/invensense/6515/libsensors_iio/software/core/mpl/
Dfusion_9axis.h30 inv_error_t inv_9x_fusion_enable_jitter_reduction(int en);
Dshake.h86 void inv_enable_shake_data_interpolation(unsigned char en);

12