You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.0 KiB
79 lines
2.0 KiB
/**
|
|
******************************************************************************
|
|
* @copyright Copyright (C), 2016-2022, ConvenientPower. Co., Ltd.
|
|
* @file pd_apple.h
|
|
* @version 1.0
|
|
* @author qing.cheng
|
|
* @date 2023-05-17
|
|
* @brief Header file of PD_APPLE_H module.
|
|
******************************************************************************
|
|
*/
|
|
#ifndef _PD_APPLE_H_
|
|
#define _PD_APPLE_H_
|
|
|
|
|
|
#include "core_comm.h"
|
|
#include "drv_comm.h"
|
|
#include "task_pd_apple.h"
|
|
#include "pd_protocol.h"
|
|
|
|
#define APPLE_UVDM_SUPPORT 1
|
|
|
|
#define Attention_Command1 0x05ac0005
|
|
#define Attention_Command1_1 0x05ac0105
|
|
#define Attention_Command2 0x05ac0102
|
|
#define Attention_Command3 0x05ac0602
|
|
#define Attention_Command4 0x05ac0402
|
|
#define Attention_Command5 0x05ac0612
|
|
#define Attention_Command6 0x05ac0412
|
|
#define Attention_Command7 0x05ac0302
|
|
#define Attention_Command8 0x05ac00C2
|
|
#define Attention_Command9 0x05ac0502
|
|
|
|
#define SN_UVDM1 0x32544E46
|
|
#define SN_UVDM2 0x31313732
|
|
#define SN_UVDM3 0x50475234
|
|
#define SN_UVDM4 0x4232584C
|
|
#define SN_UVDM5 0x00000050
|
|
|
|
#define FW_UVDM1 0x34303130
|
|
#define FW_UVDM2 0x34343030
|
|
|
|
#define NUM_UVDM1 0x35307830
|
|
#define NUM_UVDM2 0x00004341
|
|
|
|
#define HW_UVDM1 0x00302E31
|
|
|
|
#define ID_UVDM1 0x30377830
|
|
#define ID_UVDM2 0x00003430
|
|
|
|
#define MINGCHENG_UVDM1 0x20573032
|
|
#define MINGCHENG_UVDM2 0x2d425355
|
|
#define MINGCHENG_UVDM3 0x6f502043
|
|
#define MINGCHENG_UVDM4 0x20726577
|
|
#define MINGCHENG_UVDM5 0x70616441
|
|
#define MINGCHENG_UVDM6 0x00726574
|
|
|
|
/*
|
|
* @brief PE_APPLE_UVDM_call_patch
|
|
* @param pd_param
|
|
* @note
|
|
* @retval null
|
|
*/
|
|
void PE_APPLE_UVDM_call_patch(uint8_t port, pd_param_s* pd_param);
|
|
/*
|
|
* @brief pd_apple_state_machine
|
|
* @param pd_param
|
|
* @note
|
|
* @retval null
|
|
*/
|
|
void pd_apple_state_machine(uint8_t port, pd_param_s *pd_param);
|
|
|
|
/*
|
|
* @brief pd_reset_apple_state_info
|
|
* @param pd_param
|
|
* @note
|
|
* @retval null
|
|
*/
|
|
void pd_reset_apple_state_info(uint8_t port, pd_param_s* pd_param);
|
|
#endif
|
|
|