The Host Processor Interface (HPI) library implements the HPI transport, protocol, register, and PD message handling.
It allow the host processor or EC to monitor the status of the USB PD ports, change configuration, perform firmware updates, and transparently interact with other USB PD devices connected.
HPI communicates over an I2C interface (supported clock frequencies are 1 MHz, 400 kHz, and 100 kHz) with an interrupt line using a GPIO.
Features:
Include cy_hpi_defines.h, cy_hpi.h to get access to all functions and other declarations in this library. See the Quick start guide to start using the HPI Library.
See the Supported software and tools section for compatibility information.
See the Changelog section for change history.
HPI middleware is used in ModusToolbox(TM) based development environment. See the Supported software and tools section.
These steps describe the simplest method to enable the HPI interface in a ModusToolbox(TM) based application.
API Reference | |
Macros | |
This section describes the HPI macros. | |
Functions | |
This section describes the HPI function prototypes. | |
Data structures | |
This section describes the data structures defined by the HPI. | |
Enumerated types | |
This section describes the enumeration types defined by the HPI. | |