HAL specific return codes definitions for all drivers.
HAL drivers are generally built on top of a lower level driver. In this case the errors returned from the HAL could be one of the values below or a value from that lower level driver. See the device specific documentation for details about the other error codes. The HAL uses the same CY_RSLT_CREATE macro to define result codes using the standard cy_rslt_t format. All HAL results use the module ID CY_RSLT_MODULE_ABSTRACTION_HAL. Driver distinction is done as part of the 16-bit code field. The HAL splits this into individual bytes. The upper byte signifies the HAL driver using values from the cyhal_rslt_module_chip enum. The lower byte is defined by each HAL driver.
API Reference | |
ADC HAL Results | |
ADC specific return codes. | |
Clock HAL Results | |
Clock specific return codes. | |
Comparator HAL Results | |
Comparator specific return codes. | |
CRC HAL Results | |
CRC specific return codes. | |
DMA HAL Results | |
DMA specific return codes. | |
EZI2C HAL Results | |
EZI2C specific return codes. | |
Flash HAL Results | |
Flash specific return codes. | |
GPIO HAL Results | |
GPIO specific return codes. | |
HWMGR HAL Results | |
HWMGR specific return codes. | |
I2C HAL Results | |
I2C specific return codes. | |
I2S HAL Results | |
I2S specific return codes. | |
Interconnect HAL Results | |
Interconnect specific return codes. | |
LPTimer HAL Results | |
LPTimer specific return codes. | |
Opamp HAL Results | |
Opamp specific return codes. | |
PWM HAL Results | |
PWM specific return codes. | |
Quadrature Decoder HAL Results | |
Quadrature Decoder specific return codes. | |
SPI HAL Results | |
SPI specific return codes. | |
SYSPM HAL Results | |
SYSPM specific return codes. | |
TDM HAL Results | |
TDM specific return codes. | |
Timer HAL Results | |
Timer specific return codes. | |
TRNG HAL Results | |
TRNG specific return codes. | |
UART HAL Results | |
UART specific return codes. | |
WDT HAL Results | |
WDT specific return codes. | |
Enum to specify module IDs for cy_rslt_t values returned from the HAL.