/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/ |
D | inv_gesture_test.c | 176 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local 195 inv_get_sysfs_path(sysfs_path); in inv_init_sysfs_attributes() 197 sprintf(mpu.name, "%s%s", sysfs_path, "/name"); in inv_init_sysfs_attributes() 198 sprintf(mpu.enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes() 199 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); in inv_init_sysfs_attributes() 200 sprintf(mpu.dmp_on,"%s%s", sysfs_path, "/dmp_on"); in inv_init_sysfs_attributes() 201 sprintf(mpu.dmp_int_on, "%s%s", sysfs_path, "/dmp_int_on"); in inv_init_sysfs_attributes() 202 sprintf(mpu.dmp_firmware, "%s%s", sysfs_path, "/dmp_firmware"); in inv_init_sysfs_attributes() 203 sprintf(mpu.firmware_loaded, "%s%s", sysfs_path, "/firmware_loaded"); in inv_init_sysfs_attributes() 207 sysfs_path, "/event_display_orientation"); in inv_init_sysfs_attributes() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/ |
D | inv_self_test.c | 167 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local 186 sprintf(sysfs_path, "%s", IIO_SYSFS_PATH); in inv_init_sysfs_attributes() 188 sprintf(mpu.name, "%s%s", sysfs_path, "/name"); in inv_init_sysfs_attributes() 189 sprintf(mpu.enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes() 190 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); in inv_init_sysfs_attributes() 191 sprintf(mpu.dmp_on,"%s%s", sysfs_path, "/dmp_on"); in inv_init_sysfs_attributes() 192 sprintf(mpu.self_test, "%s%s", sysfs_path, "/self_test"); in inv_init_sysfs_attributes() 193 sprintf(mpu.temperature, "%s%s", sysfs_path, "/temperature"); in inv_init_sysfs_attributes() 195 sprintf(mpu.gyro_enable, "%s%s", sysfs_path, "/gyro_enable"); in inv_init_sysfs_attributes() 197 sysfs_path, "/in_anglvel_x_calibbias"); in inv_init_sysfs_attributes() [all …]
|
/hardware/invensense/65xx/libsensors_iio/ |
D | CompassSensor.IIO.primary.cpp | 487 char sysfs_path[MAX_SYSFS_NAME_LEN], tbuf[2]; in inv_init_sysfs_attributes() local 506 sprintf(sysfs_path, "%s%d", "/sys/bus/iio/devices/iio:device", in inv_init_sysfs_attributes() 513 sprintf(sysfs_path, "%s%s", "sys/class/input/input", tbuf); in inv_init_sysfs_attributes() 514 strcat(sysfs_path, "/ak8975"); in inv_init_sysfs_attributes() 516 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes() 517 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes() 518 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes() 519 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes() 521 sprintf(compassSysFs.chip_enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes() 522 sprintf(compassSysFs.in_timestamp_en, "%s%s", sysfs_path, "/scan_elements/in_timestamp_en"); in inv_init_sysfs_attributes() [all …]
|
D | CompassSensor.IIO.9150.cpp | 350 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local 363 memset(sysfs_path, 0, sizeof(sysfs_path)); in inv_init_sysfs_attributes() 374 inv_get_sysfs_path(sysfs_path); in inv_init_sysfs_attributes() 377 if (strcmp(sysfs_path, "") == 0 || strcmp(iio_trigger_path, "") == 0) in inv_init_sysfs_attributes() 384 sprintf(sysfs_path, "%s%s", "sys/class/input/input", tbuf); in inv_init_sysfs_attributes() 385 strcat(sysfs_path, "/ak8975"); in inv_init_sysfs_attributes() 387 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes() 388 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes() 389 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes() 390 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes() [all …]
|
D | MPLSupport.cpp | 267 char sysfs_path[MAX_SYSFS_NAME_LEN]; in dump_dmp_img() local 270 inv_get_sysfs_path(sysfs_path); in dump_dmp_img() 271 sprintf(dmp_path, "%s%s", sysfs_path, "/dmp_firmware"); in dump_dmp_img() 280 int read_sysfs_dir(bool fileMode, char *sysfs_path) in read_sysfs_dir() argument 293 dp = opendir (sysfs_path); in read_sysfs_dir() 298 LOGV_IF(0,"HAL DEBUG: opened directory %s", sysfs_path); in read_sysfs_dir() 306 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir() 328 LOGI("HAL DEBUG: could not open directory %s", sysfs_path); in read_sysfs_dir()
|
D | MPLSensor.cpp | 5024 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local 5030 memset(sysfs_path, 0, sizeof(sysfs_path)); in inv_init_sysfs_attributes() 5048 inv_get_sysfs_path(sysfs_path); in inv_init_sysfs_attributes() 5050 if (strcmp(sysfs_path, "") == 0) in inv_init_sysfs_attributes() 5053 memcpy(mSysfsPath, sysfs_path, sizeof(sysfs_path)); in inv_init_sysfs_attributes() 5054 sprintf(mpu.key, "%s%s", sysfs_path, "/key"); in inv_init_sysfs_attributes() 5055 sprintf(mpu.chip_enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes() 5056 sprintf(mpu.buffer_length, "%s%s", sysfs_path, "/buffer/length"); in inv_init_sysfs_attributes() 5057 sprintf(mpu.master_enable, "%s%s", sysfs_path, "/master_enable"); in inv_init_sysfs_attributes() 5058 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); in inv_init_sysfs_attributes() [all …]
|
D | PressureSensor.IIO.secondary.cpp | 49 PressureSensor::PressureSensor(const char *sysfs_path) in PressureSensor() argument 55 mSysfsPath = sysfs_path; in PressureSensor()
|
D | MPLSupport.h | 35 int read_sysfs_dir(bool fileMode, char *sysfs_path);
|
D | PressureSensor.IIO.secondary.h | 40 PressureSensor(const char *sysfs_path);
|
/hardware/invensense/60xx/libsensors_iio/ |
D | CompassSensor.IIO.9150.cpp | 335 char sysfs_path[MAX_SYSFS_NAME_LEN], iio_trigger_path[MAX_SYSFS_NAME_LEN], tbuf[2]; in inv_init_sysfs_attributes() local 354 if(INV_SUCCESS != inv_get_sysfs_path(sysfs_path)) { in inv_init_sysfs_attributes() 365 sprintf(sysfs_path, "%s%s", "sys/class/input/input", tbuf); in inv_init_sysfs_attributes() 366 strcat(sysfs_path, "/ak8975"); in inv_init_sysfs_attributes() 368 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes() 369 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes() 370 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes() 371 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes() 373 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/compass_enable"); in inv_init_sysfs_attributes() 374 sprintf(compassSysFs.compass_x_fifo_enable, "%s%s", sysfs_path, "/scan_elements/in_magn_x_en"); in inv_init_sysfs_attributes() [all …]
|
D | MPLSensor.cpp | 2674 char sysfs_path[MAX_SYSFS_NAME_LEN], iio_trigger_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local 2696 if(INV_SUCCESS != inv_get_sysfs_path(sysfs_path)) { in inv_init_sysfs_attributes() 2706 sprintf(mpu.key, "%s%s", sysfs_path, "/key"); in inv_init_sysfs_attributes() 2707 sprintf(mpu.chip_enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes() 2708 sprintf(mpu.buffer_length, "%s%s", sysfs_path, "/buffer/length"); in inv_init_sysfs_attributes() 2709 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); in inv_init_sysfs_attributes() 2710 sprintf(mpu.in_timestamp_en, "%s%s", sysfs_path, "/scan_elements/in_timestamp_en"); in inv_init_sysfs_attributes() 2712 sprintf(mpu.current_trigger, "%s%s", sysfs_path, "/trigger/current_trigger"); in inv_init_sysfs_attributes() 2714 sprintf(mpu.dmp_firmware, "%s%s", sysfs_path,"/dmp_firmware"); in inv_init_sysfs_attributes() 2715 sprintf(mpu.firmware_loaded,"%s%s", sysfs_path, "/firmware_loaded"); in inv_init_sysfs_attributes() [all …]
|
/hardware/invensense/6515/libsensors_iio/ |
D | CompassSensor.IIO.primary.cpp | 510 char sysfs_path[MAX_SYSFS_NAME_LEN], tbuf[2]; in inv_init_sysfs_attributes() local 529 sprintf(sysfs_path, "%s%d", "/sys/bus/iio/devices/iio:device", in inv_init_sysfs_attributes() 536 sprintf(sysfs_path, "%s%s", "sys/class/input/input", tbuf); in inv_init_sysfs_attributes() 537 strcat(sysfs_path, "/ak8975"); in inv_init_sysfs_attributes() 539 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes() 540 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes() 541 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes() 542 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes() 544 sprintf(compassSysFs.chip_enable, "%s%s", sysfs_path, "/buffer/enable"); in inv_init_sysfs_attributes() 545 sprintf(compassSysFs.in_timestamp_en, "%s%s", sysfs_path, "/scan_elements/in_timestamp_en"); in inv_init_sysfs_attributes() [all …]
|
D | CompassSensor.IIO.9150.cpp | 372 char sysfs_path[MAX_SYSFS_NAME_LEN]; in inv_init_sysfs_attributes() local 385 memset(sysfs_path, 0, sizeof(sysfs_path)); in inv_init_sysfs_attributes() 396 inv_get_sysfs_path(sysfs_path); in inv_init_sysfs_attributes() 403 sprintf(sysfs_path, "%s%s", "sys/class/input/input", tbuf); in inv_init_sysfs_attributes() 404 strcat(sysfs_path, "/ak8975"); in inv_init_sysfs_attributes() 406 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/enable"); in inv_init_sysfs_attributes() 407 sprintf(compassSysFs.compass_rate, "%s%s", sysfs_path, "/rate"); in inv_init_sysfs_attributes() 408 sprintf(compassSysFs.compass_scale, "%s%s", sysfs_path, "/scale"); in inv_init_sysfs_attributes() 409 sprintf(compassSysFs.compass_orient, "%s%s", sysfs_path, "/compass_matrix"); in inv_init_sysfs_attributes() 411 sprintf(compassSysFs.compass_enable, "%s%s", sysfs_path, "/compass_enable"); in inv_init_sysfs_attributes() [all …]
|
D | MPLSupport.cpp | 267 char sysfs_path[MAX_SYSFS_NAME_LEN]; in dump_dmp_img() local 270 inv_get_sysfs_path(sysfs_path); in dump_dmp_img() 271 sprintf(dmp_path, "%s%s", sysfs_path, "/dmp_firmware"); in dump_dmp_img() 280 int read_sysfs_dir(bool fileMode, char *sysfs_path) in read_sysfs_dir() argument 293 dp = opendir (sysfs_path); in read_sysfs_dir() 298 LOGV_IF(0,"HAL DEBUG: opened directory %s", sysfs_path); in read_sysfs_dir() 306 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir() 328 LOGI("HAL DEBUG: could not open directory %s", sysfs_path); in read_sysfs_dir()
|
D | MPLSensor.cpp | 5068 char sysfs_path[MAX_SYSFS_NAME_LEN]; local 5074 memset(sysfs_path, 0, sizeof(sysfs_path)); 5092 inv_get_sysfs_path(sysfs_path); 5094 memcpy(mSysfsPath, sysfs_path, sizeof(sysfs_path)); 5095 sprintf(mpu.key, "%s%s", sysfs_path, "/key"); 5096 sprintf(mpu.chip_enable, "%s%s", sysfs_path, "/buffer/enable"); 5097 sprintf(mpu.buffer_length, "%s%s", sysfs_path, "/buffer/length"); 5098 sprintf(mpu.master_enable, "%s%s", sysfs_path, "/master_enable"); 5099 sprintf(mpu.power_state, "%s%s", sysfs_path, "/power_state"); 5101 sprintf(mpu.in_timestamp_en, "%s%s", sysfs_path, [all …]
|
D | PressureSensor.IIO.secondary.cpp | 49 PressureSensor::PressureSensor(const char *sysfs_path) in PressureSensor() argument 55 mSysfsPath = sysfs_path; in PressureSensor()
|
D | MPLSupport.h | 34 int read_sysfs_dir(bool fileMode, char *sysfs_path);
|
D | PressureSensor.IIO.secondary.h | 40 PressureSensor(const char *sysfs_path);
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
D | stress_iio.c | 221 char sysfs_path[200]; in setup_dmp() local 224 sprintf(sysfs_path, "%s", dev_path); in setup_dmp() 225 printf("sysfs: %s\n", sysfs_path); in setup_dmp() 226 ret = write_sysfs_int_and_verify("power_state", sysfs_path, 1); in setup_dmp() 236 ret = write_sysfs_int("sampling_frequency", sysfs_path, 200); in setup_dmp() 239 ret = write_sysfs_int_and_verify("firmware_loaded", sysfs_path, 0); in setup_dmp() 248 printf("firmware_loaded=%d\n", read_sysfs_posint("firmware_loaded", sysfs_path)); in setup_dmp() 249 ret = write_sysfs_int_and_verify("dmp_on", sysfs_path, 1); in setup_dmp() 252 ret = write_sysfs_int_and_verify("dmp_int_on", sysfs_path, 1); in setup_dmp() 260 ret = write_sysfs_int_and_verify("pedometer_int_on", sysfs_path, 1); in setup_dmp() [all …]
|
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 16 static char sysfs_path[100]; variable 162 sprintf(sysfs_path, "%s%s", "/sys", tmp); in parsing_proc_input() 252 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu"); in process_sysfs_request() 258 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu/dmp_firmware"); in process_sysfs_request() 274 sprintf(key_path, "%s%s", sysfs_path, "/device/invensense/mpu/key"); in process_sysfs_request()
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 29 static char sysfs_path[100]; variable 180 sprintf(sysfs_path, "%s%s", "/sys", tmp); in parsing_proc_input() 270 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu"); in process_sysfs_request() 276 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu/dmp_firmware"); in process_sysfs_request() 292 sprintf(key_path, "%s%s", sysfs_path, "/device/invensense/mpu/key"); in process_sysfs_request()
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 23 static char sysfs_path[100]; variable 173 sprintf(sysfs_path, "%s%s", "/sys", tmp); in parsing_proc_input() 263 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu"); in process_sysfs_request() 269 sprintf(data, "%s%s", sysfs_path, "/device/invensense/mpu/dmp_firmware"); in process_sysfs_request() 285 sprintf(key_path, "%s%s", sysfs_path, "/device/invensense/mpu/key"); in process_sysfs_request()
|