/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/ |
D | inv_self_test.c | 118 int write_sysfs_int(char *filename, int data) in write_sysfs_int() function 157 res = write_sysfs_int(filename, data); in save_n_write_sysfs_int() 547 if (write_sysfs_int(mpu.accel_x_offset, offsets[0]) < 0) { in main() 551 if (write_sysfs_int(mpu.accel_y_offset, offsets[1]) < 0) { in main() 555 if (write_sysfs_int(mpu.accel_z_offset, offsets[2]) < 0) { in main() 571 if (write_sysfs_int(mpu.gyro_x_offset, offsets[0]) < 0) { in main() 575 if (write_sysfs_int(mpu.gyro_y_offset, offsets[1]) < 0) { in main() 579 if (write_sysfs_int(mpu.gyro_z_offset, offsets[2]) < 0) { in main() 621 if (write_sysfs_int(mpu.dmp_on, mpu.dmp_on_value) < 0) { in main() 624 if (write_sysfs_int(mpu.accel_enable, mpu.accel_enable_value) < 0) { in main() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/ |
D | inv_gesture_test.c | 130 int write_sysfs_int(char *filename, int data) in write_sysfs_int() function 279 if (write_sysfs_int(mpu.enable, en) < 0) { in master_enable() 289 if (write_sysfs_int(mpu.tap_on, en) < 0) { in enable_tap() 315 if (write_sysfs_int(mpu.display_orientation_on, en) < 0) { in enable_display_orientation() 327 if (write_sysfs_int(mpu.orientation_on, en) < 0) { in enable_orientation() 339 if (write_sysfs_int(mpu.smd_enable, en) < 0) { in enable_smd()
|
/hardware/invensense/65xx/libsensors_iio/ |
D | MPLSensor.cpp | 1045 write_sysfs_int(mpu.master_enable, 0); in ~MPLSensor() 1145 if (write_sysfs_int(mpu.dmp_on, en) < 0) { in onDmp() 1157 if (write_sysfs_int(mpu.dmp_int_on, en) < 0) { in onDmp() 1165 if (write_sysfs_int(mpu.dmp_event_int_on, en) < 0) { in onDmp() 1194 if (write_sysfs_int(mpu.pedometer_int_on, 0) < 0) { in enablePedIndicator() 1205 if (write_sysfs_int(mpu.step_indicator_on, en) < 0) { in enablePedIndicator() 1233 if (write_sysfs_int(mpu.pedometer_int_on, 1) < 0) { in enablePedStandalone() 1241 if (write_sysfs_int(mpu.dmp_event_int_on, 1) < 0) { in enablePedStandalone() 1256 if (write_sysfs_int(mpu.pedometer_int_on, 0) < 0) { in enablePedStandalone() 1263 if (write_sysfs_int(mpu.dmp_event_int_on, 0) < 0) { in enablePedStandalone() [all …]
|
D | CompassSensor.AKM.cpp | 48 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); in CompassSensor() 58 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); in ~CompassSensor()
|
D | CompassSensor.IIO.primary.cpp | 151 write_sysfs_int(compassSysFs.in_timestamp_en, 1); in enable_iio_sysfs() 259 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en); in enable() 262 res += write_sysfs_int(compassSysFs.compass_y_fifo_enable, en); in enable() 265 res += write_sysfs_int(compassSysFs.compass_z_fifo_enable, en); in enable() 281 return write_sysfs_int(compassSysFs.chip_enable, en); in masterEnable()
|
D | PressureSensor.IIO.secondary.cpp | 97 res = write_sysfs_int(pressureSysFs.pressure_enable, en); in enable() 111 res = write_sysfs_int(pressureSysFs.pressure_rate, mDelay); in setDelay()
|
D | MPLSupport.h | 30 int write_sysfs_int(char*, int);
|
D | CompassSensor.IIO.9150.cpp | 145 res = write_sysfs_int(compassSysFs.compass_enable, en); in enable() 173 res += write_sysfs_int(compassSysFs.compass_fifo_enable, 0); in turnOffCompassFifo() 182 res += write_sysfs_int(compassSysFs.compass_fifo_enable, 1); in turnOnCompassFifo()
|
D | MPLSupport.cpp | 189 int write_sysfs_int(char *filename, int var) in write_sysfs_int() function
|
/hardware/invensense/6515/libsensors_iio/ |
D | CompassSensor.AKM.cpp | 48 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); in CompassSensor() 58 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); in ~CompassSensor()
|
D | PressureSensor.IIO.secondary.cpp | 96 res = write_sysfs_int(pressureSysFs.pressure_enable, en); in enable() 110 res = write_sysfs_int(pressureSysFs.pressure_rate, mDelay); in setDelay()
|
D | CompassSensor.IIO.primary.cpp | 151 write_sysfs_int(compassSysFs.in_timestamp_en, 1); in enable_iio_sysfs() 259 res = write_sysfs_int(compassSysFs.compass_x_fifo_enable, en); in enable() 262 res += write_sysfs_int(compassSysFs.compass_y_fifo_enable, en); in enable() 265 res += write_sysfs_int(compassSysFs.compass_z_fifo_enable, en); in enable() 281 return write_sysfs_int(compassSysFs.chip_enable, en); in masterEnable()
|
D | MPLSupport.h | 29 int write_sysfs_int(char*, int);
|
D | CompassSensor.IIO.9150.cpp | 147 res = write_sysfs_int(compassSysFs.compass_enable, en); in enable() 175 res += write_sysfs_int(compassSysFs.compass_fifo_enable, 0); in turnOffCompassFifo() 184 res += write_sysfs_int(compassSysFs.compass_fifo_enable, 1); in turnOnCompassFifo()
|
D | MPLSupport.cpp | 189 int write_sysfs_int(char *filename, int var) in write_sysfs_int() function
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/ |
D | mpu_iio.c | 250 ret = write_sysfs_int("in_accel_scale", dev_path, 0); in setup_dmp() 253 ret = write_sysfs_int("in_anglvel_scale", dev_path, 3); in setup_dmp() 256 ret = write_sysfs_int("sampling_frequency", dev_path, 200); in setup_dmp() 759 ret = write_sysfs_int("motion_lpa_freq", dev_dir_name, 2); in main() 804 ret = write_sysfs_int("length", buf_dir_name, buf_len * 2); in main()
|
D | iio_utils.h | 480 int write_sysfs_int(char *filename, char *basedir, int val) in write_sysfs_int() function
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
D | stress_iio.c | 230 ret = write_sysfs_int("in_accel_scale", dev_path, 0); in setup_dmp() 233 ret = write_sysfs_int("in_anglvel_scale", dev_path, 3); in setup_dmp() 236 ret = write_sysfs_int("sampling_frequency", sysfs_path, 200); in setup_dmp() 1038 ret = write_sysfs_int("length", buf_dir_name, buf_len*2); in main()
|
D | iio_utils.h | 479 int write_sysfs_int(char *filename, char *basedir, int val) in write_sysfs_int() function
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/ |
D | iio_utils.h | 480 int write_sysfs_int(char *filename, char *basedir, int val) in write_sysfs_int() function
|