Classes | Macros | Functions
stm32f30x_dac.h File Reference

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

#include "stm32f30x.h"
Include dependency graph for stm32f30x_dac.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DAC_InitTypeDef
 DAC Init structure definition. More...
 

Macros

#define DAC_Align_12b_L   ((uint32_t)0x00000004)
 
#define DAC_Align_12b_R   ((uint32_t)0x00000000)
 
#define DAC_Align_8b_R   ((uint32_t)0x00000008)
 
#define DAC_BufferSwitch_Disable   ((uint32_t)0x00000000)
 
#define DAC_BufferSwitch_Enable   ((uint32_t)0x00000002)
 
#define DAC_Channel_1   ((uint32_t)0x00000000)
 
#define DAC_Channel_2   ((uint32_t)0x00000010)
 
#define DAC_CR_DMAUDRIE   ((uint32_t)0x00002000)
 
#define DAC_FLAG_DMAUDR   ((uint32_t)0x00002000)
 
#define DAC_IT_DMAUDR   ((uint32_t)0x00002000)
 
#define DAC_LFSRUnmask_Bit0   ((uint32_t)0x00000000)
 
#define DAC_LFSRUnmask_Bits10_0   ((uint32_t)0x00000A00)
 
#define DAC_LFSRUnmask_Bits11_0   ((uint32_t)0x00000B00)
 
#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_TriangleAmplitude_1   ((uint32_t)0x00000000)
 
#define DAC_TriangleAmplitude_1023   ((uint32_t)0x00000900)
 
#define DAC_TriangleAmplitude_127   ((uint32_t)0x00000600)
 
#define DAC_TriangleAmplitude_15   ((uint32_t)0x00000300)
 
#define DAC_TriangleAmplitude_2047   ((uint32_t)0x00000A00)
 
#define DAC_TriangleAmplitude_255   ((uint32_t)0x00000700)
 
#define DAC_TriangleAmplitude_3   ((uint32_t)0x00000100)
 
#define DAC_TriangleAmplitude_31   ((uint32_t)0x00000400)
 
#define DAC_TriangleAmplitude_4095   ((uint32_t)0x00000B00)
 
#define DAC_TriangleAmplitude_511   ((uint32_t)0x00000800)
 
#define DAC_TriangleAmplitude_63   ((uint32_t)0x00000500)
 
#define DAC_TriangleAmplitude_7   ((uint32_t)0x00000200)
 
#define DAC_Trigger_Ext_IT9   ((uint32_t)0x00000034)
 
#define DAC_Trigger_HRTIM1_DACTRG1   ((uint32_t)0x0000001C)
 
#define DAC_Trigger_HRTIM1_DACTRG2   ((uint32_t)0x0000002C)
 
#define DAC_Trigger_HRTIM1_DACTRG3   ((uint32_t)0x0000002C)
 
#define DAC_Trigger_None   ((uint32_t)0x00000000)
 
#define DAC_Trigger_Software   ((uint32_t)0x0000003C)
 
#define DAC_Trigger_T15_TRGO   ((uint32_t)0x0000001C)
 
#define DAC_Trigger_T2_TRGO   ((uint32_t)0x00000024)
 
#define DAC_Trigger_T3_TRGO   ((uint32_t)0x0000000C)
 
#define DAC_Trigger_T4_TRGO   ((uint32_t)0x0000002C)
 
#define DAC_Trigger_T6_TRGO   ((uint32_t)0x00000004)
 
#define DAC_Trigger_T7_TRGO   ((uint32_t)0x00000014)
 
#define DAC_Trigger_T8_TRGO   ((uint32_t)0x0000000C)
 
#define DAC_Wave_Noise   ((uint32_t)0x00000040)
 
#define DAC_Wave_Triangle   ((uint32_t)0x00000080)
 
#define DAC_WaveGeneration_Noise   ((uint32_t)0x00000040)
 
#define DAC_WaveGeneration_None   ((uint32_t)0x00000000)
 
#define DAC_WaveGeneration_Triangle   ((uint32_t)0x00000080)
 
#define IS_DAC_ALIGN(ALIGN)
 
#define IS_DAC_ALL_PERIPH(PERIPH)
 
#define IS_DAC_BUFFER_SWITCH_STATE(STATE)
 
#define IS_DAC_CHANNEL(CHANNEL)
 
#define IS_DAC_DATA(DATA)   ((DATA) <= 0xFFF0)
 
#define IS_DAC_FLAG(FLAG)   (((FLAG) == DAC_FLAG_DMAUDR))
 
#define IS_DAC_GENERATE_WAVE(WAVE)
 
#define IS_DAC_IT(IT)   (((IT) == DAC_IT_DMAUDR))
 
#define IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE(VALUE)
 
#define IS_DAC_LIST1_PERIPH(PERIPH)   (((PERIPH) == DAC1))
 
#define IS_DAC_TRIGGER(TRIGGER)
 
#define IS_DAC_WAVE(WAVE)
 

Functions

void DAC_ClearFlag (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_FLAG)
 Clears the DAC channel's pending flags. More...
 
void DAC_ClearITPendingBit (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_IT)
 Clears the DAC channel's interrupt pending bits. More...
 
void DAC_Cmd (DAC_TypeDef *DACx, uint32_t DAC_Channel, FunctionalState NewState)
 Enables or disables the specified DAC channel. More...
 
void DAC_DeInit (DAC_TypeDef *DACx)
 Deinitializes the DAC peripheral registers to their default reset values. More...
 
void DAC_DMACmd (DAC_TypeDef *DACx, 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, TIM4, TIM6, TIM7 or TIM9 but not a software trigger) occurs. More...
 
void DAC_DualSoftwareTriggerCmd (DAC_TypeDef *DACx, FunctionalState NewState)
 Enables or disables simultaneously the two DAC channels software triggers. More...
 
uint16_t DAC_GetDataOutputValue (DAC_TypeDef *DACx, uint32_t DAC_Channel)
 Returns the last data output value of the selected DAC channel. More...
 
FlagStatus DAC_GetFlagStatus (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_FLAG)
 Checks whether the specified DAC flag is set or not. More...
 
ITStatus DAC_GetITStatus (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_IT)
 Checks whether the specified DAC interrupt has occurred or not. More...
 
void DAC_Init (DAC_TypeDef *DACx, uint32_t DAC_Channel, DAC_InitTypeDef *DAC_InitStruct)
 Initializes the DAC peripheral according to the specified parameters in the DAC_InitStruct. More...
 
void DAC_ITConfig (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState)
 Enables or disables the specified DAC interrupts. More...
 
void DAC_SetChannel1Data (DAC_TypeDef *DACx, uint32_t DAC_Align, uint16_t Data)
 Set the specified data holding register value for DAC channel1. More...
 
void DAC_SetChannel2Data (DAC_TypeDef *DACx, uint32_t DAC_Align, uint16_t Data)
 Set the specified data holding register value for DAC channel2. More...
 
void DAC_SetDualChannelData (DAC_TypeDef *DACx, uint32_t DAC_Align, uint16_t Data2, uint16_t Data1)
 Set the specified data holding register value for dual channel DAC. More...
 
void DAC_SoftwareTriggerCmd (DAC_TypeDef *DACx, uint32_t DAC_Channel, FunctionalState NewState)
 Enables or disables the selected DAC channel software trigger. More...
 
void DAC_StructInit (DAC_InitTypeDef *DAC_InitStruct)
 Fills each DAC_InitStruct member with its default value. More...
 
void DAC_WaveGenerationCmd (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_Wave, FunctionalState NewState)
 Enables or disables the selected DAC channel wave generation. More...
 

Detailed Description

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

Author
MCD Application Team
Version
V1.1.1
Date
04-April-2014
Attention

© COPYRIGHT 2014 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.

Definition in file stm32f30x_dac.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:27