PDStack Middleware Library
cy_stc_pdstack_pe_status_t Struct Reference

Description

Structure to hold the policy engine status.

Data Fields

cy_stc_pd_packet_extd_t * rcvdPtr
 Pointer to the received packet. More...
 
cy_stc_pd_packet_extd_t rcvdPkt
 Currently received packet. More...
 
cy_stc_pdstack_pd_packet_t vdmPkt
 Eval VDM local buffer. More...
 
cy_stc_pdstack_pd_packet_t dpmResp
 Stores the DPM command response. More...
 
cy_stc_pdstack_pd_packet_t srcCap
 Stores the current source cap received. More...
 
cy_pd_pd_do_t tempDo
 Temporary buffer for sending VDM commands. More...
 
app_resp_t appResp
 Temporary buffer for storing APP response. More...
 
vdm_resp_t vdmResp
 VDM response from APP stored here. More...
 
cy_stc_pdstack_dpm_pd_cmd_buf_t vsBuf
 VCONN swap command buffer. More...
 
cy_stc_pdstack_dpm_pd_cmd_buf_t cblBuf
 Cable command buffer. More...
 
uint8_t hardResetCount
 Hard reset counter. More...
 
uint8_t srcCapCount
 Source capability counter. More...
 
uint8_t cblDscIdCount
 CBL dsc id count. More...
 
bool prSwap
 Indicates power role swap going on. More...
 
uint16_t prSwapCount
 Counts PR swap requests if VCONN swap is pending. More...
 
bool snkGoToMin
 Indicates go to min request received from the source. More...
 
bool srcGoToMin
 Indicates go to min needs to be sent by the source (requested by dpm). More...
 
bool isVconnSwapActive
 Indicates VCONN swap needs to be performed. More...
 
uint8_t vsCount
 Current count of VCONN swap tries. More...
 
bool vsWait
 Flag to indicate waiting for the response. More...
 
pd_ams_type_t amsType
 Flag to indicate AMS is continued from the previous transition. More...
 
cy_en_pd_sop_t sendMsgSop
 Stores send message sop type. More...
 
cy_en_pdstack_pd_msg_class_t sendMsgClass
 Stores send message class. More...
 
uint8_t sendMsgType
 Sends message type. More...
 
uint8_t sendMsgCount
 Sends message count. More...
 
cy_pdstack_extd_hdr_t sendextdhdr
 Sends extended header. More...
 
uint16_t sendMsgTimeout
 Sends message timeout. More...
 
void * sendMsgPtr
 Sends message data pointer. More...
 
cy_en_pdstack_pd_msg_class_t expMsgClass
 Stores expected message class. More...
 
uint32_t expMsgMask
 Expected message mask. More...
 
uint16_t expMsgLen
 Expected message length. More...
 
cy_en_pdstack_app_req_status_t appReqRslt
 Temporary buffer for APP req response. More...
 
cy_stc_pdstack_contract_t contract
 Temporary contract status. More...
 
cy_pd_pd_do_t snkRdo
 Temporary rdo sent by the sink. More...
 
cy_pd_pd_do_t snkSelPdo
 Temporary selected pdo (among source cap) by the sink. More...
 
cy_pd_pd_do_t srcSelPdo
 Temporary selected pdo (among source cap) of the source. More...
 
cy_en_pdstack_app_req_status_t swapEvtResp
 Temporary store for the status of app swap complete event. More...
 
cy_stc_pdstack_pd_contract_info_t contractEvtResp
 Temporary store for app PD contract event status. More...
 
cy_en_pd_sop_t sopType
 Temporary variable to hold sop type. More...
 
bool psHrDelay
 Flag to indicate PSHardResetDelay required. More...
 
bool sendSrcCapDebounce
 Flag determines srccap start debounce in progress. More...
 
cy_en_pd_ctrl_msg_t swapType
 Store received/sent swap type. More...
 
bool specRevDetermined
 Flag to indicate spec rev has been determined. More...
 
bool chunkDetermined
 Flag to indicate spec rev has been determined. More...
 
cy_en_pdstack_extd_msg_t autoExtdMsgType
 Temporary variable to hold extended message type to send. More...
 
cy_en_pdstack_ams_type_t amsTypeTemp
 Temporary store AMS type. More...
 
bool getSnkCapWait
 Flag to indicate waiting for the response. More...
 
bool isGetSnkCapActive
 Indicates get sink cap needs to be performed. More...
 
uint8_t getSnkCapCount
 Current count of get sink cap tries. More...
 
uint8_t usb4DataResetState
 Stores USB4 data reset state. More...
 
bool pePsrcEnDelayed
 Flag indicating PSRC enable call has been delayed. More...
 
volatile bool peSendHrPending
 Flag that indicates that hard reset sending is pending. More...
 
cy_pd_pd_do_t eprEnterRespDo
 Buffer that holds EPR enter mode response data object. More...
 
uint8_t eprState
 Variable to hold the EPR state. More...
 
bool eprMultiMessageFlag
 Flag that indicates whether EPR multi-messages are active. More...
 
bool eprSendcapInSpr
 Flag that indicates whether to send PDO in SPR. More...
 
uint8_t eprSnkExtdChunkBuffer [26]
 Buffer that holds the EPR sink extended messages/responses. More...
 
uint8_t eprChunkCount
 EPR chunked message count. More...
 
cy_stc_pdstack_dpm_pd_cmd_buf_t peCmdBuf
 PD command buffer to send command from policy engine. More...
 

Field Documentation

◆ rcvdPtr

cy_stc_pd_packet_extd_t* cy_stc_pdstack_pe_status_t::rcvdPtr

Pointer to the received packet.

◆ rcvdPkt

cy_stc_pd_packet_extd_t cy_stc_pdstack_pe_status_t::rcvdPkt

Currently received packet.

◆ vdmPkt

cy_stc_pdstack_pd_packet_t cy_stc_pdstack_pe_status_t::vdmPkt

Eval VDM local buffer.

◆ dpmResp

cy_stc_pdstack_pd_packet_t cy_stc_pdstack_pe_status_t::dpmResp

Stores the DPM command response.

◆ srcCap

cy_stc_pdstack_pd_packet_t cy_stc_pdstack_pe_status_t::srcCap

Stores the current source cap received.

◆ tempDo

cy_pd_pd_do_t cy_stc_pdstack_pe_status_t::tempDo

Temporary buffer for sending VDM commands.

◆ appResp

app_resp_t cy_stc_pdstack_pe_status_t::appResp

Temporary buffer for storing APP response.

◆ vdmResp

vdm_resp_t cy_stc_pdstack_pe_status_t::vdmResp

VDM response from APP stored here.

◆ vsBuf

cy_stc_pdstack_dpm_pd_cmd_buf_t cy_stc_pdstack_pe_status_t::vsBuf

VCONN swap command buffer.

◆ cblBuf

cy_stc_pdstack_dpm_pd_cmd_buf_t cy_stc_pdstack_pe_status_t::cblBuf

Cable command buffer.

◆ hardResetCount

uint8_t cy_stc_pdstack_pe_status_t::hardResetCount

Hard reset counter.

◆ srcCapCount

uint8_t cy_stc_pdstack_pe_status_t::srcCapCount

Source capability counter.

◆ cblDscIdCount

uint8_t cy_stc_pdstack_pe_status_t::cblDscIdCount

CBL dsc id count.

◆ prSwap

bool cy_stc_pdstack_pe_status_t::prSwap

Indicates power role swap going on.

◆ prSwapCount

uint16_t cy_stc_pdstack_pe_status_t::prSwapCount

Counts PR swap requests if VCONN swap is pending.

◆ snkGoToMin

bool cy_stc_pdstack_pe_status_t::snkGoToMin

Indicates go to min request received from the source.

◆ srcGoToMin

bool cy_stc_pdstack_pe_status_t::srcGoToMin

Indicates go to min needs to be sent by the source (requested by dpm).

◆ isVconnSwapActive

bool cy_stc_pdstack_pe_status_t::isVconnSwapActive

Indicates VCONN swap needs to be performed.

◆ vsCount

uint8_t cy_stc_pdstack_pe_status_t::vsCount

Current count of VCONN swap tries.

◆ vsWait

bool cy_stc_pdstack_pe_status_t::vsWait

Flag to indicate waiting for the response.

◆ amsType

pd_ams_type_t cy_stc_pdstack_pe_status_t::amsType

Flag to indicate AMS is continued from the previous transition.

◆ sendMsgSop

cy_en_pd_sop_t cy_stc_pdstack_pe_status_t::sendMsgSop

Stores send message sop type.

◆ sendMsgClass

cy_en_pdstack_pd_msg_class_t cy_stc_pdstack_pe_status_t::sendMsgClass

Stores send message class.

◆ sendMsgType

uint8_t cy_stc_pdstack_pe_status_t::sendMsgType

Sends message type.

◆ sendMsgCount

uint8_t cy_stc_pdstack_pe_status_t::sendMsgCount

Sends message count.

◆ sendextdhdr

cy_pdstack_extd_hdr_t cy_stc_pdstack_pe_status_t::sendextdhdr

Sends extended header.

◆ sendMsgTimeout

uint16_t cy_stc_pdstack_pe_status_t::sendMsgTimeout

Sends message timeout.

◆ sendMsgPtr

void* cy_stc_pdstack_pe_status_t::sendMsgPtr

Sends message data pointer.

◆ expMsgClass

cy_en_pdstack_pd_msg_class_t cy_stc_pdstack_pe_status_t::expMsgClass

Stores expected message class.

◆ expMsgMask

uint32_t cy_stc_pdstack_pe_status_t::expMsgMask

Expected message mask.

◆ expMsgLen

uint16_t cy_stc_pdstack_pe_status_t::expMsgLen

Expected message length.

◆ appReqRslt

cy_en_pdstack_app_req_status_t cy_stc_pdstack_pe_status_t::appReqRslt

Temporary buffer for APP req response.

◆ contract

cy_stc_pdstack_contract_t cy_stc_pdstack_pe_status_t::contract

Temporary contract status.

◆ snkRdo

cy_pd_pd_do_t cy_stc_pdstack_pe_status_t::snkRdo

Temporary rdo sent by the sink.

◆ snkSelPdo

cy_pd_pd_do_t cy_stc_pdstack_pe_status_t::snkSelPdo

Temporary selected pdo (among source cap) by the sink.

◆ srcSelPdo

cy_pd_pd_do_t cy_stc_pdstack_pe_status_t::srcSelPdo

Temporary selected pdo (among source cap) of the source.

◆ swapEvtResp

cy_en_pdstack_app_req_status_t cy_stc_pdstack_pe_status_t::swapEvtResp

Temporary store for the status of app swap complete event.

◆ contractEvtResp

cy_stc_pdstack_pd_contract_info_t cy_stc_pdstack_pe_status_t::contractEvtResp

Temporary store for app PD contract event status.

◆ sopType

cy_en_pd_sop_t cy_stc_pdstack_pe_status_t::sopType

Temporary variable to hold sop type.

◆ psHrDelay

bool cy_stc_pdstack_pe_status_t::psHrDelay

Flag to indicate PSHardResetDelay required.

◆ sendSrcCapDebounce

bool cy_stc_pdstack_pe_status_t::sendSrcCapDebounce

Flag determines srccap start debounce in progress.

◆ swapType

cy_en_pd_ctrl_msg_t cy_stc_pdstack_pe_status_t::swapType

Store received/sent swap type.

◆ specRevDetermined

bool cy_stc_pdstack_pe_status_t::specRevDetermined

Flag to indicate spec rev has been determined.

◆ chunkDetermined

bool cy_stc_pdstack_pe_status_t::chunkDetermined

Flag to indicate spec rev has been determined.

◆ autoExtdMsgType

cy_en_pdstack_extd_msg_t cy_stc_pdstack_pe_status_t::autoExtdMsgType

Temporary variable to hold extended message type to send.

◆ amsTypeTemp

cy_en_pdstack_ams_type_t cy_stc_pdstack_pe_status_t::amsTypeTemp

Temporary store AMS type.

◆ getSnkCapWait

bool cy_stc_pdstack_pe_status_t::getSnkCapWait

Flag to indicate waiting for the response.

◆ isGetSnkCapActive

bool cy_stc_pdstack_pe_status_t::isGetSnkCapActive

Indicates get sink cap needs to be performed.

◆ getSnkCapCount

uint8_t cy_stc_pdstack_pe_status_t::getSnkCapCount

Current count of get sink cap tries.

◆ usb4DataResetState

uint8_t cy_stc_pdstack_pe_status_t::usb4DataResetState

Stores USB4 data reset state.

◆ pePsrcEnDelayed

bool cy_stc_pdstack_pe_status_t::pePsrcEnDelayed

Flag indicating PSRC enable call has been delayed.

◆ peSendHrPending

volatile bool cy_stc_pdstack_pe_status_t::peSendHrPending

Flag that indicates that hard reset sending is pending.

◆ eprEnterRespDo

cy_pd_pd_do_t cy_stc_pdstack_pe_status_t::eprEnterRespDo

Buffer that holds EPR enter mode response data object.

◆ eprState

uint8_t cy_stc_pdstack_pe_status_t::eprState

Variable to hold the EPR state.

◆ eprMultiMessageFlag

bool cy_stc_pdstack_pe_status_t::eprMultiMessageFlag

Flag that indicates whether EPR multi-messages are active.

◆ eprSendcapInSpr

bool cy_stc_pdstack_pe_status_t::eprSendcapInSpr

Flag that indicates whether to send PDO in SPR.

◆ eprSnkExtdChunkBuffer

uint8_t cy_stc_pdstack_pe_status_t::eprSnkExtdChunkBuffer[26]

Buffer that holds the EPR sink extended messages/responses.

◆ eprChunkCount

uint8_t cy_stc_pdstack_pe_status_t::eprChunkCount

EPR chunked message count.

◆ peCmdBuf

cy_stc_pdstack_dpm_pd_cmd_buf_t cy_stc_pdstack_pe_status_t::peCmdBuf

PD command buffer to send command from policy engine.