MTB CAT1 Peripheral driver library

General Description

Enumerations

enum  cy_en_csd_status_t {
  CY_CSD_SUCCESS = 0x00U,
  CY_CSD_BAD_PARAM = CY_CSD_ID | CY_PDL_STATUS_ERROR | 0x01U,
  CY_CSD_BUSY = CY_CSD_ID | CY_PDL_STATUS_ERROR | 0x02U,
  CY_CSD_LOCKED = CY_CSD_ID | CY_PDL_STATUS_ERROR | 0x03U
}
 CSD status definitions. More...
 
enum  cy_en_csd_key_t {
  CY_CSD_NONE_KEY = 0U,
  CY_CSD_USER_DEFINED_KEY = 1U,
  CY_CSD_CAPSENSE_KEY = 2U,
  CY_CSD_ADC_KEY = 3U,
  CY_CSD_IDAC_KEY = 4U,
  CY_CSD_CMP_KEY = 5U
}
 Definitions of upper level keys that use the driver. More...
 

Enumeration Type Documentation

◆ cy_en_csd_status_t

CSD status definitions.

Enumerator
CY_CSD_SUCCESS 

Successful.

CY_CSD_BAD_PARAM 

One or more invalid parameters.

CY_CSD_BUSY 

The CSD HW block performs conversion.

CY_CSD_LOCKED 

The CSD HW block is captured by another middleware.

◆ cy_en_csd_key_t

Definitions of upper level keys that use the driver.

Each middleware has a unique key assigned. When middleware successfully captures the CSD HW block, this key is placed into the CSD driver context structure. All attempts to capture the CSD HW block by other middleware are rejected. When the first middleware releases the CSD HW block, CY_CSD_NONE_KEY is written to the lockKey variable of the CSD driver context structure and any other middleware can capture the CSD HW block.

Enumerator
CY_CSD_NONE_KEY 

The CSD HW block is unused and not captured by any middleware.

CY_CSD_USER_DEFINED_KEY 

The CSD HW block is captured by the application program directly to implement a customer's specific case.

CY_CSD_CAPSENSE_KEY 

The CSD HW block is captured by a CAPSENSE middleware.

CY_CSD_ADC_KEY 

The CSD HW block is captured by a CSDADC middleware.

CY_CSD_IDAC_KEY 

The CSD HW block is captured by a CSDIDAC middleware.

CY_CSD_CMP_KEY 

The CSD HW block is captured by a CMP middleware.