This set of functions is used for data handling in the DAC look-up table.
Functions | |
| __STATIC_INLINE int32_t | Cy_AutAnalog_DAC_Data_ReadSample (uint8_t dacIdx, uint16_t dataIdx) |
| Reads data for a DAC sample from the look-up table at the defined index. More... | |
| __STATIC_INLINE cy_en_autanalog_dac_out_drive_mode_t | Cy_AutAnalog_DAC_Data_GetDriveMode (uint8_t dacIdx, uint16_t dataIdx) |
| Reads the drive mode of the DAC output from the look-up table at the defined index. More... | |
| __STATIC_INLINE void | Cy_AutAnalog_DAC_Data_WriteSample (uint8_t dacIdx, uint16_t dataIdx, int32_t sample) |
| Writes data for a DAC sample to a look-up table at a defined index. More... | |
| __STATIC_INLINE void | Cy_AutAnalog_DAC_Data_SetDriveMode (uint8_t dacIdx, uint16_t dataIdx, cy_en_autanalog_dac_out_drive_mode_t driveMode) |
| Writes the drive mode of the DAC output to the look-up table at a defined index. More... | |
| cy_en_autanalog_status_t | Cy_AutAnalog_DAC_Data_ReadWaveform (uint8_t dacIdx, uint16_t dataIdx, uint16_t numSamples, int32_t *waveform) |
| Reads a block of samples for the entire waveform from the DAC look-up table, starting from a defined index. More... | |
| cy_en_autanalog_status_t | Cy_AutAnalog_DAC_Data_GetDriveModeArray (uint8_t dacIdx, uint16_t dataIdx, uint16_t numSamples, cy_en_autanalog_dac_out_drive_mode_t *driveModeArray) |
| Reads the block of Drive mode configurations for the DAC output from the look-up table. More... | |
| cy_en_autanalog_status_t | Cy_AutAnalog_DAC_Data_WriteWaveform (uint8_t dacIdx, uint16_t dataIdx, uint16_t numSamples, const int32_t *waveform) |
| Writes a block of samples for the entire waveform into the DAC look-up table, starting from a defined index. More... | |
| cy_en_autanalog_status_t | Cy_AutAnalog_DAC_Data_SetDriveModeArray (uint8_t dacIdx, uint16_t dataIdx, uint16_t numSamples, const cy_en_autanalog_dac_out_drive_mode_t *driveModeArray) |
| Writes a block of Drive mode configurations for the DAC output to the look-up table. More... | |
| void | Cy_AutAnalog_DAC_Data_SetDriveModeAll (uint8_t dacIdx, const cy_en_autanalog_dac_out_drive_mode_t driveModeAll) |
| Modifies the DAC output Drive mode for the entire look-up table according to the supplied configuration. More... | |
| __STATIC_INLINE int32_t Cy_AutAnalog_DAC_Data_ReadSample | ( | uint8_t | dacIdx, |
| uint16_t | dataIdx | ||
| ) |
Reads data for a DAC sample from the look-up table at the defined index.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| dataIdx | The sample index in the DAC look-up table. |
| __STATIC_INLINE cy_en_autanalog_dac_out_drive_mode_t Cy_AutAnalog_DAC_Data_GetDriveMode | ( | uint8_t | dacIdx, |
| uint16_t | dataIdx | ||
| ) |
Reads the drive mode of the DAC output from the look-up table at the defined index.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| dataIdx | The sample index in the DAC look-up table. |
| __STATIC_INLINE void Cy_AutAnalog_DAC_Data_WriteSample | ( | uint8_t | dacIdx, |
| uint16_t | dataIdx, | ||
| int32_t | sample | ||
| ) |
Writes data for a DAC sample to a look-up table at a defined index.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| dataIdx | The sample index in the DAC look-up table. |
| sample | The sample value for the DAC look-up table. |
| __STATIC_INLINE void Cy_AutAnalog_DAC_Data_SetDriveMode | ( | uint8_t | dacIdx, |
| uint16_t | dataIdx, | ||
| cy_en_autanalog_dac_out_drive_mode_t | driveMode | ||
| ) |
Writes the drive mode of the DAC output to the look-up table at a defined index.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| dataIdx | The sample index in the DAC look-up table. |
| driveMode | The configuration of the DAC output drive mode, see cy_en_autanalog_dac_out_drive_mode_t. |
| cy_en_autanalog_status_t Cy_AutAnalog_DAC_Data_ReadWaveform | ( | uint8_t | dacIdx, |
| uint16_t | dataIdx, | ||
| uint16_t | numSamples, | ||
| int32_t * | waveform | ||
| ) |
Reads a block of samples for the entire waveform from the DAC look-up table, starting from a defined index.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| dataIdx | Start index of the DAC waveform in the look-up table. See cy_stc_autanalog_dac_ch_t::startAddr |
| numSamples | The number of samples for the DAC waveform: numSamples = endAddr - startAddr + 1; see cy_stc_autanalog_dac_ch_t. |
| waveform | The pointer to the location of the DAC waveform data. |
| cy_en_autanalog_status_t Cy_AutAnalog_DAC_Data_GetDriveModeArray | ( | uint8_t | dacIdx, |
| uint16_t | dataIdx, | ||
| uint16_t | numSamples, | ||
| cy_en_autanalog_dac_out_drive_mode_t * | driveModeArray | ||
| ) |
Reads the block of Drive mode configurations for the DAC output from the look-up table.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| dataIdx | Start index of the waveform in the DAC look-up table. See cy_stc_autanalog_dac_ch_t::startAddr |
| numSamples | The number of samples for the DAC waveform: numSamples = endAddr - startAddr + 1; see cy_stc_autanalog_dac_ch_t. |
| driveModeArray | The pointer to the location of the DAC output drive mode configurations, see cy_en_autanalog_dac_out_drive_mode_t. |
| cy_en_autanalog_status_t Cy_AutAnalog_DAC_Data_WriteWaveform | ( | uint8_t | dacIdx, |
| uint16_t | dataIdx, | ||
| uint16_t | numSamples, | ||
| const int32_t * | waveform | ||
| ) |
Writes a block of samples for the entire waveform into the DAC look-up table, starting from a defined index.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| dataIdx | Start index of the waveform in the DAC look-up table. See cy_stc_autanalog_dac_ch_t::startAddr |
| numSamples | The number of samples for the DAC waveform: numSamples = endAddr - startAddr + 1; see cy_stc_autanalog_dac_ch_t. |
| waveform | The pointer to the location of the DAC waveform data. |
| cy_en_autanalog_status_t Cy_AutAnalog_DAC_Data_SetDriveModeArray | ( | uint8_t | dacIdx, |
| uint16_t | dataIdx, | ||
| uint16_t | numSamples, | ||
| const cy_en_autanalog_dac_out_drive_mode_t * | driveModeArray | ||
| ) |
Writes a block of Drive mode configurations for the DAC output to the look-up table.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| dataIdx | Start index of the waveform in the DAC look-up table. See cy_stc_autanalog_dac_ch_t::startAddr |
| numSamples | The number of samples for the waveform: numSamples = endAddr - startAddr + 1; see cy_stc_autanalog_dac_ch_t. |
| driveModeArray | The pointer to the location of the DAC output drive mode configurations, see cy_en_autanalog_dac_out_drive_mode_t. |
| void Cy_AutAnalog_DAC_Data_SetDriveModeAll | ( | uint8_t | dacIdx, |
| const cy_en_autanalog_dac_out_drive_mode_t | driveModeAll | ||
| ) |
Modifies the DAC output Drive mode for the entire look-up table according to the supplied configuration.
| dacIdx | The index of the DAC subsystem within the Autonomous Analog, see cy_stc_autanalog_cfg_t::dac |
| driveModeAll | The DAC output drive mode configuration, see cy_en_autanalog_dac_out_drive_mode_t. |