CAT2 Peripheral Driver Library

Enumerations

enum  cy_en_lpcomp_out_t {
  CY_LPCOMP_OUT_PULSE = 0U,
  CY_LPCOMP_OUT_DIRECT = 1U,
  CY_LPCOMP_OUT_SYNC = 2U
}
 The LPCOMP output modes. More...
 
enum  cy_en_lpcomp_hyst_t {
  CY_LPCOMP_HYST_ENABLE = 0U,
  CY_LPCOMP_HYST_DISABLE = 1U
}
 The hysteresis mode. More...
 
enum  cy_en_lpcomp_channel_t {
  CY_LPCOMP_CHANNEL_0 = 0x1U,
  CY_LPCOMP_CHANNEL_1 = 0x2U
}
 The 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
}
 Interrupt mode. More...
 
enum  cy_en_lpcomp_pwr_t {
  CY_LPCOMP_MODE_SLOW = 0U,
  CY_LPCOMP_MODE_FAST = 1U,
  CY_LPCOMP_MODE_ULP = 2U
}
 The power-mode selection. More...
 
enum  cy_en_lpcomp_status_t {
  CY_LPCOMP_SUCCESS = 0x00U,
  CY_LPCOMP_BAD_PARAM = CY_LPCOMP_ID | CY_PDL_STATUS_ERROR | 0x01U
}
 LPCOMP error code. More...
 

Detailed Description

Enumeration Type Documentation

◆ cy_en_lpcomp_out_t

The LPCOMP output modes.

Enumerator
CY_LPCOMP_OUT_PULSE 

The DSI output with the pulse option, no bypass.

CY_LPCOMP_OUT_DIRECT 

The bypass mode, the direct output of a comparator.

CY_LPCOMP_OUT_SYNC 

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

◆ cy_en_lpcomp_hyst_t

The hysteresis mode.

Enumerator
CY_LPCOMP_HYST_ENABLE 

Enables the 10 mV hysteresis level.

CY_LPCOMP_HYST_DISABLE 

Disables the 10 mV hysteresis level.

◆ cy_en_lpcomp_channel_t

The channel number.

Enumerator
CY_LPCOMP_CHANNEL_0 

The comparator 0.

CY_LPCOMP_CHANNEL_1 

The comparator 1.

◆ cy_en_lpcomp_int_t

Interrupt mode.

Enumerator
CY_LPCOMP_INTR_DISABLE 

The interrupt disabled, no interrupt will be detected.

CY_LPCOMP_INTR_RISING 

The interrupt on the rising edge.

CY_LPCOMP_INTR_FALLING 

The interrupt on the falling edge.

CY_LPCOMP_INTR_BOTH 

The interrupt on both rising and falling edges.

◆ cy_en_lpcomp_pwr_t

The power-mode selection.

Enumerator
CY_LPCOMP_MODE_SLOW 

Slow operating mode (uses less power).

CY_LPCOMP_MODE_FAST 

Fast operating mode (uses more power).

CY_LPCOMP_MODE_ULP 

Ultra-low-power operating mode (uses lowest possible power).

◆ cy_en_lpcomp_status_t

LPCOMP error code.

Enumerator
CY_LPCOMP_SUCCESS 

Successful.

CY_LPCOMP_BAD_PARAM 

One or more invalid parameters.