Home
last modified time | relevance | path

Searched refs:write_sysfs_int (Results 1 – 20 of 20) sorted by relevance

/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/
Dinv_self_test.c118 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/
Dinv_gesture_test.c130 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/
DMPLSensor.cpp1045 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 …]
DCompassSensor.AKM.cpp48 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()
DCompassSensor.IIO.primary.cpp151 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()
DPressureSensor.IIO.secondary.cpp97 res = write_sysfs_int(pressureSysFs.pressure_enable, en); in enable()
111 res = write_sysfs_int(pressureSysFs.pressure_rate, mDelay); in setDelay()
DMPLSupport.h30 int write_sysfs_int(char*, int);
DCompassSensor.IIO.9150.cpp145 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()
DMPLSupport.cpp189 int write_sysfs_int(char *filename, int var) in write_sysfs_int() function
/hardware/invensense/6515/libsensors_iio/
DCompassSensor.AKM.cpp48 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()
DPressureSensor.IIO.secondary.cpp96 res = write_sysfs_int(pressureSysFs.pressure_enable, en); in enable()
110 res = write_sysfs_int(pressureSysFs.pressure_rate, mDelay); in setDelay()
DCompassSensor.IIO.primary.cpp151 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()
DMPLSupport.h29 int write_sysfs_int(char*, int);
DCompassSensor.IIO.9150.cpp147 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()
DMPLSupport.cpp189 int write_sysfs_int(char *filename, int var) in write_sysfs_int() function
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Dmpu_iio.c250 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()
Diio_utils.h480 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/
Dstress_iio.c230 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()
Diio_utils.h479 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/
Diio_utils.h480 int write_sysfs_int(char *filename, char *basedir, int val) in write_sysfs_int() function