STM32F10x Standard Peripherals Library
3.5.0
|
Functions | |
void | DAC_DeInit (void) |
Deinitializes the DAC peripheral registers to their default reset values. | |
void | DAC_Init (uint32_t DAC_Channel, DAC_InitTypeDef *DAC_InitStruct) |
Initializes the DAC peripheral according to the specified parameters in the DAC_InitStruct. | |
void | DAC_StructInit (DAC_InitTypeDef *DAC_InitStruct) |
Fills each DAC_InitStruct member with its default value. | |
void | DAC_Cmd (uint32_t DAC_Channel, FunctionalState NewState) |
Enables or disables the specified DAC channel. | |
void | DAC_DMACmd (uint32_t DAC_Channel, FunctionalState NewState) |
Enables or disables the specified DAC channel DMA request. | |
void | DAC_SoftwareTriggerCmd (uint32_t DAC_Channel, FunctionalState NewState) |
Enables or disables the selected DAC channel software trigger. | |
void | DAC_DualSoftwareTriggerCmd (FunctionalState NewState) |
Enables or disables simultaneously the two DAC channels software triggers. | |
void | DAC_WaveGenerationCmd (uint32_t DAC_Channel, uint32_t DAC_Wave, FunctionalState NewState) |
Enables or disables the selected DAC channel wave generation. | |
void | DAC_SetChannel1Data (uint32_t DAC_Align, uint16_t Data) |
Set the specified data holding register value for DAC channel1. | |
void | DAC_SetChannel2Data (uint32_t DAC_Align, uint16_t Data) |
Set the specified data holding register value for DAC channel2. | |
void | DAC_SetDualChannelData (uint32_t DAC_Align, uint16_t Data2, uint16_t Data1) |
Set the specified data holding register value for dual channel DAC. | |
uint16_t | DAC_GetDataOutputValue (uint32_t DAC_Channel) |
Returns the last data output value of the selected DAC channel. |
void DAC_Cmd | ( | uint32_t | DAC_Channel, |
FunctionalState | NewState | ||
) |
Enables or disables the specified DAC channel.
DAC_Channel,: | the selected DAC channel. This parameter can be one of the following values:
|
NewState,: | new state of the DAC channel. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 173 of file stm32f10x_dac.c.
void DAC_DeInit | ( | void | ) |
Deinitializes the DAC peripheral registers to their default reset values.
None |
None |
Definition at line 98 of file stm32f10x_dac.c.
void DAC_DMACmd | ( | uint32_t | DAC_Channel, |
FunctionalState | NewState | ||
) |
Enables or disables the specified DAC channel DMA request.
DAC_Channel,: | the selected DAC channel. This parameter can be one of the following values:
|
NewState,: | new state of the selected DAC channel DMA request. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 233 of file stm32f10x_dac.c.
void DAC_DualSoftwareTriggerCmd | ( | FunctionalState | NewState | ) |
Enables or disables simultaneously the two DAC channels software triggers.
NewState,: | new state of the DAC channels software triggers. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 284 of file stm32f10x_dac.c.
uint16_t DAC_GetDataOutputValue | ( | uint32_t | DAC_Channel | ) |
Returns the last data output value of the selected DAC channel.
DAC_Channel,: | the selected DAC channel. This parameter can be one of the following values:
|
The | selected DAC channel data output value. |
Definition at line 430 of file stm32f10x_dac.c.
void DAC_Init | ( | uint32_t | DAC_Channel, |
DAC_InitTypeDef * | DAC_InitStruct | ||
) |
Initializes the DAC peripheral according to the specified parameters in the DAC_InitStruct.
DAC_Channel,: | the selected DAC channel. This parameter can be one of the following values:
|
DAC_InitStruct,: | pointer to a DAC_InitTypeDef structure that contains the configuration information for the specified DAC channel. |
None |
Definition at line 117 of file stm32f10x_dac.c.
void DAC_SetChannel1Data | ( | uint32_t | DAC_Align, |
uint16_t | Data | ||
) |
Set the specified data holding register value for DAC channel1.
DAC_Align,: | Specifies the data alignment for DAC channel1. This parameter can be one of the following values:
|
Data | : Data to be loaded in the selected data holding register. |
None |
Definition at line 342 of file stm32f10x_dac.c.
void DAC_SetChannel2Data | ( | uint32_t | DAC_Align, |
uint16_t | Data | ||
) |
Set the specified data holding register value for DAC channel2.
DAC_Align,: | Specifies the data alignment for DAC channel2. This parameter can be one of the following values:
|
Data | : Data to be loaded in the selected data holding register. |
None |
Definition at line 367 of file stm32f10x_dac.c.
void DAC_SetDualChannelData | ( | uint32_t | DAC_Align, |
uint16_t | Data2, | ||
uint16_t | Data1 | ||
) |
Set the specified data holding register value for dual channel DAC.
DAC_Align,: | Specifies the data alignment for dual channel DAC. This parameter can be one of the following values:
|
Data2,: | Data for DAC Channel2 to be loaded in the selected data holding register. |
Data1,: | Data for DAC Channel1 to be loaded in the selected data holding register. |
None |
Definition at line 396 of file stm32f10x_dac.c.
void DAC_SoftwareTriggerCmd | ( | uint32_t | DAC_Channel, |
FunctionalState | NewState | ||
) |
Enables or disables the selected DAC channel software trigger.
DAC_Channel,: | the selected DAC channel. This parameter can be one of the following values:
|
NewState,: | new state of the selected DAC channel software trigger. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 260 of file stm32f10x_dac.c.
void DAC_StructInit | ( | DAC_InitTypeDef * | DAC_InitStruct | ) |
Fills each DAC_InitStruct member with its default value.
DAC_InitStruct | : pointer to a DAC_InitTypeDef structure which will be initialized. |
None |
Definition at line 150 of file stm32f10x_dac.c.
void DAC_WaveGenerationCmd | ( | uint32_t | DAC_Channel, |
uint32_t | DAC_Wave, | ||
FunctionalState | NewState | ||
) |
Enables or disables the selected DAC channel wave generation.
DAC_Channel,: | the selected DAC channel. This parameter can be one of the following values:
|
DAC_Wave,: | Specifies the wave type to enable or disable. This parameter can be one of the following values:
|
NewState,: | new state of the selected DAC channel wave generation. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 314 of file stm32f10x_dac.c.