PDStack Middleware Library
cy_stc_pdstack_context_t Struct Reference

Description

Structure to PDSTACK middleware context information.

Data Fields

uint8_t port
 USB PD port index. More...
 
cy_stc_pdstack_dpm_status_t dpmStat
 PD device policy configuration and status structure. More...
 
cy_stc_pd_dpm_config_t dpmConfig
 PD device policy configuration and status structure. More...
 
cy_stc_pdstack_app_cbk_tptrAppCbk
 Pointer to the application callback structure. More...
 
cy_stc_pdstack_pd_status_t pdStat
 Protocol layer status structure. More...
 
cy_stc_pdstack_pe_status_t peStat
 Policy engine status structure. More...
 
cy_stc_pdstack_typec_status_t typecStat
 Type-C status. More...
 
const cy_stc_pdstack_port_cfg_tptrPortCfg
 Pointer to the port configuration structure. More...
 
cy_stc_usbpd_context_t * ptrUsbPdContext
 Pointer to the USB PD PDL context information. More...
 
const cy_stc_pdstack_dpm_params_tptrDpmParams
 Structure for the various parameters that dpm update functions are updating. More...
 
cy_stc_pdutils_sw_timer_t * ptrTimerContext
 PdStack Timer Context.
 
cy_stc_pdstack_rtos_context_tptrRtosContext
 Pointer to the RTOS callback function structure. More...
 
cy_stc_pdstack_dpm_ext_status_t dpmExtStat
 PD device policy configuration and status structure having PD 3.1 updated parameters. More...
 
void * ptrAltModeContext
 Pointer to the AltMode context. More...
 
void * ptrHpiContext
 Pointer to the HPI context. More...
 
cy_stc_pdstack_pd_timer_params_tptrPdTimerParams
 Pointer to the cy_stc_pdstack_pd_timer_params_t structure. More...
 
uint8_t senderRspTimeout
 Current sender response timer period. More...
 
uint16_t srcRecoverTime
 Source recovery timer period. More...
 
cy_en_pdstack_std_minor_vdm_ver_t cblVdmMinVersion
 Stores the cable VDM minor version. More...
 
bool peDpmCmdRequest
 Flag to indicate DPM command request from policy engine. More...
 

Field Documentation

◆ port

uint8_t cy_stc_pdstack_context_t::port

USB PD port index.

◆ dpmStat

cy_stc_pdstack_dpm_status_t cy_stc_pdstack_context_t::dpmStat

PD device policy configuration and status structure.

◆ dpmConfig

cy_stc_pd_dpm_config_t cy_stc_pdstack_context_t::dpmConfig

PD device policy configuration and status structure.

◆ ptrAppCbk

cy_stc_pdstack_app_cbk_t* cy_stc_pdstack_context_t::ptrAppCbk

Pointer to the application callback structure.

◆ pdStat

cy_stc_pdstack_pd_status_t cy_stc_pdstack_context_t::pdStat

Protocol layer status structure.

◆ peStat

cy_stc_pdstack_pe_status_t cy_stc_pdstack_context_t::peStat

Policy engine status structure.

◆ typecStat

cy_stc_pdstack_typec_status_t cy_stc_pdstack_context_t::typecStat

Type-C status.

◆ ptrPortCfg

const cy_stc_pdstack_port_cfg_t* cy_stc_pdstack_context_t::ptrPortCfg

Pointer to the port configuration structure.

◆ ptrUsbPdContext

cy_stc_usbpd_context_t* cy_stc_pdstack_context_t::ptrUsbPdContext

Pointer to the USB PD PDL context information.

◆ ptrDpmParams

const cy_stc_pdstack_dpm_params_t* cy_stc_pdstack_context_t::ptrDpmParams

Structure for the various parameters that dpm update functions are updating.

◆ ptrRtosContext

cy_stc_pdstack_rtos_context_t* cy_stc_pdstack_context_t::ptrRtosContext

Pointer to the RTOS callback function structure.

◆ dpmExtStat

cy_stc_pdstack_dpm_ext_status_t cy_stc_pdstack_context_t::dpmExtStat

PD device policy configuration and status structure having PD 3.1 updated parameters.

◆ ptrAltModeContext

void* cy_stc_pdstack_context_t::ptrAltModeContext

Pointer to the AltMode context.

◆ ptrHpiContext

void* cy_stc_pdstack_context_t::ptrHpiContext

Pointer to the HPI context.

◆ ptrPdTimerParams

cy_stc_pdstack_pd_timer_params_t* cy_stc_pdstack_context_t::ptrPdTimerParams

Pointer to the cy_stc_pdstack_pd_timer_params_t structure.

◆ senderRspTimeout

uint8_t cy_stc_pdstack_context_t::senderRspTimeout

Current sender response timer period.

◆ srcRecoverTime

uint16_t cy_stc_pdstack_context_t::srcRecoverTime

Source recovery timer period.

◆ cblVdmMinVersion

cy_en_pdstack_std_minor_vdm_ver_t cy_stc_pdstack_context_t::cblVdmMinVersion

Stores the cable VDM minor version.

◆ peDpmCmdRequest

bool cy_stc_pdstack_context_t::peDpmCmdRequest

Flag to indicate DPM command request from policy engine.