Lines Matching refs:fptr
167 FILE *fptr; in MPLSensor() local
839 FILE *fptr; in loadDMP() local
854 fptr = fopen(mpu.dmp_firmware, "w"); in loadDMP()
855 if(fptr == NULL) { in loadDMP()
858 if (inv_load_dmp(fptr) < 0) { in loadDMP()
863 if (fclose(fptr) < 0) { in loadDMP()
879 FILE *fptr; in inv_get_sensors_orientation() local
884 fptr = fopen(mpu.gyro_orient, "r"); in inv_get_sensors_orientation()
885 if (fptr != NULL) { in inv_get_sensors_orientation()
887 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in inv_get_sensors_orientation()
907 if (fclose(fptr) < 0) { in inv_get_sensors_orientation()
915 fptr = fopen(mpu.accel_orient, "r"); in inv_get_sensors_orientation()
916 if (fptr != NULL) { in inv_get_sensors_orientation()
918 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in inv_get_sensors_orientation()
938 if (fclose(fptr) < 0) { in inv_get_sensors_orientation()
6661 FILE* fptr = fopen(mpu.six_axis_q_value, "w"); local
6662 if(fptr == NULL) {
6665 if (fwrite(quat, 1, length, fptr) != length) {
6670 if (fclose(fptr) < 0) {