MTB CAT1 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 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_AMUXBUSA = 0x02u,
  CY_LPCOMP_SW_AMUXBUSB = 0x04u,
  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...
 

Enumeration Type Documentation

◆ 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

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

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

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

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.

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

The low-power comparator inputs.

Enumerator
CY_LPCOMP_SW_GPIO 

The low-power comparator input connects to GPIO pin.

CY_LPCOMP_SW_AMUXBUSA 

The low-power comparator input connects to AMUXBUSA.

CY_LPCOMP_SW_AMUXBUSB 

The low-power comparator input connects to AMUXBUSB.

CY_LPCOMP_SW_LOCAL_VREF 

The low-power comparator input connects to local VREF.

◆ 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.