Lines Matching refs:temp
358 if (sensors.temp.status & INV_SENSOR_ON) {
359 if (timestamp < sensors.temp.timestamp)
360 timestamp = sensors.temp.timestamp;
535 if (sensors.temp.calibrated[0])
536 inv_data_builder.save.gyro_temp = sensors.temp.calibrated[0];
550 * @param[in] temp
553 void inv_get_gyro_bias(long *bias, long *temp)
558 if (temp != NULL)
559 temp[0] = inv_data_builder.save.gyro_temp;
564 * @param[out] temp Temperature where 1 C = 2^16
566 void inv_get_accel_bias(long *bias, long *temp)
571 if (temp != NULL)
572 temp[0] = inv_data_builder.save.accel_temp;
695 * @param[in] temp Temperature data in q16 format.
700 inv_error_t inv_build_temp(const long temp, inv_time_t timestamp)
706 fwrite(&temp, sizeof(temp), 1, inv_data_builder.file);
710 sensors.temp.calibrated[0] = temp;
711 sensors.temp.status |= INV_NEW_DATA | INV_RAW_DATA | INV_SENSOR_ON;
712 sensors.temp.timestamp_prev = sensors.temp.timestamp;
713 sensors.temp.timestamp = timestamp;
784 sensors.temp.status = 0;
901 if (sensors.temp.status & INV_NEW_DATA)
940 if (sensors.temp.status & INV_NEW_DATA) {
941 sensors.temp.status |= INV_CONTIGUOUS;
942 current_time = MAX(current_time, sensors.temp.timestamp);
960 if (inv_delta_time_ms(current_time, sensors.temp.timestamp) >= 2000)
968 sensors.temp.status &= ~INV_NEW_DATA;
1056 data[0] = sensors.temp.calibrated[0];
1058 *timestamp = sensors.temp.timestamp;
1060 *accuracy = sensors.temp.accuracy;