Enumerated Types

group group_lpcomp_enums

Enums

enum cy_en_lpcomp_out_t

cy_en_lpcomp_out_t: The LPCOMP output modes.

Values:

enumerator CY_LPCOMP_OUT_PULSE

The LPCOMP DSI output with the pulse option, no bypass.

enumerator CY_LPCOMP_OUT_DIRECT

The LPCOMP bypass mode, the direct output of a comparator.

enumerator CY_LPCOMP_OUT_SYNC

The LPCOMP DSI output with the level option, it is similar to the bypass mode but it is 1 cycle slow than the bypass.

enum cy_en_lpcomp_hyst_t

cy_en_lpcomp_hyst_t: The LPCOMP hysteresis modes.

Values:

enumerator CY_LPCOMP_HYST_ENABLE

The LPCOMP enable hysteresis.

enumerator CY_LPCOMP_HYST_DISABLE

The LPCOMP disable hysteresis.

enum cy_en_lpcomp_channel_t

cy_en_lpcomp_channel_t: The LPCOMP’s channel number.

Values:

enumerator CY_LPCOMP_CHANNEL_0

The LPCOMP Comparator 0.

enumerator CY_LPCOMP_CHANNEL_1

The LPCOMP Comparator 1.

enum cy_en_lpcomp_int_t

cy_en_lpcomp_int_t: The LPCOMP interrupt modes.

Values:

enumerator CY_LPCOMP_INTR_DISABLE

The LPCOMP interrupt disabled, no interrupt will be detected.

enumerator CY_LPCOMP_INTR_RISING

The LPCOMP interrupt on the rising edge.

enumerator CY_LPCOMP_INTR_FALLING

The LPCOMP interrupt on the falling edge.

enumerator CY_LPCOMP_INTR_BOTH

The LPCOMP interrupt on both rising and falling edges.

enum cy_en_lpcomp_pwr_t

cy_en_lpcomp_pwr_t: The LPCOMP power-mode selection.

Values:

enumerator CY_LPCOMP_MODE_OFF

The LPCOMP’s channel power-off.

enumerator CY_LPCOMP_MODE_ULP

The LPCOMP’s channel ULP mode.

enumerator CY_LPCOMP_MODE_LP

The LPCOMP’s channel LP mode.

enumerator CY_LPCOMP_MODE_NORMAL

The LPCOMP’s channel normal mode.

enum cy_en_lpcomp_inputs_t

cy_en_lpcomp_inputs_t: The LPCOMP inputs.

Values:

enumerator CY_LPCOMP_SW_GPIO

The LPCOMP input connects to GPIO pin.

enumerator CY_LPCOMP_SW_AMUXBUSA

The LPCOMP input connects to AMUXBUSA.

enumerator CY_LPCOMP_SW_AMUXBUSB

The LPCOMP input connects to AMUXBUSB.

enumerator CY_LPCOMP_SW_LOCAL_VREF

The LPCOMP input connects to local VREF.

enum cy_en_lpcomp_status_t

cy_en_lpcomp_status_t: The LPCOMP error codes.

Values:

enumerator CY_LPCOMP_SUCCESS

Successful.

enumerator CY_LPCOMP_BAD_PARAM

One or more invalid parameters.

enumerator CY_LPCOMP_TIMEOUT

Operation timed out.

enumerator CY_LPCOMP_INVALID_STATE

Operation not setup or is in an improper state.

enumerator CY_LPCOMP_UNKNOWN

Unknown failure.