STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f0xx_dac.h File Reference

This file contains all the functions prototypes for the DAC firmware library. More...

#include "stm32f0xx.h"

Go to the source code of this file.

Data Structures

struct  DAC_InitTypeDef
 DAC Init structure definition. More...
 

Macros

#define DAC_Trigger_None   ((uint32_t)0x00000000)
 
#define DAC_Trigger_T6_TRGO   ((uint32_t)0x00000004)
 
#define DAC_Trigger_T3_TRGO   ((uint32_t)0x0000000C)
 
#define DAC_Trigger_T15_TRGO   ((uint32_t)0x0000001C)
 
#define DAC_Trigger_T2_TRGO   ((uint32_t)0x00000024)
 
#define DAC_Trigger_Ext_IT9   ((uint32_t)0x00000034)
 
#define DAC_Trigger_Software   ((uint32_t)0x0000003C)
 
#define IS_DAC_TRIGGER(TRIGGER)
 
#define DAC_OutputBuffer_Enable   ((uint32_t)0x00000000)
 
#define DAC_OutputBuffer_Disable   DAC_CR_BOFF1
 
#define IS_DAC_OUTPUT_BUFFER_STATE(STATE)
 
#define DAC_Channel_1   ((uint32_t)0x00000000)
 
#define IS_DAC_CHANNEL(CHANNEL)   (((CHANNEL) == DAC_Channel_1))
 
#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 IS_DAC_DATA(DATA)   ((DATA) <= 0xFFF0)
 
#define DAC_IT_DMAUDR   DAC_SR_DMAUDR1
 
#define IS_DAC_IT(IT)   (((IT) == DAC_IT_DMAUDR))
 
#define DAC_FLAG_DMAUDR   DAC_SR_DMAUDR1
 
#define IS_DAC_FLAG(FLAG)   (((FLAG) == DAC_FLAG_DMAUDR))
 

Functions

void DAC_DeInit (void)
 Deinitializes the DAC peripheral registers to their default reset values. More...
 
void DAC_Init (uint32_t DAC_Channel, DAC_InitTypeDef *DAC_InitStruct)
 Initializes the DAC peripheral according to the specified parameters in the DAC_InitStruct. More...
 
void DAC_StructInit (DAC_InitTypeDef *DAC_InitStruct)
 Fills each DAC_InitStruct member with its default value. More...
 
void DAC_Cmd (uint32_t DAC_Channel, FunctionalState NewState)
 Enables or disables the specified DAC channel. More...
 
void DAC_SoftwareTriggerCmd (uint32_t DAC_Channel, FunctionalState NewState)
 Enables or disables the selected DAC channel software trigger. More...
 
void DAC_SetChannel1Data (uint32_t DAC_Align, uint16_t Data)
 Set the specified data holding register value for DAC channel1. More...
 
uint16_t DAC_GetDataOutputValue (uint32_t DAC_Channel)
 Returns the last data output value of the selected DAC channel. More...
 
void DAC_DMACmd (uint32_t DAC_Channel, FunctionalState NewState)
 Enables or disables the specified DAC channel DMA request. When enabled DMA1 is generated when an external trigger (EXTI Line9, TIM2, TIM3, TIM6 or TIM15 but not a software trigger) occurs. More...
 
void DAC_ITConfig (uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState)
 Enables or disables the specified DAC interrupts. More...
 
FlagStatus DAC_GetFlagStatus (uint32_t DAC_Channel, uint32_t DAC_FLAG)
 Checks whether the specified DAC flag is set or not. More...
 
void DAC_ClearFlag (uint32_t DAC_Channel, uint32_t DAC_FLAG)
 Clears the DAC channel's pending flags. More...
 
ITStatus DAC_GetITStatus (uint32_t DAC_Channel, uint32_t DAC_IT)
 Checks whether the specified DAC interrupt has occurred or not. More...
 
void DAC_ClearITPendingBit (uint32_t DAC_Channel, uint32_t DAC_IT)
 Clears the DAC channel's interrupt pending bits. More...
 

Detailed Description

This file contains all the functions prototypes for the DAC firmware library.

Author
MCD Application Team
Version
V1.0.1
Date
20-April-2012
Attention

© COPYRIGHT 2012 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.