Classes | Macros | Functions
stm32f30x_comp.h File Reference

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

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

Go to the source code of this file.

Classes

struct  COMP_InitTypeDef
 COMP Init structure definition. More...
 

Macros

#define COMP_BlankingSrce_None   ((uint32_t)0x00000000)
 
#define COMP_BlankingSrce_TIM15OC1   ((uint32_t)0x000C0000)
 
#define COMP_BlankingSrce_TIM15OC2   COMP_CSR_COMPxBLANKING_2
 
#define COMP_BlankingSrce_TIM1OC5   COMP_CSR_COMPxBLANKING_0
 
#define COMP_BlankingSrce_TIM2OC3   COMP_CSR_COMPxBLANKING_1
 
#define COMP_BlankingSrce_TIM2OC4   ((uint32_t)0x000C0000)
 
#define COMP_BlankingSrce_TIM3OC3   ((uint32_t)0x000C0000)
 
#define COMP_BlankingSrce_TIM3OC4   COMP_CSR_COMPxBLANKING_0
 
#define COMP_BlankingSrce_TIM8OC5   COMP_CSR_COMPxBLANKING_1
 
#define COMP_Hysteresis_High   COMP_CSR_COMPxHYST
 
#define COMP_Hysteresis_Low   COMP_CSR_COMPxHYST_0
 
#define COMP_Hysteresis_Medium   COMP_CSR_COMPxHYST_1
 
#define COMP_Hysteresis_No   0x00000000
 
#define COMP_InvertingInput_1_2VREFINT   COMP_CSR_COMPxINSEL_0
 
#define COMP_InvertingInput_1_4VREFINT   ((uint32_t)0x00000000)
 
#define COMP_InvertingInput_3_4VREFINT   COMP_CSR_COMPxINSEL_1
 
#define COMP_InvertingInput_DAC1OUT1   COMP_CSR_COMPxINSEL_2
 
#define COMP_InvertingInput_DAC1OUT2   ((uint32_t)0x00000050)
 
#define COMP_InvertingInput_DAC2OUT1   COMP_CSR_COMPxINSEL_3
 
#define COMP_InvertingInput_IO1   ((uint32_t)0x00000060)
 
#define COMP_InvertingInput_IO2   COMP_CSR_COMPxINSEL
 
#define COMP_InvertingInput_VREFINT   ((uint32_t)0x00000030)
 
#define COMP_Mode_HighSpeed   0x00000000
 
#define COMP_Mode_LowPower   COMP_CSR_COMPxMODE_1
 
#define COMP_Mode_MediumSpeed   COMP_CSR_COMPxMODE_0
 
#define COMP_Mode_UltraLowPower   COMP_CSR_COMPxMODE
 
#define COMP_NonInvertingInput_IO1   ((uint32_t)0x00000000)
 
#define COMP_NonInvertingInput_IO2   COMP_CSR_COMPxNONINSEL
 
#define COMP_Output_COMP6TIM2OCREFCLR   ((uint32_t)0x00002000)
 
#define COMP_Output_HRTIM1_EE1_2   ((uint32_t)0x00003400)
 
#define COMP_Output_HRTIM1_EE2_2   ((uint32_t)0x00003400)
 
#define COMP_Output_HRTIM1_EE3_2   ((uint32_t)0x00003400)
 
#define COMP_Output_HRTIM1_EE6_2   ((uint32_t)0x00003800)
 
#define COMP_Output_HRTIM1_EE7_2   ((uint32_t)0x00003800)
 
#define COMP_Output_HRTIM1_EE8_2   ((uint32_t)0x00003800)
 
#define COMP_Output_HRTIM1_FLT6   ((uint32_t)0x00003000)
 
#define COMP_Output_HRTIM1_FLT7   ((uint32_t)0x00003000)
 
#define COMP_Output_HRTIM1_FLT8   ((uint32_t)0x00003000)
 
#define COMP_Output_None   ((uint32_t)0x00000000)
 
#define COMP_Output_TIM15BKIN   ((uint32_t)0x00002C00)
 
#define COMP_Output_TIM15IC1   ((uint32_t)0x00002800)
 
#define COMP_Output_TIM15IC2   ((uint32_t)0x00002000)
 
#define COMP_Output_TIM15OCREFCLR   ((uint32_t)0x00002800)
 
#define COMP_Output_TIM16BKIN   ((uint32_t)0x00002800)
 
#define COMP_Output_TIM16IC1   ((uint32_t)0x00002800)
 
#define COMP_Output_TIM16OCREFCLR   ((uint32_t)0x00002400)
 
#define COMP_Output_TIM17BKIN   ((uint32_t)0x00002C00)
 
#define COMP_Output_TIM17IC1   ((uint32_t)0x00002000)
 
#define COMP_Output_TIM17OCREFCLR   ((uint32_t)0x00002800)
 
#define COMP_Output_TIM1BKIN   COMP_CSR_COMPxOUTSEL_0
 
#define COMP_Output_TIM1BKIN2   ((uint32_t)0x00000800)
 
#define COMP_Output_TIM1BKIN2_TIM8BKIN2   ((uint32_t)0x00001400)
 
#define COMP_Output_TIM1IC1   ((uint32_t)0x00001C00)
 
#define COMP_Output_TIM1IC2   ((uint32_t)0x00002400)
 
#define COMP_Output_TIM1OCREFCLR   ((uint32_t)0x00001800)
 
#define COMP_Output_TIM2IC1   ((uint32_t)0x00001800)
 
#define COMP_Output_TIM2IC2   ((uint32_t)0x00001800)
 
#define COMP_Output_TIM2IC3   ((uint32_t)0x00002000)
 
#define COMP_Output_TIM2IC4   ((uint32_t)0x00002000)
 
#define COMP_Output_TIM2OCREFCLR   ((uint32_t)0x00002400)
 
#define COMP_Output_TIM3IC1   ((uint32_t)0x00002800)
 
#define COMP_Output_TIM3IC2   ((uint32_t)0x00002000)
 
#define COMP_Output_TIM3IC3   ((uint32_t)0x00001800)
 
#define COMP_Output_TIM3OCREFCLR   ((uint32_t)0x00002C00)
 
#define COMP_Output_TIM4IC1   ((uint32_t)0x00001C00)
 
#define COMP_Output_TIM4IC2   ((uint32_t)0x00002400)
 
#define COMP_Output_TIM4IC3   ((uint32_t)0x00002400)
 
#define COMP_Output_TIM4IC4   ((uint32_t)0x00002C00)
 
#define COMP_Output_TIM8BKIN   ((uint32_t)0x00000C00)
 
#define COMP_Output_TIM8BKIN2   ((uint32_t)0x00001000)
 
#define COMP_Output_TIM8OCREFCLR   ((uint32_t)0x00001C00)
 
#define COMP_OutputLevel_High   COMP_CSR_COMPxOUT
 
#define COMP_OutputLevel_Low   ((uint32_t)0x00000000)
 
#define COMP_OutputPol_Inverted   COMP_CSR_COMPxPOL
 
#define COMP_OutputPol_NonInverted   ((uint32_t)0x00000000)
 
#define COMP_Selection_COMP1   ((uint32_t)0x00000000)
 
#define COMP_Selection_COMP2   ((uint32_t)0x00000004)
 
#define COMP_Selection_COMP3   ((uint32_t)0x00000008)
 
#define COMP_Selection_COMP4   ((uint32_t)0x0000000C)
 
#define COMP_Selection_COMP5   ((uint32_t)0x00000010)
 
#define COMP_Selection_COMP6   ((uint32_t)0x00000014)
 
#define COMP_Selection_COMP7   ((uint32_t)0x00000018)
 
#define IS_COMP_ALL_PERIPH(PERIPH)
 
#define IS_COMP_BLANKING_SOURCE(SOURCE)
 
#define IS_COMP_HYSTERESIS(HYSTERESIS)
 
#define IS_COMP_INVERTING_INPUT(INPUT)
 
#define IS_COMP_MODE(MODE)
 
#define IS_COMP_NONINVERTING_INPUT(INPUT)
 
#define IS_COMP_OUTPUT(OUTPUT)
 
#define IS_COMP_OUTPUT_POL(POL)
 
#define IS_COMP_WINDOW(WINDOW)
 

Functions

void COMP_Cmd (uint32_t COMP_Selection, FunctionalState NewState)
 Enable or disable the COMP peripheral. More...
 
void COMP_DeInit (uint32_t COMP_Selection)
 Deinitializes COMP peripheral registers to their default reset values. More...
 
uint32_t COMP_GetOutputLevel (uint32_t COMP_Selection)
 Return the output level (high or low) of the selected comparator. The output level depends on the selected polarity. If the polarity is not inverted: More...
 
void COMP_Init (uint32_t COMP_Selection, COMP_InitTypeDef *COMP_InitStruct)
 Initializes the COMP peripheral according to the specified parameters in COMP_InitStruct. More...
 
void COMP_LockConfig (uint32_t COMP_Selection)
 Lock the selected comparator (COMP1/COMP2) configuration. More...
 
void COMP_StructInit (COMP_InitTypeDef *COMP_InitStruct)
 Fills each COMP_InitStruct member with its default value. More...
 
void COMP_SwitchCmd (uint32_t COMP_Selection, FunctionalState NewState)
 Close or Open the SW1 switch. More...
 
void COMP_WindowCmd (uint32_t COMP_Selection, FunctionalState NewState)
 Enables or disables the window mode. Window mode for comparators makes use of two comparators: COMP1 and COM2, COMP3 and COMP4, COMP5 and COMP6. In window mode, COMPx and COMPx-1 (where x can be 2, 4 or 6) non inverting inputs are connected together and only COMPx-1 non inverting input can be used. e.g When window mode enabled for COMP4, COMP3 non inverting input (PB14 or PD14) is to be used. More...
 

Detailed Description

This file contains all the functions prototypes for the COMP 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_comp.h.



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