PDStack Middleware Library
cy_stc_pdstack_pd_status_t Struct Reference

Description

Structure to hold protocol layer status.

Data Fields

cy_pdstack_pd_cbk_t cbk
 Callback is used to send notifications to the policy engine. More...
 
cy_stc_pdstack_prl_cntrs_t ctrs [CY_PD_MAX_SOP_TYPES]
 Protocol counters for various packet types. More...
 
uint32_t txBuf [CY_PD_MAX_PD_PKT_WORDS]
 Buffer used to hold the message to be (or being) transmitted. More...
 
uint32_t txHeader
 PD header corresponding to the message being transmitted. More...
 
cy_stc_pd_packet_extd_t rxPacket
 Buffer used to hold received PD message. More...
 
uint8_t curRecMsgId
 Stores message ID (excluding GoodCRC) of the received message. More...
 
cy_en_pd_sop_t lastRcvdSop
 Stores last received SOP type. More...
 
bool volatile avoidRetry
 Flag to skip retry on CRCReceiveTimer expiry. More...
 
bool volatile txBusy
 Flag indicating TX state machine is busy. More...
 
cy_en_pd_sop_t txSop
 Stores the SOP type of message being transmitted. More...
 
cy_pdstack_extd_hdr_t txExtdHdr
 Holds the extended header for the message being transmitted. More...
 
bool txExtd
 Flag that indicates that the current message is extended. More...
 
cy_en_pd_sop_t lastTxSop
 Stores the SOP type of the last transmitted message. More...
 
uint8_t txMsgType
 Stores the message type of message being transmitted. More...
 
uint8_t txCount
 Holds the data object count of the message being transmitted. More...
 
bool bistTestEn
 Flag indicating BIST test data is enabled. More...
 
uint32_t volatile rxEvt
 Type of receive state machine event received from the HAL. More...
 
bool volatile rxBusy
 Flag indicating RX state machine is busy. More...
 
volatile bool rev3Enable
 Flag indicating the PD Revision 3.0 support is enabled. More...
 
volatile bool frsTxEnable
 Flag indicating that FRS transmit support is enabled. More...
 
volatile bool frsRxEnable
 Flag indicating that FRS receives support is enabled. More...
 

Field Documentation

◆ cbk

cy_pdstack_pd_cbk_t cy_stc_pdstack_pd_status_t::cbk

Callback is used to send notifications to the policy engine.

◆ ctrs

cy_stc_pdstack_prl_cntrs_t cy_stc_pdstack_pd_status_t::ctrs[CY_PD_MAX_SOP_TYPES]

Protocol counters for various packet types.

◆ txBuf

uint32_t cy_stc_pdstack_pd_status_t::txBuf[CY_PD_MAX_PD_PKT_WORDS]

Buffer used to hold the message to be (or being) transmitted.

◆ txHeader

uint32_t cy_stc_pdstack_pd_status_t::txHeader

PD header corresponding to the message being transmitted.

◆ rxPacket

cy_stc_pd_packet_extd_t cy_stc_pdstack_pd_status_t::rxPacket

Buffer used to hold received PD message.

Can be extended or not.

◆ curRecMsgId

uint8_t cy_stc_pdstack_pd_status_t::curRecMsgId

Stores message ID (excluding GoodCRC) of the received message.

◆ lastRcvdSop

cy_en_pd_sop_t cy_stc_pdstack_pd_status_t::lastRcvdSop

Stores last received SOP type.

◆ avoidRetry

bool volatile cy_stc_pdstack_pd_status_t::avoidRetry

Flag to skip retry on CRCReceiveTimer expiry.

◆ txBusy

bool volatile cy_stc_pdstack_pd_status_t::txBusy

Flag indicating TX state machine is busy.

◆ txSop

cy_en_pd_sop_t cy_stc_pdstack_pd_status_t::txSop

Stores the SOP type of message being transmitted.

◆ txExtdHdr

cy_pdstack_extd_hdr_t cy_stc_pdstack_pd_status_t::txExtdHdr

Holds the extended header for the message being transmitted.

◆ txExtd

bool cy_stc_pdstack_pd_status_t::txExtd

Flag that indicates that the current message is extended.

◆ lastTxSop

cy_en_pd_sop_t cy_stc_pdstack_pd_status_t::lastTxSop

Stores the SOP type of the last transmitted message.

◆ txMsgType

uint8_t cy_stc_pdstack_pd_status_t::txMsgType

Stores the message type of message being transmitted.

◆ txCount

uint8_t cy_stc_pdstack_pd_status_t::txCount

Holds the data object count of the message being transmitted.

◆ bistTestEn

bool cy_stc_pdstack_pd_status_t::bistTestEn

Flag indicating BIST test data is enabled.

◆ rxEvt

uint32_t volatile cy_stc_pdstack_pd_status_t::rxEvt

Type of receive state machine event received from the HAL.

◆ rxBusy

bool volatile cy_stc_pdstack_pd_status_t::rxBusy

Flag indicating RX state machine is busy.

◆ rev3Enable

volatile bool cy_stc_pdstack_pd_status_t::rev3Enable

Flag indicating the PD Revision 3.0 support is enabled.

◆ frsTxEnable

volatile bool cy_stc_pdstack_pd_status_t::frsTxEnable

Flag indicating that FRS transmit support is enabled.

◆ frsRxEnable

volatile bool cy_stc_pdstack_pd_status_t::frsRxEnable

Flag indicating that FRS receives support is enabled.