@@ -78,19 +78,19 @@ typedef struct
78
78
__IO uint32_t ErrorCode ; /*!< DAC Error code */
79
79
80
80
#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 );
85
85
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 );
90
90
91
91
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 );
94
94
#endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
95
95
96
96
} DAC_HandleTypeDef ;
@@ -398,7 +398,7 @@ void HAL_DAC_MspDeInit(DAC_HandleTypeDef *hdac);
398
398
/* IO operation functions *****************************************************/
399
399
HAL_StatusTypeDef HAL_DAC_Start (DAC_HandleTypeDef * hdac , uint32_t Channel );
400
400
HAL_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 ,
402
402
uint32_t Alignment );
403
403
HAL_StatusTypeDef HAL_DAC_Stop_DMA (DAC_HandleTypeDef * hdac , uint32_t Channel );
404
404
void HAL_DAC_IRQHandler (DAC_HandleTypeDef * hdac );
@@ -424,8 +424,9 @@ HAL_StatusTypeDef HAL_DAC_UnRegisterCallback(DAC_HandleTypeDef *hdac, HAL_DA
424
424
* @{
425
425
*/
426
426
/* 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 );
429
430
/**
430
431
* @}
431
432
*/
@@ -434,8 +435,8 @@ HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac, DAC_ChannelConf
434
435
* @{
435
436
*/
436
437
/* 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 );
439
440
440
441
/**
441
442
* @}
@@ -471,4 +472,3 @@ void DAC_DMAHalfConvCpltCh1(DMA_HandleTypeDef *hdma);
471
472
472
473
473
474
#endif /* STM32F7xx_HAL_DAC_H */
474
-
0 commit comments