add more files

This commit is contained in:
wmano
2025-08-30 23:48:55 +08:00
parent e26e47548f
commit 050eb19fc8
33 changed files with 820 additions and 479 deletions
+37
View File
@@ -0,0 +1,37 @@
#ifndef __CHRG_SINK_H__
#define __CHRG_SINK_H__
#include <rtthread.h>
#define SINK_ID 0x01
#define SINK_REG_GET_VOLTAGE 0x20 // 读取变电压板电压
#define SINK_REG_GET_PD 0x13 // 读取源端的PD协议数据
#define SINK_REG_SET_CC 0x17 // 设置CC线
#define SINK_REG_SET_LEVEL 0x16 // 设置CC线电平
// 设置快充协议
#define SINK_REG_SET_QC2 0xF8 // QC2.0
#define SINK_REG_SET_QC3 0xF6 // QC3.0
#define SINK_REG_SET_FCP 0xF2 // FCP
#define SINK_REG_SET_AFC 0xF9 // AFC
#define SINK_REG_SET_SCP 0xF3 // SCP
#define SINK_REG_SET_VIVO 0xFD // VIVO
#define SINK_REG_SET_TFC 0xF7 // TFC 传音
#define SINK_REG_SET_PD0 0xFB // PD0 手动/自动
#define SINK_REG_SET_PPS 0xFC // PPS 手动/自动
#define SINK_REG_SET_PD3P1 0xE1 // PD3.1
#define SINK_REG_SET_UFCS 0xE0 // UFCS
#define SINK_REG_SET_VOOC 0xE2 // VOOC
#define SINK_REG_SET_AVS 0xE3 // AVS
struct chrg_sink_t {
rt_uint8_t type;
};
#endif