Data Structures

group group_ctb_data_structures
struct CTBM_Type
#include <ip_type.h>

struct cy_stc_ctb_config_t
#include <cy_ctb.h>

Configuration structure to set up the entire CTB to be used with Cy_CTB_Init.

Public Members

cy_en_ctb_deep_sleep_t deepSleep

Enable or disable the CTB during Deep Sleep.

cy_en_ctb_power_t oa0Power

Opamp0 power mode: off, low, medium, or high.

cy_en_ctb_mode_t oa0Mode

Opamp0 usage mode: 1x drive, 10x drive, or as a comparator.

cy_en_ctb_pump_t oa0Pump

Opamp0 charge pump: enable to increase input range for rail-to-rail operation.

cy_en_ctb_comp_edge_t oa0CompEdge

Opamp0 comparator edge detection: disable, rising, falling, or both.

cy_en_ctb_comp_level_t oa0CompLevel

Opamp0 comparator DSI (trigger) output: pulse or level.

cy_en_ctb_comp_bypass_t oa0CompBypass

Opamp0 comparator DSI (trigger) output synchronization.

cy_en_ctb_comp_hyst_t oa0CompHyst

Opamp0 comparator hysteresis: enable for 10 mV hysteresis.

bool oa0CompIntrEn

Opamp0 comparator interrupt enable.

cy_en_ctb_power_t oa1Power

Opamp1 power mode: off, low, medium, or high.

cy_en_ctb_mode_t oa1Mode

Opamp1 usage mode: 1x drive, 10x drive, or as a comparator.

cy_en_ctb_pump_t oa1Pump

Opamp1 charge pump: enable to increase input range for rail-to-rail operation.

cy_en_ctb_comp_edge_t oa1CompEdge

Opamp1 comparator edge detection: disable, rising, falling, or both.

cy_en_ctb_comp_level_t oa1CompLevel

Opamp1 comparator DSI (trigger) output: pulse or level.

cy_en_ctb_comp_bypass_t oa1CompBypass

Opamp1 comparator DSI (trigger) output synchronization.

cy_en_ctb_comp_hyst_t oa1CompHyst

Opamp1 comparator hysteresis: enable for 10 mV hysteresis.

bool oa1CompIntrEn

Opamp1 comparator interrupt enable.

bool configRouting

Configure or ignore routing related registers.

uint32_t oa0SwitchCtrl

Opamp0 routing control.

uint32_t oa1SwitchCtrl

Opamp1 routing control.

uint32_t ctdSwitchCtrl

Routing control between the CTDAC and CTB blocks.

struct cy_stc_ctb_opamp_config_t
#include <cy_ctb.h>

This configuration structure is used to initialize only one opamp of the CTB without impacting analog routing.

This structure is used with Cy_CTB_OpampInit.

Public Members

cy_en_ctb_deep_sleep_t deepSleep

Enable or disable the CTB during Deep Sleep.

cy_en_ctb_power_t oaPower

Opamp power mode: off, low, medium, or high.

cy_en_ctb_mode_t oaMode

Opamp usage mode: 1x drive, 10x drive, or as a comparator.

cy_en_ctb_pump_t oaPump

Opamp charge pump: enable to increase input range for rail-to-rail operation.

cy_en_ctb_comp_edge_t oaCompEdge

Opamp comparator edge detection: disable, rising, falling, or both.

cy_en_ctb_comp_level_t oaCompLevel

Opamp comparator DSI (trigger) output: pulse or level.

cy_en_ctb_comp_bypass_t oaCompBypass

Opamp comparator DSI (trigger) output synchronization.

cy_en_ctb_comp_hyst_t oaCompHyst

Opamp comparator hysteresis: enable for 10 mV hysteresis.

bool oaCompIntrEn

Opamp comparator interrupt enable.

struct cy_stc_ctb_fast_config_oa0_t
#include <cy_ctb.h>

This configuration structure is used to quickly initialize Opamp0 for the most commonly used configurations.

Other configuration options are set to:

Public Members

cy_en_ctb_power_t oa0Power

Opamp0 power mode: off, low, medium, or high.

cy_en_ctb_mode_t oa0Mode

Opamp0 usage mode: 1x drive, 10x drive, or as a comparator.

uint32_t oa0SwitchCtrl

Opamp0 routing control.

uint32_t ctdSwitchCtrl

Routing control between the CTDAC and CTB blocks.

struct cy_stc_ctb_fast_config_oa1_t
#include <cy_ctb.h>

This configuration structure is used to quickly initialize Opamp1 for the most commonly used configurations.

Other configuration options are set to:

Public Members

cy_en_ctb_power_t oa1Power

Opamp1 power mode: off, low, medium, or high.

cy_en_ctb_mode_t oa1Mode

Opamp1 usage mode: 1x drive, 10x drive, or as a comparator.

uint32_t oa1SwitchCtrl

Opamp1 routing control.

uint32_t ctdSwitchCtrl

Routing control between the CTDAC and CTB blocks.