|
STM32H735xx HAL User Manual
|
Extended IO operation functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_DACEx_DualStart (DAC_HandleTypeDef *hdac) |
| Enables DAC and starts conversion of both channels. | |
| HAL_StatusTypeDef | HAL_DACEx_DualStop (DAC_HandleTypeDef *hdac) |
| Disables DAC and stop conversion of both channels. | |
| HAL_StatusTypeDef | HAL_DACEx_DualStart_DMA (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t *pData, uint32_t Length, uint32_t Alignment) |
| Enables DAC and starts conversion of both channel 1 and 2 of the same DAC. | |
| HAL_StatusTypeDef | HAL_DACEx_DualStop_DMA (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Disables DAC and stop conversion both channel. | |
| HAL_StatusTypeDef | HAL_DACEx_TriangleWaveGenerate (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Amplitude) |
| Enable or disable the selected DAC channel wave generation. | |
| HAL_StatusTypeDef | HAL_DACEx_NoiseWaveGenerate (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Amplitude) |
| Enable or disable the selected DAC channel wave generation. | |
| HAL_StatusTypeDef | HAL_DACEx_DualSetValue (DAC_HandleTypeDef *hdac, uint32_t Alignment, uint32_t Data1, uint32_t Data2) |
| Set the specified data holding register value for dual DAC channel. | |
| __weak void | HAL_DACEx_ConvCpltCallbackCh2 (DAC_HandleTypeDef *hdac) |
| Conversion complete callback in non-blocking mode for Channel2. | |
| __weak void | HAL_DACEx_ConvHalfCpltCallbackCh2 (DAC_HandleTypeDef *hdac) |
| Conversion half DMA transfer callback in non-blocking mode for Channel2. | |
| __weak void | HAL_DACEx_ErrorCallbackCh2 (DAC_HandleTypeDef *hdac) |
| Error DAC callback for Channel2. | |
| __weak void | HAL_DACEx_DMAUnderrunCallbackCh2 (DAC_HandleTypeDef *hdac) |
| DMA underrun DAC callback for Channel2. | |
| HAL_StatusTypeDef | HAL_DACEx_SelfCalibrate (DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel) |
| Run the self calibration of one DAC channel. | |
| HAL_StatusTypeDef | HAL_DACEx_SetUserTrimming (DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel, uint32_t NewTrimmingValue) |
| Set the trimming mode and trimming value (user trimming mode applied). | |
| uint32_t | HAL_DACEx_GetTrimOffset (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Return the DAC trimming value. | |
| uint32_t | HAL_DACEx_DualGetValue (DAC_HandleTypeDef *hdac) |
| Return the last data output value of the selected DAC channel. | |
Extended IO operation functions.
==============================================================================
##### Extended features functions #####
==============================================================================
[..] This section provides functions allowing to:
(+) Start conversion.
(+) Stop conversion.
(+) Start conversion and enable DMA transfer.
(+) Stop conversion and disable DMA transfer.
(+) Get result of conversion.
(+) Get result of dual mode conversion.
| void HAL_DACEx_ConvCpltCallbackCh2 | ( | DAC_HandleTypeDef * | hdac | ) |
Conversion complete callback in non-blocking mode for Channel2.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 503 of file stm32h7xx_hal_dac_ex.c.
Referenced by DAC_DMAConvCpltCh2(), HAL_DAC_Init(), and HAL_DAC_UnRegisterCallback().
| void HAL_DACEx_ConvHalfCpltCallbackCh2 | ( | DAC_HandleTypeDef * | hdac | ) |
Conversion half DMA transfer callback in non-blocking mode for Channel2.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 519 of file stm32h7xx_hal_dac_ex.c.
Referenced by DAC_DMAHalfConvCpltCh2(), HAL_DAC_Init(), and HAL_DAC_UnRegisterCallback().
| void HAL_DACEx_DMAUnderrunCallbackCh2 | ( | DAC_HandleTypeDef * | hdac | ) |
DMA underrun DAC callback for Channel2.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 551 of file stm32h7xx_hal_dac_ex.c.
Referenced by HAL_DAC_Init(), HAL_DAC_IRQHandler(), and HAL_DAC_UnRegisterCallback().
| uint32_t HAL_DACEx_DualGetValue | ( | DAC_HandleTypeDef * | hdac | ) |
Return the last data output value of the selected DAC channel.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| The | selected DAC channel data output value. |
Definition at line 779 of file stm32h7xx_hal_dac_ex.c.
References __DAC_HandleTypeDef::Instance.
| HAL_StatusTypeDef HAL_DACEx_DualSetValue | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Alignment, | ||
| uint32_t | Data1, | ||
| uint32_t | Data2 | ||
| ) |
Set the specified data holding register value for dual DAC channel.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| Alignment | Specifies the data alignment for dual channel DAC. This parameter can be one of the following values: DAC_ALIGN_8B_R: 8bit right data alignment selected DAC_ALIGN_12B_L: 12bit left data alignment selected DAC_ALIGN_12B_R: 12bit right data alignment selected |
| Data1 | Data for DAC Channel1 to be loaded in the selected data holding register. |
| Data2 | Data for DAC Channel2 to be loaded in the selected data holding register. |
| HAL | status |
Definition at line 467 of file stm32h7xx_hal_dac_ex.c.
References assert_param, DAC_ALIGN_8B_R, DAC_DHR12RD_ALIGNMENT, __DAC_HandleTypeDef::Instance, IS_DAC_ALIGN, and IS_DAC_DATA.
| HAL_StatusTypeDef HAL_DACEx_DualStart | ( | DAC_HandleTypeDef * | hdac | ) |
Enables DAC and starts conversion of both channels.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| HAL | status |
Definition at line 119 of file stm32h7xx_hal_dac_ex.c.
References __HAL_DAC_ENABLE, DAC_CHANNEL_1, DAC_CHANNEL_2, DAC_TRIGGER_SOFTWARE, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, __DAC_HandleTypeDef::Instance, and __DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DACEx_DualStart_DMA | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel, | ||
| uint32_t * | pData, | ||
| uint32_t | Length, | ||
| uint32_t | Alignment | ||
| ) |
Enables DAC and starts conversion of both channel 1 and 2 of the same DAC.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| Channel | The DAC channel that will request data from DMA. This parameter can be one of the following values:
|
| pData | The destination peripheral Buffer address. |
| Length | The length of data to be transferred from memory to DAC peripheral |
| Alignment | Specifies the data alignment for DAC channel. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 193 of file stm32h7xx_hal_dac_ex.c.
References __HAL_DAC_ENABLE, __HAL_DAC_ENABLE_IT, assert_param, DAC_ALIGN_12B_L, DAC_ALIGN_12B_R, DAC_ALIGN_8B_R, DAC_CHANNEL_1, DAC_CHANNEL_2, DAC_DMAConvCpltCh1(), DAC_DMAConvCpltCh2(), DAC_DMAErrorCh1(), DAC_DMAErrorCh2(), DAC_DMAHalfConvCpltCh1(), DAC_DMAHalfConvCpltCh2(), DAC_IT_DMAUDR1, DAC_IT_DMAUDR2, __DAC_HandleTypeDef::DMA_Handle1, __DAC_HandleTypeDef::DMA_Handle2, __DAC_HandleTypeDef::ErrorCode, HAL_DAC_ERROR_DMA, HAL_DAC_STATE_BUSY, HAL_DMA_Start_IT(), __DAC_HandleTypeDef::Instance, IS_DAC_ALIGN, IS_DAC_CHANNEL, __DAC_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.
| HAL_StatusTypeDef HAL_DACEx_DualStop | ( | DAC_HandleTypeDef * | hdac | ) |
Disables DAC and stop conversion of both channels.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| HAL | status |
Definition at line 162 of file stm32h7xx_hal_dac_ex.c.
References __HAL_DAC_DISABLE, DAC_CHANNEL_1, DAC_CHANNEL_2, HAL_DAC_STATE_READY, and __DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DACEx_DualStop_DMA | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel | ||
| ) |
Disables DAC and stop conversion both channel.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| Channel | The DAC channel that requests data from DMA. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 302 of file stm32h7xx_hal_dac_ex.c.
References __HAL_DAC_DISABLE, __HAL_DAC_DISABLE_IT, DAC_CHANNEL_1, DAC_CHANNEL_2, DAC_IT_DMAUDR1, DAC_IT_DMAUDR2, __DAC_HandleTypeDef::DMA_Handle1, __DAC_HandleTypeDef::DMA_Handle2, HAL_DAC_STATE_ERROR, HAL_DAC_STATE_READY, HAL_DMA_Abort(), __DAC_HandleTypeDef::Instance, and __DAC_HandleTypeDef::State.
| void HAL_DACEx_ErrorCallbackCh2 | ( | DAC_HandleTypeDef * | hdac | ) |
Error DAC callback for Channel2.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 535 of file stm32h7xx_hal_dac_ex.c.
Referenced by DAC_DMAErrorCh2(), HAL_DAC_Init(), and HAL_DAC_UnRegisterCallback().
| uint32_t HAL_DACEx_GetTrimOffset | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel | ||
| ) |
Return the DAC trimming value.
| hdac | DAC handle |
| Channel | The selected DAC channel. This parameter can be one of the following values:
|
| Trimming | value : range: 0->31 |
Definition at line 745 of file stm32h7xx_hal_dac_ex.c.
References assert_param, __DAC_HandleTypeDef::Instance, and IS_DAC_CHANNEL.
| HAL_StatusTypeDef HAL_DACEx_NoiseWaveGenerate | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel, | ||
| uint32_t | Amplitude | ||
| ) |
Enable or disable the selected DAC channel wave generation.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| Channel | The selected DAC channel. This parameter can be one of the following values:
|
| Amplitude | Unmask DAC channel LFSR for noise wave generation. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 425 of file stm32h7xx_hal_dac_ex.c.
References assert_param, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, __DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE, and __DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DACEx_SelfCalibrate | ( | DAC_HandleTypeDef * | hdac, |
| DAC_ChannelConfTypeDef * | sConfig, | ||
| uint32_t | Channel | ||
| ) |
Run the self calibration of one DAC channel.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| sConfig | DAC channel configuration structure. |
| Channel | The selected DAC channel. This parameter can be one of the following values:
|
| Updates | DAC_TrimmingValue. , DAC_UserTrimming set to DAC_UserTrimming |
| HAL | status |
Definition at line 575 of file stm32h7xx_hal_dac_ex.c.
References assert_param, DAC_ALIGN_12B_R, DAC_CHANNEL_1, DAC_DHR12R1_ALIGNMENT, DAC_DHR12R2_ALIGNMENT, DAC_TRIMMING_USER, DAC_ChannelConfTypeDef::DAC_TrimmingValue, DAC_ChannelConfTypeDef::DAC_UserTrimming, HAL_DAC_STATE_BUSY, HAL_Delay(), __DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, and __DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DACEx_SetUserTrimming | ( | DAC_HandleTypeDef * | hdac, |
| DAC_ChannelConfTypeDef * | sConfig, | ||
| uint32_t | Channel, | ||
| uint32_t | NewTrimmingValue | ||
| ) |
Set the trimming mode and trimming value (user trimming mode applied).
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| sConfig | DAC configuration structure updated with new DAC trimming value. |
| Channel | The selected DAC channel. This parameter can be one of the following values:
|
| NewTrimmingValue | DAC new trimming value |
| HAL | status |
Definition at line 703 of file stm32h7xx_hal_dac_ex.c.
References assert_param, DAC_TRIMMING_USER, DAC_ChannelConfTypeDef::DAC_TrimmingValue, DAC_ChannelConfTypeDef::DAC_UserTrimming, __DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, and IS_DAC_NEWTRIMMINGVALUE.
| HAL_StatusTypeDef HAL_DACEx_TriangleWaveGenerate | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel, | ||
| uint32_t | Amplitude | ||
| ) |
Enable or disable the selected DAC channel wave generation.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| Channel | The selected DAC channel. This parameter can be one of the following values:
|
| Amplitude | Select max triangle amplitude. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 375 of file stm32h7xx_hal_dac_ex.c.
References assert_param, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, __DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE, and __DAC_HandleTypeDef::State.
1.7.6.1