PDStack Middleware Library
cy_stc_pdstack_typec_status_t Struct Reference

Description

Type-C manager status structure.

This structure holds all of the configuration and status information associated with the Type-C manager. Structure should not be directly modified by any of the application code.

Data Fields

uint8_t randUpdt
 Flag to indicate the start of the drp random timeout update cycle. More...
 
bool volatile rdDebounce
 Flag to indicate rd debounce reset. More...
 
bool psrcEn
 Flag to indicate power source enable is going on. More...
 
bool vbusUnexpected
 Flag to indicate unexpected vbus detected by the source before applying vbus. More...
 
bool portDisable
 Flag to indicate port disable is going on. More...
 
uint8_t curPeriod
 Current period (sink or source). More...
 
bool volatile toggleOn
 Flag to indicate toggle timer ON. More...
 
bool volatile discharge
 Flag to indicate an attempt to discharge if vbus seen before applying vbus is over. More...
 
bool volatile trySnkDeadTime
 Flag to indicate try snk tDRPTry timer is running. More...
 
bool volatile ccStatusDebounced [2]
 Flag to indicate cc status debounced to avoid race condition in going to DeepSleep. More...
 
bool volatile srcDisableWait
 Flag to indicate that source disables operation is in progress. More...
 

Field Documentation

◆ randUpdt

uint8_t cy_stc_pdstack_typec_status_t::randUpdt

Flag to indicate the start of the drp random timeout update cycle.

◆ rdDebounce

bool volatile cy_stc_pdstack_typec_status_t::rdDebounce

Flag to indicate rd debounce reset.

◆ psrcEn

bool cy_stc_pdstack_typec_status_t::psrcEn

Flag to indicate power source enable is going on.

◆ vbusUnexpected

bool cy_stc_pdstack_typec_status_t::vbusUnexpected

Flag to indicate unexpected vbus detected by the source before applying vbus.

◆ portDisable

bool cy_stc_pdstack_typec_status_t::portDisable

Flag to indicate port disable is going on.

◆ curPeriod

uint8_t cy_stc_pdstack_typec_status_t::curPeriod

Current period (sink or source).

◆ toggleOn

bool volatile cy_stc_pdstack_typec_status_t::toggleOn

Flag to indicate toggle timer ON.

◆ discharge

bool volatile cy_stc_pdstack_typec_status_t::discharge

Flag to indicate an attempt to discharge if vbus seen before applying vbus is over.

◆ trySnkDeadTime

bool volatile cy_stc_pdstack_typec_status_t::trySnkDeadTime

Flag to indicate try snk tDRPTry timer is running.

◆ ccStatusDebounced

bool volatile cy_stc_pdstack_typec_status_t::ccStatusDebounced[2]

Flag to indicate cc status debounced to avoid race condition in going to DeepSleep.

◆ srcDisableWait

bool volatile cy_stc_pdstack_typec_status_t::srcDisableWait

Flag to indicate that source disables operation is in progress.