enum 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.
Enumerator | |
---|---|
CY_CTDAC_UPDATE_DIRECT_WRITE | DAC value is updated with a direct write by calling to Cy_CTDAC_SetValue. |
CY_CTDAC_UPDATE_BUFFERED_WRITE | DAC value stored with Cy_CTDAC_SetValueBuffered is updated on the next CTDAC clock edge. |
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. |
CY_CTDAC_UPDATE_STROBE_EDGE_IMMEDIATE | DAC value stored with Cy_CTDAC_SetValueBuffered is updated on the rising edge of the strobe input. |
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. |
enum cy_en_ctdac_format_t |
Configure the output state of the CTDAC.
Configure the deglitch mode.
See the Deglitch section for more information on how deglitching works.
Configure the reference source for the CTDAC.
The CVD switch is closed when Vdda is the reference source.
Enumerator | |
---|---|
CY_CTDAC_REFSOURCE_EXTERNAL | Use an external source from Opamp1 of the CTB as the reference. CVD switch is open. |
CY_CTDAC_REFSOURCE_VDDA | Use Vdda as the reference. CVD switch is closed. |
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.
Enumerator | |
---|---|
CY_CTDAC_OUTPUT_BUFFERED | Buffer the output through the CTB OA0. |
CY_CTDAC_OUTPUT_UNBUFFERED | Send output to a direct pin. |
Switch state, either open or closed, to be used in Cy_CTDAC_SetAnalogSwitch.
Enumerator | |
---|---|
CY_CTDAC_SWITCH_OPEN | Open the switch. |
CY_CTDAC_SWITCH_CLOSE | Close the switch. |
Switch mask to be used in Cy_CTDAC_SetAnalogSwitch.
Enumerator | |
---|---|
CY_CTDAC_SWITCH_CVD_MASK | Switch for the reference source, Vdda or external. |
CY_CTDAC_SWITCH_CO6_MASK | Switch for the output, buffered or direct. |
enum cy_en_ctdac_status_t |
Return states for Cy_CTDAC_Init, Cy_CTDAC_DeInit, and Cy_CTDAC_FastInit.
Enumerator | |
---|---|
CY_CTDAC_SUCCESS | Initialization completed successfully. |
CY_CTDAC_BAD_PARAM | Input pointers were NULL and Initialization could not be completed. |