PSoC 6 Peripheral Driver Library

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 LPCOMP output modes. More...
 
enum  cy_en_lpcomp_hyst_t {
  CY_LPCOMP_HYST_ENABLE = 1u,
  CY_LPCOMP_HYST_DISABLE = 0u
}
 The LPCOMP hysteresis modes. More...
 
enum  cy_en_lpcomp_channel_t {
  CY_LPCOMP_CHANNEL_0 = 0x1u,
  CY_LPCOMP_CHANNEL_1 = 0x2u
}
 The LPCOMP's 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 LPCOMP 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 LPCOMP power-mode selection. More...
 
enum  cy_en_lpcomp_inputs_t {
  CY_LPCOMP_SW_GPIO = 0x01u,
  CY_LPCOMP_SW_AMUXBUSA = 0x02u,
  CY_LPCOMP_SW_AMUXBUSB = 0x04u,
  CY_LPCOMP_SW_LOCAL_VREF = 0x08u
}
 The LPCOMP 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_TIMEOUT = CY_LPCOMP_ID | CY_PDL_STATUS_ERROR | 0x02u,
  CY_LPCOMP_INVALID_STATE = CY_LPCOMP_ID | CY_PDL_STATUS_ERROR | 0x03u,
  CY_LPCOMP_UNKNOWN = CY_LPCOMP_ID | CY_PDL_STATUS_ERROR | 0xFFu
}
 The LPCOMP error codes. More...
 

Enumeration Type Documentation

◆ cy_en_lpcomp_out_t

The LPCOMP output modes.

Enumerator
CY_LPCOMP_OUT_PULSE 

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

CY_LPCOMP_OUT_DIRECT 

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

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.

◆ cy_en_lpcomp_hyst_t

The LPCOMP hysteresis modes.

Enumerator
CY_LPCOMP_HYST_ENABLE 

The LPCOMP enable hysteresis.

CY_LPCOMP_HYST_DISABLE 

The LPCOMP disable hysteresis.

◆ cy_en_lpcomp_channel_t

The LPCOMP's channel number.

Enumerator
CY_LPCOMP_CHANNEL_0 

The LPCOMP Comparator 0.

CY_LPCOMP_CHANNEL_1 

The LPCOMP Comparator 1.

◆ cy_en_lpcomp_int_t

The LPCOMP interrupt modes.

Enumerator
CY_LPCOMP_INTR_DISABLE 

The LPCOMP interrupt disabled, no interrupt will be detected.

CY_LPCOMP_INTR_RISING 

The LPCOMP interrupt on the rising edge.

CY_LPCOMP_INTR_FALLING 

The LPCOMP interrupt on the falling edge.

CY_LPCOMP_INTR_BOTH 

The LPCOMP interrupt on both rising and falling edges.

◆ cy_en_lpcomp_pwr_t

The LPCOMP power-mode selection.

Enumerator
CY_LPCOMP_MODE_OFF 

The LPCOMP's channel power-off.

CY_LPCOMP_MODE_ULP 

The LPCOMP's channel ULP mode.

CY_LPCOMP_MODE_LP 

The LPCOMP's channel LP mode.

CY_LPCOMP_MODE_NORMAL 

The LPCOMP's channel normal mode.

◆ cy_en_lpcomp_inputs_t

The LPCOMP inputs.

Enumerator
CY_LPCOMP_SW_GPIO 

The LPCOMP input connects to GPIO pin.

CY_LPCOMP_SW_AMUXBUSA 

The LPCOMP input connects to AMUXBUSA.

CY_LPCOMP_SW_AMUXBUSB 

The LPCOMP input connects to AMUXBUSB.

CY_LPCOMP_SW_LOCAL_VREF 

The LPCOMP input connects to local VREF.

◆ cy_en_lpcomp_status_t

The LPCOMP error codes.

Enumerator
CY_LPCOMP_SUCCESS 

Successful.

CY_LPCOMP_BAD_PARAM 

One or more invalid parameters.

CY_LPCOMP_TIMEOUT 

Operation timed out.

CY_LPCOMP_INVALID_STATE 

Operation not setup or is in an improper state.

CY_LPCOMP_UNKNOWN 

Unknown failure.