Home
last modified time | relevance | path

Searched refs:tempFp (Results 1 – 5 of 5) sorted by relevance

/hardware/invensense/65xx/libsensors_iio/
DCompassSensor.IIO.primary.cpp146 FILE *tempFp = NULL; in enable_iio_sysfs() local
155 tempFp = fopen(compassSysFs.buffer_length, "w"); in enable_iio_sysfs()
156 if (tempFp == NULL) { in enable_iio_sysfs()
159 if (fprintf(tempFp, "%d", IIO_BUFFER_LENGTH) < 0 || fclose(tempFp) < 0) { in enable_iio_sysfs()
DMPLSensor.cpp689 FILE *tempFp = NULL; in enable_iio_sysfs() local
696 tempFp = fopen(mpu.in_timestamp_en, "w"); in enable_iio_sysfs()
697 if (tempFp == NULL) { in enable_iio_sysfs()
700 if(fprintf(tempFp, "%d", 1) < 0 || fclose(tempFp) < 0) { in enable_iio_sysfs()
707 tempFp = fopen(mpu.buffer_length, "w"); in enable_iio_sysfs()
708 if (tempFp == NULL) { in enable_iio_sysfs()
711 if (fprintf(tempFp, "%d", IIO_BUFFER_LENGTH) < 0 || fclose(tempFp) < 0) { in enable_iio_sysfs()
718 tempFp = fopen(mpu.chip_enable, "w"); in enable_iio_sysfs()
719 if (tempFp == NULL) { in enable_iio_sysfs()
722 if (fprintf(tempFp, "%d", 1) < 0 || fclose(tempFp) < 0) { in enable_iio_sysfs()
/hardware/invensense/6515/libsensors_iio/
DCompassSensor.IIO.primary.cpp146 FILE *tempFp = NULL; in enable_iio_sysfs() local
155 tempFp = fopen(compassSysFs.buffer_length, "w"); in enable_iio_sysfs()
156 if (tempFp == NULL) { in enable_iio_sysfs()
159 if (fprintf(tempFp, "%d", IIO_BUFFER_LENGTH) < 0 || fclose(tempFp) < 0) { in enable_iio_sysfs()
DMPLSensor.cpp590 FILE *tempFp = NULL; in enable_iio_sysfs() local
597 tempFp = fopen(mpu.in_timestamp_en, "w"); in enable_iio_sysfs()
598 if (tempFp == NULL) { in enable_iio_sysfs()
601 if(fprintf(tempFp, "%d", 1) < 0) { in enable_iio_sysfs()
604 if(fclose(tempFp) < 0) { in enable_iio_sysfs()
611 tempFp = fopen(mpu.buffer_length, "w"); in enable_iio_sysfs()
612 if (tempFp == NULL) { in enable_iio_sysfs()
615 if (fprintf(tempFp, "%d", IIO_BUFFER_LENGTH) < 0) { in enable_iio_sysfs()
618 if (fclose(tempFp) < 0) { in enable_iio_sysfs()
625 tempFp = fopen(mpu.chip_enable, "w"); in enable_iio_sysfs()
[all …]
/hardware/invensense/60xx/libsensors_iio/
DMPLSensor.cpp374 FILE *tempFp = NULL; in enable_iio_sysfs() local
382 tempFp = fopen(mpu.trigger_name, "r"); in enable_iio_sysfs()
383 if (tempFp == NULL) { in enable_iio_sysfs()
386 if (fscanf(tempFp, "%s", iio_trigger_name) < 0) { in enable_iio_sysfs()
389 fclose(tempFp); in enable_iio_sysfs()
394 tempFp = fopen(mpu.current_trigger, "w"); in enable_iio_sysfs()
395 if (tempFp == NULL) { in enable_iio_sysfs()
398 if (fprintf(tempFp, "%s", iio_trigger_name) < 0 || fclose(tempFp) < 0) { in enable_iio_sysfs()