CAT2 Peripheral Driver Library
EXPMUX/DIAGMUX Switch Control Register Masks

Mask definitions of EXPMUX/DIAGMUX switches that can be controlled by the SARSEQ. More...

Macros

#define CY_SAR_EXPMUX_HW_CTRL_P0   (SAR_MUX_SWITCH_HW_CTRL2_MUX_HW_CTRL_EXP_P0_Msk)
 Enable SARSEQ control of Pin 0 switches (for Vplus and Vminus) of EXPMUX dedicated port.
 
#define CY_SAR_EXPMUX_HW_CTRL_P1   (SAR_MUX_SWITCH_HW_CTRL2_MUX_HW_CTRL_EXP_P1_Msk)
 Enable SARSEQ control of Pin 1 switches (for Vplus and Vminus) of EXPMUX dedicated port.
 
#define CY_SAR_EXPMUX_HW_CTRL_P2   (SAR_MUX_SWITCH_HW_CTRL2_MUX_HW_CTRL_EXP_P2_Msk)
 Enable SARSEQ control of Pin 2 switches (for Vplus and Vminus) of EXPMUX dedicated port.
 
#define CY_SAR_EXPMUX_HW_CTRL_P3   (SAR_MUX_SWITCH_HW_CTRL2_MUX_HW_CTRL_EXP_P3_Msk)
 Enable SARSEQ control of Pin 3 switches (for Vplus and Vminus) of EXPMUX dedicated port.
 
#define CY_SAR_EXPMUX_HW_CTRL_P4   (SAR_MUX_SWITCH_HW_CTRL2_MUX_HW_CTRL_EXP_P4_Msk)
 Enable SARSEQ control of Pin 4 switches (for Vplus and Vminus) of EXPMUX dedicated port.
 
#define CY_SAR_EXPMUX_HW_CTRL_P5   (SAR_MUX_SWITCH_HW_CTRL2_MUX_HW_CTRL_EXP_P5_Msk)
 Enable SARSEQ control of Pin 5 switches (for Vplus and Vminus) of EXPMUX dedicated port.
 
#define CY_SAR_EXPMUX_HW_CTRL_P6   (SAR_MUX_SWITCH_HW_CTRL2_MUX_HW_CTRL_EXP_P6_Msk)
 Enable SARSEQ control of Pin 6 switches (for Vplus and Vminus) of EXPMUX dedicated port.
 
#define CY_SAR_EXPMUX_HW_CTRL_P7   (SAR_MUX_SWITCH_HW_CTRL2_MUX_HW_CTRL_EXP_P7_Msk)
 Enable SARSEQ control of Pin 7 switches (for Vplus and Vminus) of EXPMUX dedicated port.
 
#define CY_SAR_DIAGMUX_HW_CTRL_V0   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_VD0_VG0_Msk)
 Enable SARSEQ control of Pin 0 switches (for Vdiag and Vgnd) of DIAGMUX dedicated port.
 
#define CY_SAR_DIAGMUX_HW_CTRL_V1   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_VD1_VG1_Msk)
 Enable SARSEQ control of Pin 1 switches (for Vdiag and Vgnd) of DIAGMUX dedicated port.
 
#define CY_SAR_DIAGMUX_HW_CTRL_V2   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_VD2_VG2_Msk)
 Enable SARSEQ control of Pin 2 switches (for Vdiag and Vgnd) of DIAGMUX dedicated port.
 
#define CY_SAR_DIAGMUX_HW_CTRL_V3   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_VD3_VG3_Msk)
 Enable SARSEQ control of Pin 3 switches (for Vdiag and Vgnd) of DIAGMUX dedicated port.
 
#define CY_SAR_DIAGMUX_HW_CTRL_V4   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_VD4_Msk)
 Enable SARSEQ control of DIAGMUX dedicated port.
 
#define CY_SAR_DIAGMUX_HW_CTRL_V5   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_VD5_Msk)
 Enable SARSEQ control of DIAGMUX dedicated port.
 
#define CY_SAR_DIAGMUX_HW_CTRL_V6   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_VD6_Msk)
 Enable SARSEQ control of DIAGMUX dedicated port.
 
#define CY_SAR_DIAGMUX_HW_CTRL_V7   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_VD7_Msk)
 Enable SARSEQ control of DIAGMUX dedicated port.
 
#define CY_SAR_HW_CTRL_CSRC_VPLUS   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_CSRC_VPLUS_Msk)
 Enable SARSEQ control of source current connected to vplus.
 
#define CY_SAR_HW_CTRL_CSRC_VMINUS   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_CSRC_VMINUS_Msk)
 Enable SARSEQ control of source current connected to vminus.
 
#define CY_SAR_HW_CTRL_CSINK_VPLUS   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_CSRC_VPLUS_Msk)
 Enable SARSEQ control of sink current connected to vplus.
 
#define CY_SAR_HW_CTRL_CSINK_VMINUS   (SAR_MUX_SWITCH_HW_CTRL2_MUX_FW_CSRC_VMINUS_Msk)
 Enable SARSEQ control of sink current connected to vminus.
 
#define CY_SAR_EXPMUX_FW_P0_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P0_VPLUS_Msk)
 Switch between Pin 0 of EXPMUX and Vplus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P1_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P1_VPLUS_Msk)
 Switch between Pin 1 of EXPMUX and Vplus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P2_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P2_VPLUS_Msk)
 Switch between Pin 2 of EXPMUX and Vplus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P3_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P3_VPLUS_Msk)
 Switch between Pin 3 of EXPMUX and Vplus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P4_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P4_VPLUS_Msk)
 Switch between Pin 4 of EXPMUX and Vplus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P5_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P5_VPLUS_Msk)
 Switch between Pin 5 of EXPMUX and Vplus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P6_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P6_VPLUS_Msk)
 Switch between Pin 6 of EXPMUX and Vplus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P7_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P7_VPLUS_Msk)
 Switch between Pin 7 of EXPMUX and Vplus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VD0_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_VD0_VPLUS_Msk)
 Switch between internal Vdiag.0 and vplus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VD1_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_VD1_VPLUS_Msk)
 Switch between internal Vdiag.1 and vplus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VD2_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_VD2_VPLUS_Msk)
 Switch between internal Vdiag.2 and vplus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VD3_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_VD3_VPLUS_Msk)
 Switch between internal Vdiag.3 and vplus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VD4_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_VD4_VPLUS_Msk)
 Switch between internal Vdiag.4 and vplus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VD5_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_VD5_VPLUS_Msk)
 Switch between internal Vdiag.5 and vplus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VD6_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_VD6_VPLUS_Msk)
 Switch between internal Vdiag.6 and vplus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VD7_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_VD7_VPLUS_Msk)
 Switch between internal Vdiag.7 and vplus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P0_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P0_VMINUS_Msk)
 Switch between Pin 0 of EXPMUX and Vminus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P1_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P1_VMINUS_Msk)
 Switch between Pin 1 of EXPMUX and Vminus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P2_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P2_VMINUS_Msk)
 Switch between Pin 2 of EXPMUX and Vminus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P3_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P3_VMINUS_Msk)
 Switch between Pin 3 of EXPMUX and Vminus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P4_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P4_VMINUS_Msk)
 Switch between Pin 4 of EXPMUX and Vminus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P5_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P5_VMINUS_Msk)
 Switch between Pin 5 of EXPMUX and Vminus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P6_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P6_VMINUS_Msk)
 Switch between Pin 6 of EXPMUX and Vminus of SARADC.
 
#define CY_SAR_EXPMUX_FW_P7_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_EXP_P7_VMINUS_Msk)
 Switch between Pin 7 of EXPMUX and Vminus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VG0_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_VG0_VMINUS_Msk)
 Switch between internal Vdiag.0 and Vminus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VG1_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_VG1_VMINUS_Msk)
 Switch between internal Vdiag.1 and Vminus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VG2_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_VG2_VMINUS_Msk)
 Switch between internal Vdiag.2 and Vminus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_VG3_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_VG3_VMINUS_Msk)
 Switch between internal Vdiag.3 and Vminus of SARADC.
 
#define CY_SAR_DIAGMUX_FW_CSRC_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_CSRC_VPLUS_Msk)
 switch between 10uA current source and the vplus signal
 
#define CY_SAR_DIAGMUX_FW_CSINK_VPLUS   (SAR_MUX_SWITCH2_MUX_FW_CSINK_VPLUS_Msk)
 switch between 10uA current sink and the vplus signal
 
#define CY_SAR_DIAGMUX_FW_CSRC_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_CSRC_VMINUS_Msk)
 switch between 10uA current source and the vminus signal
 
#define CY_SAR_DIAGMUX_FW_CSINK_VMINUS   (SAR_MUX_SWITCH2_MUX_FW_CSINK_VMINUS_Msk)
 switch between 10uA current sink and the vminus signal
 

Detailed Description

Mask definitions of EXPMUX/DIAGMUX switches that can be controlled by the SARSEQ.

To enable the sequencer control of multiple switches, "OR" the values together.

Note
Applicable to PSOC4 HVMS/PA only.