PSOC E8XXGP Device Support Library

| PSOC E8XXGP Device Support Library

Enumerations
Enumerated Types
PDL API Reference » AUTONOMOUS ANALOG (Autonomous Analog Block) » General section of the API

## General Description

## Enumerations
enum | cy_en_autanalog_prb_src_t { CY_AUTANALOG_PRB_VBGR = 0UL , CY_AUTANALOG_PRB_VDDA = 1UL }
| Select the source voltage for the PRB (Vsrc), for more details, refer to the device Architecture Technical Reference Manual. More...
enum | cy_en_autanalog_prb_tap_t { CY_AUTANALOG_PRB_TAP_0 = 0UL , CY_AUTANALOG_PRB_TAP_1 = 1UL , CY_AUTANALOG_PRB_TAP_2 = 2UL , CY_AUTANALOG_PRB_TAP_3 = 3UL , CY_AUTANALOG_PRB_TAP_4 = 4UL , CY_AUTANALOG_PRB_TAP_5 = 5UL , CY_AUTANALOG_PRB_TAP_6 = 6UL , CY_AUTANALOG_PRB_TAP_7 = 7UL , CY_AUTANALOG_PRB_TAP_8 = 8UL , CY_AUTANALOG_PRB_TAP_9 = 9UL , CY_AUTANALOG_PRB_TAP_10 = 10UL , CY_AUTANALOG_PRB_TAP_11 = 11UL , CY_AUTANALOG_PRB_TAP_12 = 12UL , CY_AUTANALOG_PRB_TAP_13 = 13UL , CY_AUTANALOG_PRB_TAP_14 = 14UL , CY_AUTANALOG_PRB_TAP_15 = 15UL }
| The position of the TAP to select the required Vref from the PRB, the actual value of the Vref depends on the source voltage for PRB (Vsrc), see cy_en_autanalog_prb_src_t. More...
enum | cy_en_autanalog_subsystem_id_t { CY_AUTANALOG_CTB = 0UL , CY_AUTANALOG_PTC = 1UL , CY_AUTANALOG_DAC = 2UL , CY_AUTANALOG_SAR = 3UL , CY_AUTANALOG_FIFO = 4UL }
| The sub-systems of the Autonomous Analog driver. More...
enum | cy_en_autanalog_status_t { CY_AUTANALOG_SUCCESS = 0x00UL , CY_AUTANALOG_BAD_PARAM = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0000UL , CY_AUTANALOG_PRB_BAD_PARAM = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0001UL , CY_AUTANALOG_AC_BAD_PARAM = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0002UL , CY_AUTANALOG_CTB_BAD_PARAM = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0004UL , CY_AUTANALOG_PTCOMP_BAD_PARAM = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0008UL , CY_AUTANALOG_DAC_BAD_PARAM = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0010UL , CY_AUTANALOG_SAR_BAD_PARAM = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0020UL , CY_AUTANALOG_FIFO_BAD_PARAM = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0040UL , CY_AUTANALOG_ENABLE_ERR = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0080UL , CY_AUTANALOG_TRIMM_ERR = CY_AUTANALOG_ID | CY_PDL_STATUS_ERROR | 0x0100UL }
| Return the status for functions of the Autonomous Analog driver. More...

## Enumeration Type Documentation

## ◆ cy_en_autanalog_prb_src_t

enum cy_en_autanalog_prb_src_t

Select the source voltage for the PRB (Vsrc), for more details, refer to the device Architecture Technical Reference Manual.

Enumerator
CY_AUTANALOG_PRB_VBGR | The reference is derived from VBGR, the nominal value of Vsrc is 0.9V.
CY_AUTANALOG_PRB_VDDA | The reference is derived from VDDA, the maximum value of Vsrc is 1.8V.

## ◆ cy_en_autanalog_prb_tap_t

enum cy_en_autanalog_prb_tap_t

The position of the TAP to select the required Vref from the PRB, the actual value of the Vref depends on the source voltage for PRB (Vsrc), see cy_en_autanalog_prb_src_t.

For more details, refer to the device Architecture Technical Reference Manual.

Enumerator
CY_AUTANALOG_PRB_TAP_0 | Vref = 0.06 * Vsrc.
CY_AUTANALOG_PRB_TAP_1 | Vref = 0.13 * Vsrc.
CY_AUTANALOG_PRB_TAP_2 | Vref = 0.19 * Vsrc.
CY_AUTANALOG_PRB_TAP_3 | Vref = 0.25 * Vsrc.
CY_AUTANALOG_PRB_TAP_4 | Vref = 0.31 * Vsrc.
CY_AUTANALOG_PRB_TAP_5 | Vref = 0.38 * Vsrc.
CY_AUTANALOG_PRB_TAP_6 | Vref = 0.44 * Vsrc.
CY_AUTANALOG_PRB_TAP_7 | Vref = 0.50 * Vsrc.
CY_AUTANALOG_PRB_TAP_8 | Vref = 0.56 * Vsrc.
CY_AUTANALOG_PRB_TAP_9 | Vref = 0.63 * Vsrc.
CY_AUTANALOG_PRB_TAP_10 | Vref = 0.69 * Vsrc.
CY_AUTANALOG_PRB_TAP_11 | Vref = 0.75 * Vsrc.
CY_AUTANALOG_PRB_TAP_12 | Vref = 0.81 * Vsrc.
CY_AUTANALOG_PRB_TAP_13 | Vref = 0.88 * Vsrc.
CY_AUTANALOG_PRB_TAP_14 | Vref = 0.94 * Vsrc.
CY_AUTANALOG_PRB_TAP_15 | Vref = 1.00 * Vsrc.

## ◆ cy_en_autanalog_subsystem_id_t

enum cy_en_autanalog_subsystem_id_t

The sub-systems of the Autonomous Analog driver.

Enumerator
CY_AUTANALOG_CTB | The CTB subsystem.
CY_AUTANALOG_PTC | The PTComp subsystem.
CY_AUTANALOG_DAC | The DAC subsystem.
CY_AUTANALOG_SAR | The SAR subsystem.
CY_AUTANALOG_FIFO | The FIFO subsystem.

## ◆ cy_en_autanalog_status_t

enum cy_en_autanalog_status_t

Return the status for functions of the Autonomous Analog driver.

Enumerator
CY_AUTANALOG_SUCCESS | Initialization completed successfully.
CY_AUTANALOG_BAD_PARAM | The Autonomous Analog driver error: input pointer was NULL and initialization could not be completed.
CY_AUTANALOG_PRB_BAD_PARAM | PRB subsystem error.
CY_AUTANALOG_AC_BAD_PARAM | AC subsystem error.
CY_AUTANALOG_CTB_BAD_PARAM | CTB subsystem error.
CY_AUTANALOG_PTCOMP_BAD_PARAM | PTComp subsystem error.
CY_AUTANALOG_DAC_BAD_PARAM | DAC subsystem error.
CY_AUTANALOG_SAR_BAD_PARAM | SAR subsystem error.
CY_AUTANALOG_FIFO_BAD_PARAM | FIFO subsystem error.
CY_AUTANALOG_ENABLE_ERR | The infrastructure error when enabling the Autonomous Analog peripheral.
CY_AUTANALOG_TRIMM_ERR | The infrastructure error when reading trimming values.