IMU FIFO 샘플 대기 함수 추가

- 샘플 부족 방지 안전장치
This commit is contained in:
2026-07-15 15:45:08 +09:00
parent 4ed23a103c
commit 7cccee7cf2
3 changed files with 51 additions and 1 deletions
+7
View File
@@ -65,6 +65,13 @@ int imu_read_temperature_cdeg(int16_t *temp_cdeg);
*/
int imu_fifo_start(void);
/**
* @brief Wait until the running FIFO has at least target_samples records.
*
* @return 0 if the target is reached, -ETIMEDOUT on timeout, or a negative error.
*/
int imu_fifo_wait_samples(uint16_t target_samples, uint32_t timeout_ms);
/**
* @brief 실행 중인 FIFO에서 최신 샘플 읽기
*