HPI Library
cy_stc_hpi_status_t Struct Reference

Description

Data structure to hold the HPI interrupt and command operation status variable.

Data Fields

volatile uint8_t portStopPending
 Check if any PD port disable operations are pending. More...
 
bool accessed
 Check for the HPI accesses since startup. More...
 
bool pdoUpdateDisable
 Check if the HPI-based PDO updates are allowed. More...
 
uint8_t ecInt
 Check if the EC interrupt is enabled/disabled. More...
 
bool ecReady
 Check if the EC init complete event is received. More...
 
volatile bool cmdPending
 Check if the HPI command handling is pending. More...
 
volatile uint16_t wrCount
 Size of data in HPI command buffer. More...
 
volatile bool freezeStack
 Variable uses to implement debug features. More...
 
uint8_t * regPtr
 Current pointer to HPI register space. More...
 
uint8_t * regLimit
 Limit on valid address space so that the EC does not keep reading. More...
 
bool ecIntPending
 If an EC_INT write is pending, this variable is set. More...
 
volatile uint16_t logAddr
 Current cursor position of the log message. More...
 
uint16_t softResetDelay
 HPI soft reset time delay. More...
 
uint16_t softResetTimerId
 HPI soft reset timer ID. More...
 
bool eprExit [CY_HPI_NO_OF_PD_PORTS_MAX]
 EPR exit flag.
 

Field Documentation

◆ portStopPending

volatile uint8_t cy_stc_hpi_status_t::portStopPending

Check if any PD port disable operations are pending.

◆ accessed

bool cy_stc_hpi_status_t::accessed

Check for the HPI accesses since startup.

◆ pdoUpdateDisable

bool cy_stc_hpi_status_t::pdoUpdateDisable

Check if the HPI-based PDO updates are allowed.

◆ ecInt

uint8_t cy_stc_hpi_status_t::ecInt

Check if the EC interrupt is enabled/disabled.

◆ ecReady

bool cy_stc_hpi_status_t::ecReady

Check if the EC init complete event is received.

◆ cmdPending

volatile bool cy_stc_hpi_status_t::cmdPending

Check if the HPI command handling is pending.

◆ wrCount

volatile uint16_t cy_stc_hpi_status_t::wrCount

Size of data in HPI command buffer.

◆ freezeStack

volatile bool cy_stc_hpi_status_t::freezeStack

Variable uses to implement debug features.

◆ regPtr

uint8_t* cy_stc_hpi_status_t::regPtr

Current pointer to HPI register space.

◆ regLimit

uint8_t* cy_stc_hpi_status_t::regLimit

Limit on valid address space so that the EC does not keep reading.

◆ ecIntPending

bool cy_stc_hpi_status_t::ecIntPending

If an EC_INT write is pending, this variable is set.

◆ logAddr

volatile uint16_t cy_stc_hpi_status_t::logAddr

Current cursor position of the log message.

◆ softResetDelay

uint16_t cy_stc_hpi_status_t::softResetDelay

HPI soft reset time delay.

◆ softResetTimerId

uint16_t cy_stc_hpi_status_t::softResetTimerId

HPI soft reset timer ID.