STM32F37 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F37 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Advanced-control timers (TIM15, TIM16 and TIM17) specific features

Advanced-control timers (TIM15, TIM16 and TIM17) specific features. More...

Functions

void TIM_BDTRConfig (TIM_TypeDef *TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct)
 Configures the: Break feature, dead time, Lock level, the OSSI, the OSSR State and the AOE(automatic output enable). More...
 
void TIM_BDTRStructInit (TIM_BDTRInitTypeDef *TIM_BDTRInitStruct)
 Fills each TIM_BDTRInitStruct member with its default value. More...
 
void TIM_CtrlPWMOutputs (TIM_TypeDef *TIMx, FunctionalState NewState)
 Enables or disables the TIM peripheral Main Outputs. More...
 

Detailed Description

Advanced-control timers (TIM15, TIM16 and TIM17) specific features.

 ===============================================================================
      ##### Advanced-control timers (TIM15, TIM16 and TIM17) specific features #####
 ===============================================================================  
  
       ===================================================================      
              *** TIM Driver: how to use the Break feature ***
       =================================================================== 
       [..] After configuring the Timer channel(s) in the appropriate Output Compare mode: 
                         
           (#) Fill the TIM_BDTRInitStruct with the desired parameters for the Timer
               Break Polarity, dead time, Lock level, the OSSI/OSSR State and the 
               AOE(automatic output enable).
               
           (#) Call TIM_BDTRConfig(TIMx, &TIM_BDTRInitStruct) to configure the Timer
          
           (#) Enable the Main Output using TIM_CtrlPWMOutputs(TIM16, ENABLE) 
          
           (#) Once the break even occurs, the Timer's output signals are put in reset
               state or in a known state (according to the configuration made in
               TIM_BDTRConfig() function).

Function Documentation

void TIM_BDTRConfig ( TIM_TypeDef *  TIMx,
TIM_BDTRInitTypeDef TIM_BDTRInitStruct 
)

Configures the: Break feature, dead time, Lock level, the OSSI, the OSSR State and the AOE(automatic output enable).

Parameters
TIMx,:where x can be 15, 16 or 17 to select the TIM
TIM_BDTRInitStruct,:pointer to a TIM_BDTRInitTypeDef structure that contains the BDTR Register configuration information for the TIM peripheral.
Return values
None
void TIM_BDTRStructInit ( TIM_BDTRInitTypeDef TIM_BDTRInitStruct)

Fills each TIM_BDTRInitStruct member with its default value.

Parameters
TIM_BDTRInitStruct,:pointer to a TIM_BDTRInitTypeDef structure which will be initialized.
Return values
None
void TIM_CtrlPWMOutputs ( TIM_TypeDef *  TIMx,
FunctionalState  NewState 
)

Enables or disables the TIM peripheral Main Outputs.

Parameters
TIMx,:where x can be 15, 16 or 17 to select the TIMx peripheral.
NewState,:new state of the TIM peripheral Main Outputs. This parameter can be: ENABLE or DISABLE.
Return values
None