@@ -78,19 +78,19 @@ typedef struct
7878 __IO uint32_t ErrorCode ; /*!< DAC Error code */
7979
8080#if (USE_HAL_DAC_REGISTER_CALLBACKS == 1 )
81- void (* ConvCpltCallbackCh1 ) (struct __DAC_HandleTypeDef * hdac );
82- void (* ConvHalfCpltCallbackCh1 ) (struct __DAC_HandleTypeDef * hdac );
83- void (* ErrorCallbackCh1 ) (struct __DAC_HandleTypeDef * hdac );
84- void (* DMAUnderrunCallbackCh1 ) (struct __DAC_HandleTypeDef * hdac );
81+ void (* ConvCpltCallbackCh1 )(struct __DAC_HandleTypeDef * hdac );
82+ void (* ConvHalfCpltCallbackCh1 )(struct __DAC_HandleTypeDef * hdac );
83+ void (* ErrorCallbackCh1 )(struct __DAC_HandleTypeDef * hdac );
84+ void (* DMAUnderrunCallbackCh1 )(struct __DAC_HandleTypeDef * hdac );
8585
86- void (* ConvCpltCallbackCh2 ) (struct __DAC_HandleTypeDef * hdac );
87- void (* ConvHalfCpltCallbackCh2 ) (struct __DAC_HandleTypeDef * hdac );
88- void (* ErrorCallbackCh2 ) (struct __DAC_HandleTypeDef * hdac );
89- void (* DMAUnderrunCallbackCh2 ) (struct __DAC_HandleTypeDef * hdac );
86+ void (* ConvCpltCallbackCh2 )(struct __DAC_HandleTypeDef * hdac );
87+ void (* ConvHalfCpltCallbackCh2 )(struct __DAC_HandleTypeDef * hdac );
88+ void (* ErrorCallbackCh2 )(struct __DAC_HandleTypeDef * hdac );
89+ void (* DMAUnderrunCallbackCh2 )(struct __DAC_HandleTypeDef * hdac );
9090
9191
92- void (* MspInitCallback ) (struct __DAC_HandleTypeDef * hdac );
93- void (* MspDeInitCallback ) (struct __DAC_HandleTypeDef * hdac );
92+ void (* MspInitCallback )(struct __DAC_HandleTypeDef * hdac );
93+ void (* MspDeInitCallback )(struct __DAC_HandleTypeDef * hdac );
9494#endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
9595
9696} DAC_HandleTypeDef ;
@@ -398,7 +398,7 @@ void HAL_DAC_MspDeInit(DAC_HandleTypeDef *hdac);
398398/* IO operation functions *****************************************************/
399399HAL_StatusTypeDef HAL_DAC_Start (DAC_HandleTypeDef * hdac , uint32_t Channel );
400400HAL_StatusTypeDef HAL_DAC_Stop (DAC_HandleTypeDef * hdac , uint32_t Channel );
401- HAL_StatusTypeDef HAL_DAC_Start_DMA (DAC_HandleTypeDef * hdac , uint32_t Channel , uint32_t * pData , uint32_t Length ,
401+ HAL_StatusTypeDef HAL_DAC_Start_DMA (DAC_HandleTypeDef * hdac , uint32_t Channel , const uint32_t * pData , uint32_t Length ,
402402 uint32_t Alignment );
403403HAL_StatusTypeDef HAL_DAC_Stop_DMA (DAC_HandleTypeDef * hdac , uint32_t Channel );
404404void HAL_DAC_IRQHandler (DAC_HandleTypeDef * hdac );
@@ -424,8 +424,9 @@ HAL_StatusTypeDef HAL_DAC_UnRegisterCallback(DAC_HandleTypeDef *hdac, HAL_DA
424424 * @{
425425 */
426426/* Peripheral Control functions ***********************************************/
427- uint32_t HAL_DAC_GetValue (DAC_HandleTypeDef * hdac , uint32_t Channel );
428- HAL_StatusTypeDef HAL_DAC_ConfigChannel (DAC_HandleTypeDef * hdac , DAC_ChannelConfTypeDef * sConfig , uint32_t Channel );
427+ uint32_t HAL_DAC_GetValue (const DAC_HandleTypeDef * hdac , uint32_t Channel );
428+ HAL_StatusTypeDef HAL_DAC_ConfigChannel (DAC_HandleTypeDef * hdac ,
429+ const DAC_ChannelConfTypeDef * sConfig , uint32_t Channel );
429430/**
430431 * @}
431432 */
@@ -434,8 +435,8 @@ HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac, DAC_ChannelConf
434435 * @{
435436 */
436437/* Peripheral State and Error functions ***************************************/
437- HAL_DAC_StateTypeDef HAL_DAC_GetState (DAC_HandleTypeDef * hdac );
438- uint32_t HAL_DAC_GetError (DAC_HandleTypeDef * hdac );
438+ HAL_DAC_StateTypeDef HAL_DAC_GetState (const DAC_HandleTypeDef * hdac );
439+ uint32_t HAL_DAC_GetError (const DAC_HandleTypeDef * hdac );
439440
440441/**
441442 * @}
@@ -471,4 +472,3 @@ void DAC_DMAHalfConvCpltCh1(DMA_HandleTypeDef *hdma);
471472
472473
473474#endif /* STM32F7xx_HAL_DAC_H */
474-
0 commit comments