/** ****************************************************************************** * @copyright Copyright (C), 2016-2022, ConvenientPower. Co., Ltd. * @file task_pd_apple.h * @version 1.0 * @author qing.cheng * @date 2023-03-31 * @brief Header file of TASK_PD_APPLE_H module. ****************************************************************************** */ #ifndef _TASK_PD_APPLE_H_ #define _TASK_PD_APPLE_H_ #include "core_comm.h" #include "drv_comm.h" #include "task_typec_func.h" #include "task_pd_phy_func.h" #include "task_pd_pe_func.h" #include "task_pd_prl_func.h" #include "drv_pd_phy.h" #include "pd_define.h" #define APPLE_SVID_H 0X05 #define APPLE_SVID_L 0XAC typedef enum { APPLE_UVMD_HADNKS = 1, APPLE_UVMD_REPLY_SN = 2,/*0x05AC0502 0x00000030*/ APPLE_UVMD_REPLY_SOFT_WARE = 3,/*0x05AC0402 0x000000B0*/ APPLE_UVMD_REPLY_NUM4 = 4,/*0x05AC0402 0x000000A0*/ APPLE_UVMD_REPLY_HARD_WARE = 5,/*0x05AC0402 0x000000C0*/ APPLE_UVMD_REPLY_ID = 6,/*0x05AC0402 0x00000090*/ APPLE_UVMD_REPLY_VMD = 7,/*0x05AC0402 0x00000050*/ APPLE_UVMD_REPLY_NAME_H = 8,/*0x05AC0402 0x00000070*/ APPLE_UVMD_REPLY_NAME_L = 9,/*0x05AC0102 0x00000084*/ APPLE_UVMD_REPLY_NUM10 = 10,/*0x05AC0102 0x00000004*/ APPLE_UVMD_REPLY_NUM11 = 11,/*0x05AC0102 0x80000005*/ } APPLE_UVDM_CMD_STATE_e; #if 0 /* * @brief PE_DFP_VDM_Mode_Exit_Request_call * @param atten_num * @param uvdm_header_data32 * pd_param * @note * @retval */ void pd_resp_apple_uvdm(uint8_t atten_num, uint32_t uvdm_header_data32, pd_param_s* pd_param); /* * @brief pd_apple_uvdm_send_Attention * @param port * @param cmd * @param uvdm_data32 * @param pd_param * @note * @retval null */ void pd_apple_uvdm_send_Attention(uint8_t port, uint8_t cmd, uint32_t uvdm_data32, pd_param_s* pd_param); /* * @brief PE_VDM_Attention_Request * @param port * @param pd_param * @note * @retval null */ void PE_VDM_Attention_Request(uint8_t port, pd_param_s* pd_param); #endif /* * @brief pd_apple_vdm_state_machine * @param pd_param * @note * @retval null */ void pd_apple_vdm_state_machine(uint8_t port, pd_param_s *pd_param); #endif