Lines Matching refs:fptr
897 FILE *fptr; in loadDMP() local
913 fptr = fopen(mpu.dmp_firmware, "w"); in loadDMP()
914 if(fptr == NULL) { in loadDMP()
917 if (inv_load_dmp(fptr) < 0 || fclose(fptr) < 0) { in loadDMP()
935 FILE *fptr; in inv_get_sensors_orientation() local
940 fptr = fopen(mpu.gyro_orient, "r"); in inv_get_sensors_orientation()
941 if (fptr != NULL) { in inv_get_sensors_orientation()
943 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in inv_get_sensors_orientation()
945 &om[6], &om[7], &om[8]) < 0 || fclose(fptr) < 0) { in inv_get_sensors_orientation()
968 fptr = fopen(mpu.accel_orient, "r"); in inv_get_sensors_orientation()
969 if (fptr != NULL) { in inv_get_sensors_orientation()
971 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in inv_get_sensors_orientation()
973 &om[6], &om[7], &om[8]) < 0 || fclose(fptr) < 0) { in inv_get_sensors_orientation()
6138 FILE* fptr = fopen(mpu.six_axis_q_value, "w"); in setInitial6QuatValue() local
6139 if(fptr == NULL) { in setInitial6QuatValue()
6142 if (fwrite(quat, 1, length, fptr) != length || fclose(fptr) < 0) { in setInitial6QuatValue()