1. 测试了IO拓展芯片TCA9554PWR,测试结果正常,测试通过

This commit is contained in:
Misaki
2025-08-24 19:11:42 +08:00
parent 8807542ff2
commit fa066408e2
10 changed files with 426 additions and 2 deletions
+22
View File
@@ -0,0 +1,22 @@
//
// Created by misaki on 2025/8/24.
//
#pragma once
#include <stdint.h>
#include "esp_err.h"
/**
* @brief TCA9554PWR 芯片功能综合测试入口
* 该函数会依次执行:
* 1. 初始化 I2C 及 TCA9554
* 2. 输出寄存器读写测试
* 3. 配置寄存器读写测试
* 4. 单管脚输出翻转测试
* 5. 8 位整体输出测试
* 6. 输入读取测试(需要把待测脚短暂拉高/拉低)
* @return ESP_OK 全部测试通过
* ESP_FAIL 任一测试失败
*/
esp_err_t EXIO_Test(void);