nor / sou roll

This commit is contained in:
wmano
2025-11-23 00:56:55 +08:00
parent 7e463e56ad
commit 3a413f56a3
12 changed files with 665 additions and 136 deletions
+40
View File
@@ -161,6 +161,46 @@ struct chrg_sink_t {
*****************************************************************/
extern int sink_get_vc (rt_uint16_t vol, rt_uint16_t cur);
/*****************************************************************
函数名称: sink_get_pd
函数描述: sink pd 协议查询请求
输入参数: -
输出参数: -
返回说明: <0: 错误 >0:发送长度
其它说明: -
*****************************************************************/
extern int sink_get_pd (void);
/*****************************************************************
函数名称: sink_set_cc_line
函数描述: sink 设置 cc 线
输入参数: line:线
输出参数: -
返回说明: <0: 错误 >0:发送长度
其它说明: -
*****************************************************************/
extern int sink_set_cc_line (rt_uint8_t line);
/*****************************************************************
函数名称: sink_set_cc_lvl
函数描述: sink 设置 cc 等级
输入参数: lvl:等级
输出参数: -
返回说明: <0: 错误 >0:发送长度
其它说明: -
*****************************************************************/
extern int sink_set_cc_lvl (rt_uint8_t lvl);
/*****************************************************************
函数名称: sink_set_pd
函数描述: sink 设置 PD 协议
输入参数: pd:协议命令号 *buf:协议数据,5字节
输出参数: -
返回说明: <0: 错误 >0:发送长度
其它说明: -
*****************************************************************/
extern int sink_set_pd (rt_uint8_t pd, rt_uint8_t *buf);
#endif