toy-hardware/main/boards/common/qmi8658a_test.h

28 lines
577 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef QMI8658A_TEST_H
#define QMI8658A_TEST_H
#include "driver/i2c_master.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief 运行QMI8658A鲁棒性测试
*
* 该函数执行一系列测试来验证QMI8658A驱动的错误处理和恢复能力
* - 正常初始化测试
* - I2C通信错误恢复测试
* - 芯片ID错误检测测试
* - 配置验证测试
* - 数据读取错误处理测试
*
* @param i2c_bus I2C总线句柄
*/
void run_qmi8658a_robustness_tests(i2c_master_bus_handle_t i2c_bus);
#ifdef __cplusplus
}
#endif
#endif // QMI8658A_TEST_H