PSOC E8XXGP Device Support Library

| PSOC E8XXGP Device Support Library

Enumerations
Enumerated Types
PDL API Reference » LPComp (Low Power Comparator)

## General Description

## Enumerations
enum | cy_en_lpcomp_out_t { CY_LPCOMP_OUT_PULSE = 0u , CY_LPCOMP_OUT_DIRECT = 1u , CY_LPCOMP_OUT_SYNC = 2u }
| The low-power comparator output modes. More...
enum | cy_en_lpcomp_hyst_t { CY_LPCOMP_HYST_ENABLE = 1u , CY_LPCOMP_HYST_DISABLE = 0u }
| The low-power comparator hysteresis modes. More...
enum | cy_en_lpcomp_channel_t { CY_LPCOMP_CHANNEL_0 = 0x1u , CY_LPCOMP_CHANNEL_1 = 0x2u }
| The low-power comparator channel number. More...
enum | cy_en_lpcomp_int_t { CY_LPCOMP_INTR_DISABLE = 0u , CY_LPCOMP_INTR_RISING = 1u , CY_LPCOMP_INTR_FALLING = 2u , CY_LPCOMP_INTR_BOTH = 3u }
| The low-power comparator interrupt modes. More...
enum | cy_en_lpcomp_pwr_t { CY_LPCOMP_MODE_OFF = 0u , CY_LPCOMP_MODE_ULP = 1u , CY_LPCOMP_MODE_LP = 2u , CY_LPCOMP_MODE_NORMAL = 3u }
| The low-power comparator power-mode selection. More...
enum | cy_en_lpcomp_inputs_t { CY_LPCOMP_SW_GPIO = 0x01u , CY_LPCOMP_SW_LOCAL_VREF = 0x08u }
| The low-power comparator inputs. More...
enum | cy_en_lpcomp_status_t { CY_LPCOMP_SUCCESS = 0x00u , CY_LPCOMP_BAD_PARAM = CY_LPCOMP_ID | CY_PDL_STATUS_ERROR | 0x01u , CY_LPCOMP_TRIMM_ERR = CY_LPCOMP_ID | CY_PDL_STATUS_ERROR | 0x02u }
| The low-power comparator error codes. More...
enum | cy_en_lpcomp_trim_polarity_t { CY_LPCOMP_TRIM_NEGATIVE = 0x00UL , CY_LPCOMP_TRIM_POSITIVE = 0x01UL }
| The low-power comparator trim polarity. More...
enum | cy_en_lpcomp_trim_magnitude_t { CY_LPCOMP_TRIM_0mV = 0x00UL , CY_LPCOMP_TRIM_1mV = 0x01UL , CY_LPCOMP_TRIM_2mV = 0x02UL , CY_LPCOMP_TRIM_3mV = 0x03UL , CY_LPCOMP_TRIM_4mV = 0x04UL , CY_LPCOMP_TRIM_5mV = 0x05UL , CY_LPCOMP_TRIM_6mV = 0x06UL , CY_LPCOMP_TRIM_7mV = 0x07UL , CY_LPCOMP_TRIM_8mV = 0x08UL , CY_LPCOMP_TRIM_9mV = 0x09UL , CY_LPCOMP_TRIM_10mV = 0x0AUL , CY_LPCOMP_TRIM_11mV = 0x0BUL , CY_LPCOMP_TRIM_12mV = 0x0CUL , CY_LPCOMP_TRIM_13mV = 0x0DUL , CY_LPCOMP_TRIM_14mV = 0x0EUL , CY_LPCOMP_TRIM_15mV = 0x0FUL }
| The low-power comparator trim magnitude. More...

## Enumeration Type Documentation

## ◆ cy_en_lpcomp_out_t

enum cy_en_lpcomp_out_t

The low-power comparator output modes.

Enumerator
CY_LPCOMP_OUT_PULSE | The low-power comparator DSI output with the pulse option, no bypass.
CY_LPCOMP_OUT_DIRECT | The low-power comparator Bypass mode, the direct output of a comparator.
CY_LPCOMP_OUT_SYNC | The low-power comparator DSI output with the level option, it is similar to Bypass mode but it is 1 cycle slower.

## ◆ cy_en_lpcomp_hyst_t

enum cy_en_lpcomp_hyst_t

The low-power comparator hysteresis modes.

Enumerator
CY_LPCOMP_HYST_ENABLE | The low-power comparator enable hysteresis.
CY_LPCOMP_HYST_DISABLE | The low-power comparator disable hysteresis.

## ◆ cy_en_lpcomp_channel_t

enum cy_en_lpcomp_channel_t

The low-power comparator channel number.

Enumerator
CY_LPCOMP_CHANNEL_0 | The low-power comparator 0.
CY_LPCOMP_CHANNEL_1 | The low-power comparator 1.

## ◆ cy_en_lpcomp_int_t

enum cy_en_lpcomp_int_t

The low-power comparator interrupt modes.

Enumerator
CY_LPCOMP_INTR_DISABLE | The low-power comparator interrupt is disabled, no interrupt will be detected.
CY_LPCOMP_INTR_RISING | The low-power comparator interrupt on the rising edge.
CY_LPCOMP_INTR_FALLING | The low-power comparator interrupt on the falling edge.
CY_LPCOMP_INTR_BOTH | The low-power comparator interrupt on both rising and falling edges.

## ◆ cy_en_lpcomp_pwr_t

enum cy_en_lpcomp_pwr_t

The low-power comparator power-mode selection.

Enumerator
CY_LPCOMP_MODE_OFF | The low-power comparator channel power-off.
CY_LPCOMP_MODE_ULP | The low-power comparator channel ULP mode. Note A locally generated Ibias is used, refer to Cy_LPComp_UlpReferenceEnable().
CY_LPCOMP_MODE_LP | The low-power comparator channel LP mode.
CY_LPCOMP_MODE_NORMAL | The low-power comparator channel normal mode.

## ◆ cy_en_lpcomp_inputs_t

enum cy_en_lpcomp_inputs_t

The low-power comparator inputs.

Enumerator
CY_LPCOMP_SW_GPIO | The low-power comparator input connects to GPIO pin.
CY_LPCOMP_SW_LOCAL_VREF | The low-power comparator input connects to local VREF.

## ◆ cy_en_lpcomp_status_t

enum cy_en_lpcomp_status_t

The low-power comparator error codes.

Enumerator
CY_LPCOMP_SUCCESS | Successful.
CY_LPCOMP_BAD_PARAM | One or more invalid parameters.
CY_LPCOMP_TRIMM_ERR | Read trimmings fails.

## ◆ cy_en_lpcomp_trim_polarity_t

enum cy_en_lpcomp_trim_polarity_t

The low-power comparator trim polarity.

Enumerator
CY_LPCOMP_TRIM_NEGATIVE | The low-power comparator trim is negative.
CY_LPCOMP_TRIM_POSITIVE | The low-power comparator trim is positive.

## ◆ cy_en_lpcomp_trim_magnitude_t

enum cy_en_lpcomp_trim_magnitude_t

The low-power comparator trim magnitude.

Enumerator
CY_LPCOMP_TRIM_0mV | The low-power comparator trim value 0mV.
CY_LPCOMP_TRIM_1mV | The low-power comparator trim value 1mV.
CY_LPCOMP_TRIM_2mV | The low-power comparator trim value 2mV.
CY_LPCOMP_TRIM_3mV | The low-power comparator trim value 3mV.
CY_LPCOMP_TRIM_4mV | The low-power comparator trim value 4mV.
CY_LPCOMP_TRIM_5mV | The low-power comparator trim value 5mV.
CY_LPCOMP_TRIM_6mV | The low-power comparator trim value 6mV.
CY_LPCOMP_TRIM_7mV | The low-power comparator trim value 7mV.
CY_LPCOMP_TRIM_8mV | The low-power comparator trim value 8mV.
CY_LPCOMP_TRIM_9mV | The low-power comparator trim value 9mV.
CY_LPCOMP_TRIM_10mV | The low-power comparator trim value 10mV.
CY_LPCOMP_TRIM_11mV | The low-power comparator trim value 11mV.
CY_LPCOMP_TRIM_12mV | The low-power comparator trim value 12mV.
CY_LPCOMP_TRIM_13mV | The low-power comparator trim value 13mV.
CY_LPCOMP_TRIM_14mV | The low-power comparator trim value 14mV.
CY_LPCOMP_TRIM_15mV | The low-power comparator trim value 15mV.