Enumerated Types¶
-
group
group_ctdac_enums
Enums
-
enum
cy_en_ctdac_update_t
cy_en_ctdac_update_t: Configure the mode for how the DAC value is updated.
All the modes require a CTDAC clock except for Direct write.
Values:
-
enumerator
CY_CTDAC_UPDATE_DIRECT_WRITE
DAC value is updated with a direct write by calling to Cy_CTDAC_SetValue.
-
enumerator
CY_CTDAC_UPDATE_BUFFERED_WRITE
DAC value stored with Cy_CTDAC_SetValueBuffered is updated on the next CTDAC clock edge.
-
enumerator
CY_CTDAC_UPDATE_STROBE_EDGE_SYNC
DAC value stored with Cy_CTDAC_SetValueBuffered is updated on the next CTDAC clock edge after a rising edge of the strobe.
-
enumerator
CY_CTDAC_UPDATE_STROBE_EDGE_IMMEDIATE
DAC value stored with Cy_CTDAC_SetValueBuffered is updated on the rising edge of the strobe input.
-
enumerator
CY_CTDAC_UPDATE_STROBE_LEVEL
DAC value stored with Cy_CTDAC_SetValueBuffered is updated on every CTDAC clock edge while the strobe line is high.
-
enumerator
-
enum
cy_en_ctdac_format_t
cy_en_ctdac_format_t: Configure the format in which the DAC value register is decoded.
Values:
-
enumerator
CY_CTDAC_FORMAT_UNSIGNED
Unsigned 12-bit DAC.
No value decoding
-
enumerator
CY_CTDAC_FORMAT_SIGNED
Virtual signed.
Add 0x800 to the 12-bit DAC value
-
enumerator
-
enum
cy_en_ctdac_deep_sleep_t
cy_en_ctdac_deep_sleep_t: Enable or disable the CTDAC hardware during Deep Sleep.
Values:
-
enumerator
CY_CTDAC_DEEPSLEEP_DISABLE
DAC is disabled during Deep Sleep power mode.
-
enumerator
CY_CTDAC_DEEPSLEEP_ENABLE
DAC remains enabled during Deep Sleep power mode.
-
enumerator
-
enum
cy_en_ctdac_output_mode_t
cy_en_ctdac_output_mode_t: Configure the output state of the CTDAC.
Values:
-
enumerator
CY_CTDAC_OUTPUT_HIGHZ
DAC output is tri-state.
-
enumerator
CY_CTDAC_OUTPUT_VALUE
DAC Output is enabled and drives the programmed value.
-
enumerator
CY_CTDAC_OUTPUT_VALUE_PLUS1
DAC Output enabled and drives the programmed value plus 1.
-
enumerator
CY_CTDAC_OUTPUT_VSSA
Output is pulled to Vssa through a 1.1 MOhm (typ) resistor.
-
enumerator
CY_CTDAC_OUTPUT_VREF
Output is pulled to Vref through a 1.1 MOhm (typ) resistor.
-
enumerator
-
enum
cy_en_ctdac_deglitch_t
cy_en_ctdac_deglitch_t: Configure the deglitch mode.
See the Deglitch section for more information on how deglitching works.
Values:
-
enumerator
CY_CTDAC_DEGLITCHMODE_NONE
Disable deglitch.
-
enumerator
CY_CTDAC_DEGLITCHMODE_UNBUFFERED
Deglitch through the CO6 switch.
-
enumerator
CY_CTDAC_DEGLITCHMODE_BUFFERED
Deglitch through the CTB COS switch.
-
enumerator
CY_CTDAC_DEGLITCHMODE_BOTH
Deglitch through both CO6 and CTB COS switches.
-
enumerator
-
enum
cy_en_ctdac_ref_source_t
cy_en_ctdac_ref_source_t: Configure the reference source for the CTDAC.
The CVD switch is closed when Vdda is the reference source.
Values:
-
enumerator
CY_CTDAC_REFSOURCE_EXTERNAL
Use an external source from Opamp1 of the CTB as the reference.
CVD switch is open.
-
enumerator
CY_CTDAC_REFSOURCE_VDDA
Use Vdda as the reference.
CVD switch is closed.
-
enumerator
-
enum
cy_en_ctdac_output_buffer_t
cy_en_ctdac_output_buffer_t: Configure the output to be buffered or unbuffered.
The CO6 switch is closed when the output is unbuffered to Pin 6 of the CTDAC port. See the device datasheet for the CTDAC port.
Values:
-
enumerator
CY_CTDAC_OUTPUT_BUFFERED
Buffer the output through the CTB OA0.
-
enumerator
CY_CTDAC_OUTPUT_UNBUFFERED
Send output to a direct pin.
-
enumerator
-
enum
cy_en_ctdac_switch_state_t
cy_en_ctdac_switch_state_t: Switch state, either open or closed, to be used in Cy_CTDAC_SetAnalogSwitch.
Values:
-
enumerator
CY_CTDAC_SWITCH_OPEN
Open the switch.
-
enumerator
CY_CTDAC_SWITCH_CLOSE
Close the switch.
-
enumerator
-
enum
cy_en_ctdac_switches_t
cy_en_ctdac_switches_t: Switch mask to be used in Cy_CTDAC_SetAnalogSwitch.
Values:
-
enumerator
CY_CTDAC_SWITCH_CVD_MASK
Switch for the reference source, Vdda or external.
-
enumerator
CY_CTDAC_SWITCH_CO6_MASK
Switch for the output, buffered or direct.
-
enumerator
-
enum
cy_en_ctdac_status_t
cy_en_ctdac_status_t: Return states for Cy_CTDAC_Init, Cy_CTDAC_DeInit, and Cy_CTDAC_FastInit.
Values:
-
enumerator
CY_CTDAC_SUCCESS
Initialization completed successfully.
-
enumerator
CY_CTDAC_BAD_PARAM
Input pointers were NULL and Initialization could not be completed.
-
enumerator
-
enum