API Reference | |
| Initialization Functions | |
| This set of functions is used to configure the DAC. | |
| LUT Functions | |
| This set of functions is used for data handling in the DAC look-up table. | |
Functions | |
| __STATIC_INLINE uint16_t | Cy_AutAnalog_DAC_GetLimitStatus (uint8_t dacIdx) |
| Provides the range detection status for the DAC channels, except FW channel #15. More... | |
| __STATIC_INLINE void | Cy_AutAnalog_DAC_ClearLimitStatus (uint8_t dacIdx, uint16_t chMask) |
| Clears the range detection status for the DAC channels. More... | |
| __STATIC_INLINE void | Cy_AutAnalog_DAC_WriteNextSample (uint8_t dacIdx, int32_t sample) |
| Loads a value that will update the DAC output on the next refresh cycle, applicable to FW channel #15 only. More... | |
| __STATIC_INLINE int32_t | Cy_AutAnalog_DAC_ReadNextSample (uint8_t dacIdx) |
| Reads the DAC output register. More... | |
| __STATIC_INLINE uint16_t Cy_AutAnalog_DAC_GetLimitStatus | ( | uint8_t | dacIdx | ) |
Provides the range detection status for the DAC channels, except FW channel #15.
The DAC sets this bit for each channel when the condition specified by the cy_stc_autanalog_dac_sta_t::chLimitCfg is met.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| __STATIC_INLINE void Cy_AutAnalog_DAC_ClearLimitStatus | ( | uint8_t | dacIdx, |
| uint16_t | chMask | ||
| ) |
Clears the range detection status for the DAC channels.
See Cy_AutAnalog_DAC_GetLimitStatus
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| chMask | The combined mask for DAC channels that require a reset of their range detection status. |
| __STATIC_INLINE void Cy_AutAnalog_DAC_WriteNextSample | ( | uint8_t | dacIdx, |
| int32_t | sample | ||
| ) |
Loads a value that will update the DAC output on the next refresh cycle, applicable to FW channel #15 only.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| sample | The sample value to update of the DAC output for the next refresh cycle. |
| __STATIC_INLINE int32_t Cy_AutAnalog_DAC_ReadNextSample | ( | uint8_t | dacIdx | ) |
Reads the DAC output register.
Applicable to FW channel #15 only.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |