PSoC 6 Peripheral Driver Library
Enumerated Types

General Description

API Reference

 Control Register Enums
 This set of enumerations aids in configuring the SAR CTRL register.
 
 Sample Control Register Enums
 This set of enumerations are used in configuring the SAR SAMPLE_CTRL register.
 
 Sample Time Register Enums
 This set of enumerations aids in configuring the SAR SAMPLE_TIME* registers.
 
 Range Interrupt Register Enums
 This set of enumerations aids in configuring the SAR RANGE* registers.
 
 Channel Configuration Register Enums
 This set of enumerations aids in configuring the SAR CHAN_CONFIG register.
 
 Interrupt Mask Register Enums
 This set of enumerations aids in configuring the SAR INTR_MASK register.
 
 SARMUX Switch Control Register Enums
 This set of enumerations aids in configuring the uint32_t muxSwitch and uint32_t muxSwitchSqCtrl registers.
 

Enumerations

enum  cy_en_sar_status_t {
  CY_SAR_SUCCESS = 0x00uL,
  CY_SAR_BAD_PARAM = CY_SAR_ID | CY_PDL_STATUS_ERROR | 0x01uL,
  CY_SAR_TIMEOUT = CY_SAR_ID | CY_PDL_STATUS_ERROR | 0x02uL,
  CY_SAR_CONVERSION_NOT_COMPLETE = CY_SAR_ID | CY_PDL_STATUS_ERROR | 0x03uL
}
 The SAR status/error code definitions. More...
 
enum  cy_en_sar_start_convert_sel_t {
  CY_SAR_START_CONVERT_SINGLE_SHOT = 0uL,
  CY_SAR_START_CONVERT_CONTINUOUS = 1uL
}
 Definitions for starting a conversion used in Cy_SAR_StartConvert. More...
 
enum  cy_en_sar_return_mode_t {
  CY_SAR_RETURN_STATUS = 0uL,
  CY_SAR_WAIT_FOR_RESULT = 1uL
}
 Definitions for the return mode used in Cy_SAR_IsEndConversion. More...
 
enum  cy_en_sar_switch_state_t {
  CY_SAR_SWITCH_OPEN = 0uL,
  CY_SAR_SWITCH_CLOSE = 1uL
}
 Switch state definitions. More...
 
enum  cy_en_sar_switch_sar_seq_ctrl_t {
  CY_SAR_SWITCH_SEQ_CTRL_DISABLE = 0uL,
  CY_SAR_SWITCH_SEQ_CTRL_ENABLE = 1uL
}
 Definitions for sequencer control of switches. More...
 
enum  cy_en_sar_switch_register_sel_t { CY_SAR_MUX_SWITCH0 = 0uL }
 Switch register selection for Cy_SAR_SetAnalogSwitch and Cy_SAR_GetAnalogSwitch. More...
 

Enumeration Type Documentation

◆ cy_en_sar_status_t

The SAR status/error code definitions.

Enumerator
CY_SAR_SUCCESS 

Success.

CY_SAR_BAD_PARAM 

Invalid input parameters.

CY_SAR_TIMEOUT 

A timeout occurred.

CY_SAR_CONVERSION_NOT_COMPLETE 

SAR conversion is not complete.

◆ cy_en_sar_start_convert_sel_t

Definitions for starting a conversion used in Cy_SAR_StartConvert.

Enumerator
CY_SAR_START_CONVERT_SINGLE_SHOT 

Start a single scan (one shot) from firmware.

CY_SAR_START_CONVERT_CONTINUOUS 

Continuously scan enabled channels and ignores all triggers, firmware or hardware.

◆ cy_en_sar_return_mode_t

Definitions for the return mode used in Cy_SAR_IsEndConversion.

Enumerator
CY_SAR_RETURN_STATUS 

Immediately returns the conversion status.

CY_SAR_WAIT_FOR_RESULT 

Does not return a result until the conversion of all sequential channels is complete.

This mode is blocking.

◆ cy_en_sar_switch_state_t

Switch state definitions.

Enumerator
CY_SAR_SWITCH_OPEN 

Open the switch.

CY_SAR_SWITCH_CLOSE 

Close the switch.

◆ cy_en_sar_switch_sar_seq_ctrl_t

Definitions for sequencer control of switches.

Enumerator
CY_SAR_SWITCH_SEQ_CTRL_DISABLE 

Disable sequencer control of switch.

CY_SAR_SWITCH_SEQ_CTRL_ENABLE 

Enable sequencer control of switch.

◆ cy_en_sar_switch_register_sel_t

Switch register selection for Cy_SAR_SetAnalogSwitch and Cy_SAR_GetAnalogSwitch.

Enumerator
CY_SAR_MUX_SWITCH0 

SARMUX switch control register.