STM32F10x Standard Peripherals Library
3.5.0
|
This file contains all the functions prototypes for the DAC firmware library. More...
#include "stm32f10x.h"
Go to the source code of this file.
Data Structures | |
struct | DAC_InitTypeDef |
DAC Init structure definition. More... | |
Defines | |
#define | DAC_Trigger_None ((uint32_t)0x00000000) |
#define | DAC_Trigger_T6_TRGO ((uint32_t)0x00000004) |
#define | DAC_Trigger_T8_TRGO ((uint32_t)0x0000000C) |
#define | DAC_Trigger_T3_TRGO ((uint32_t)0x0000000C) |
#define | DAC_Trigger_T7_TRGO ((uint32_t)0x00000014) |
#define | DAC_Trigger_T5_TRGO ((uint32_t)0x0000001C) |
#define | DAC_Trigger_T15_TRGO ((uint32_t)0x0000001C) |
#define | DAC_Trigger_T2_TRGO ((uint32_t)0x00000024) |
#define | DAC_Trigger_T4_TRGO ((uint32_t)0x0000002C) |
#define | DAC_Trigger_Ext_IT9 ((uint32_t)0x00000034) |
#define | DAC_Trigger_Software ((uint32_t)0x0000003C) |
#define | IS_DAC_TRIGGER(TRIGGER) |
#define | DAC_WaveGeneration_None ((uint32_t)0x00000000) |
#define | DAC_WaveGeneration_Noise ((uint32_t)0x00000040) |
#define | DAC_WaveGeneration_Triangle ((uint32_t)0x00000080) |
#define | IS_DAC_GENERATE_WAVE(WAVE) |
#define | DAC_LFSRUnmask_Bit0 ((uint32_t)0x00000000) |
#define | DAC_LFSRUnmask_Bits1_0 ((uint32_t)0x00000100) |
#define | DAC_LFSRUnmask_Bits2_0 ((uint32_t)0x00000200) |
#define | DAC_LFSRUnmask_Bits3_0 ((uint32_t)0x00000300) |
#define | DAC_LFSRUnmask_Bits4_0 ((uint32_t)0x00000400) |
#define | DAC_LFSRUnmask_Bits5_0 ((uint32_t)0x00000500) |
#define | DAC_LFSRUnmask_Bits6_0 ((uint32_t)0x00000600) |
#define | DAC_LFSRUnmask_Bits7_0 ((uint32_t)0x00000700) |
#define | DAC_LFSRUnmask_Bits8_0 ((uint32_t)0x00000800) |
#define | DAC_LFSRUnmask_Bits9_0 ((uint32_t)0x00000900) |
#define | DAC_LFSRUnmask_Bits10_0 ((uint32_t)0x00000A00) |
#define | DAC_LFSRUnmask_Bits11_0 ((uint32_t)0x00000B00) |
#define | DAC_TriangleAmplitude_1 ((uint32_t)0x00000000) |
#define | DAC_TriangleAmplitude_3 ((uint32_t)0x00000100) |
#define | DAC_TriangleAmplitude_7 ((uint32_t)0x00000200) |
#define | DAC_TriangleAmplitude_15 ((uint32_t)0x00000300) |
#define | DAC_TriangleAmplitude_31 ((uint32_t)0x00000400) |
#define | DAC_TriangleAmplitude_63 ((uint32_t)0x00000500) |
#define | DAC_TriangleAmplitude_127 ((uint32_t)0x00000600) |
#define | DAC_TriangleAmplitude_255 ((uint32_t)0x00000700) |
#define | DAC_TriangleAmplitude_511 ((uint32_t)0x00000800) |
#define | DAC_TriangleAmplitude_1023 ((uint32_t)0x00000900) |
#define | DAC_TriangleAmplitude_2047 ((uint32_t)0x00000A00) |
#define | DAC_TriangleAmplitude_4095 ((uint32_t)0x00000B00) |
#define | IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE(VALUE) |
#define | DAC_OutputBuffer_Enable ((uint32_t)0x00000000) |
#define | DAC_OutputBuffer_Disable ((uint32_t)0x00000002) |
#define | IS_DAC_OUTPUT_BUFFER_STATE(STATE) |
#define | DAC_Channel_1 ((uint32_t)0x00000000) |
#define | DAC_Channel_2 ((uint32_t)0x00000010) |
#define | IS_DAC_CHANNEL(CHANNEL) |
#define | DAC_Align_12b_R ((uint32_t)0x00000000) |
#define | DAC_Align_12b_L ((uint32_t)0x00000004) |
#define | DAC_Align_8b_R ((uint32_t)0x00000008) |
#define | IS_DAC_ALIGN(ALIGN) |
#define | DAC_Wave_Noise ((uint32_t)0x00000040) |
#define | DAC_Wave_Triangle ((uint32_t)0x00000080) |
#define | IS_DAC_WAVE(WAVE) |
#define | IS_DAC_DATA(DATA) ((DATA) <= 0xFFF0) |
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. |
This file contains all the functions prototypes for the DAC firmware library.
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
Definition in file stm32f10x_dac.h.