/hardware/invensense/libsensors_iio/software/core/mllite/linux/ |
ml_sysfs_helper.c | 16 static char sysfs_path[100]; variable 162 sprintf(sysfs_path, "%s%s", "/sys", tmp); 252 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu"); 258 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu/dmp_firmware"); 274 sprintf(key_path, "%s%s", sysfs_path, "/device/invensense/mpu/key");
|
/hardware/invensense/libsensors_iio/software/simple_apps/mpu_iio/ |
mpu_iio.c | 236 char sysfs_path[200]; local 240 sprintf(sysfs_path, "%s", dev_path); 241 printf("sysfs: %s\n", sysfs_path); 242 ret = write_sysfs_int_and_verify("power_state", sysfs_path, 1); 252 ret = write_sysfs_int("sampling_frequency", sysfs_path, 200); 255 ret = write_sysfs_int_and_verify("firmware_loaded", sysfs_path, 0); 264 printf("firmware_loaded=%d\n", read_sysfs_posint("firmware_loaded", sysfs_path)); 265 ret = write_sysfs_int_and_verify("in_accel_x_offset", sysfs_path, 0xabcd0000); 266 ret = write_sysfs_int_and_verify("in_accel_y_offset", sysfs_path, 0xffff0000); 267 ret = write_sysfs_int_and_verify("in_accel_z_offset", sysfs_path, 0xcdef0000) [all...] |
/hardware/invensense/libsensors_iio/software/simple_apps/self_test/ |
inv_self_test.c | 144 char sysfs_path[MAX_SYSFS_NAME_LEN]; local 163 inv_get_sysfs_path(sysfs_path); 165 sprintf(mpu.enable, "%s%s", sysfs_path, "/buffer/enable"); 166 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); 167 sprintf(mpu.dmp_on,"%s%s", sysfs_path, "/dmp_on"); 168 sprintf(mpu.self_test, "%s%s", sysfs_path, "/self_test"); 169 sprintf(mpu.temperature, "%s%s", sysfs_path, "/temperature"); 171 sprintf(mpu.gyro_enable, "%s%s", sysfs_path, "/gyro_enable"); 172 sprintf(mpu.gyro_x_bias, "%s%s", sysfs_path, "/in_anglvel_x_calibbias"); 173 sprintf(mpu.gyro_y_bias, "%s%s", sysfs_path, "/in_anglvel_y_calibbias") [all...] |
/hardware/invensense/libsensors_iio/software/simple_apps/gesture_test/ |
inv_gesture_test.c | 141 char sysfs_path[MAX_SYSFS_NAME_LEN]; local 160 inv_get_sysfs_path(sysfs_path); 162 sprintf(mpu.enable, "%s%s", sysfs_path, "/buffer/enable"); 163 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); 164 sprintf(mpu.dmp_on,"%s%s", sysfs_path, "/dmp_on"); 165 sprintf(mpu.dmp_int_on, "%s%s", sysfs_path, "/dmp_int_on"); 166 sprintf(mpu.self_test, "%s%s", sysfs_path, "/self_test"); 167 sprintf(mpu.dmp_firmware, "%s%s", sysfs_path, "/dmp_firmware"); 168 sprintf(mpu.firmware_loaded, "%s%s", sysfs_path, "/firmware_loaded"); 169 sprintf(mpu.display_orientation_on, "%s%s", sysfs_path, "/display_orientation_on") [all...] |