This set of functions is for controlling routing switches.
◆ Cy_CTB_SetAnalogSwitch()
Provide firmware control of the CTB switches.
Each call to this function can open a set of switches or close a set of switches in one register.
- Parameters
-
- Returns
- None
- Function Usage
◆ Cy_CTB_GetAnalogSwitch()
◆ Cy_CTB_OpenAllSwitches()
__STATIC_INLINE void Cy_CTB_OpenAllSwitches |
( |
CTBM_Type * |
base | ) |
|
Open all the switches and disable all hardware (SAR Sequencer and DSI) control of the switches.
Primarily used as a quick method of re-configuring all analog connections that are sparsely closed.
- Parameters
-
base | Pointer to structure describing registers |
- Returns
- None
- Function Usage
◆ Cy_CTB_EnableSarSeqCtrl()
Enable SAR sequencer control of specified switch(es).
This allows the SAR ADC to use routes through the CTB when configuring its channels.
There are three switches in the CTB that can be enabled by the SAR sequencer.
- D51: This switch connects the negative input of Opamp0 to the SARBUS0
- D52: This switch connects the positive input of Opamp1 to the SARBUS0
- D62: This switch connects the positive input of Opamp1 to the SARBUS1
- Parameters
-
base | Pointer to structure describing registers |
switchMask | The switch or switches in which to enable SAR sequencer control. Use an enumerated value from cy_en_ctb_switch_sar_seq_t. |
- Returns
- None
- Function Usage
◆ Cy_CTB_DisableSarSeqCtrl()
Disable SAR sequencer control of specified switch(es).
- Parameters
-
base | Pointer to structure describing registers |
switchMask | The switch or switches in which to disable SAR sequencer control. Use an enumerated value from cy_en_ctb_switch_sar_seq_t. |
- Returns
- None
- Function Usage