This set of functions is for configuring basic usage of the CTB. More...
Functions | |
void | Cy_CTB_SetDeepSleepMode (CTBM_Type *base, bool deepSleep) |
Enables or disables the entire CTB (not per opamp) in Deep Sleep mode. More... | |
void | Cy_CTB_SetOutputMode (CTBM_Type *base, cy_en_ctb_opamp_sel_t opampNum, cy_en_ctb_output_t outputMode) |
Sets the opamp Output mode to internal (1x) drive, external (10x) drive, or Comparator mode. More... | |
void | Cy_CTB_SetPower (CTBM_Type *base, cy_en_ctb_opamp_sel_t opampNum, cy_en_ctb_power_t power, bool pump) |
Configures the power level and charge pump for a specific opamp. More... | |
void | Cy_CTB_SetPumpClkSource (CTBM_Type *base, cy_en_ctb_clk_pump_source_t pumpClk) |
Sets the clock source for both charge pumps in the CTB. More... | |
This set of functions is for configuring basic usage of the CTB.
void Cy_CTB_SetDeepSleepMode | ( | CTBM_Type * | base, |
bool | deepSleep | ||
) |
Enables or disables the entire CTB (not per opamp) in Deep Sleep mode.
If enabled, ensure that only internal CTB switches are used for routing. Switches on AMUXBUSA and AMUXBUSB are not enabled in Deep Sleep. See the Configuration Dependencies section for more information.
base | The pointer to structure-describing registers. |
deepSleep | Enable operation in Deep Sleep power mode |
void Cy_CTB_SetOutputMode | ( | CTBM_Type * | base, |
cy_en_ctb_opamp_sel_t | opampNum, | ||
cy_en_ctb_output_t | outputMode | ||
) |
Sets the opamp Output mode to internal (1x) drive, external (10x) drive, or Comparator mode.
base | The pointer to structure-describing registers. |
opampNum | CY_CTB_OPAMP_0, CY_CTB_OPAMP_1, or CY_CTB_OPAMP_BOTH |
outputMode | Opamp mode selection. Select a value from cy_en_ctb_output_t. |
void Cy_CTB_SetPower | ( | CTBM_Type * | base, |
cy_en_ctb_opamp_sel_t | opampNum, | ||
cy_en_ctb_power_t | power, | ||
bool | pump | ||
) |
Configures the power level and charge pump for a specific opamp.
At higher power levels, the opamp consumes more current but provides more gain bandwidth. Enabling the charge pump increases the current but provides a rail-to-rail input range. Disabling the charge pump limits the input range to VDDA - 1.5 V. See the device datasheet for performance specifications.
base | The pointer to structure-describing registers. |
opampNum | CY_CTB_OPAMP_0, CY_CTB_OPAMP_1, or CY_CTB_OPAMP_BOTH |
power | Power mode selection. Select a value from cy_en_ctb_power_t. |
pump | Enable or disable the charge pump. |
void Cy_CTB_SetPumpClkSource | ( | CTBM_Type * | base, |
cy_en_ctb_clk_pump_source_t | pumpClk | ||
) |
Sets the clock source for both charge pumps in the CTB.
Recall that each opamp has its own charge pump.
base | The pointer to structure-describing registers. |
pumpClk | Clock source selection for the pump. See cy_en_ctb_clk_pump_source_t. |