Functions

Specific interface management functions. More...

Collaboration diagram for Specific interface management functions:

Functions

void TIM_EncoderInterfaceConfig (TIM_TypeDef *TIMx, uint16_t TIM_EncoderMode, uint16_t TIM_IC1Polarity, uint16_t TIM_IC2Polarity)
 Configures the TIMx Encoder Interface. More...
 
void TIM_SelectHallSensor (TIM_TypeDef *TIMx, FunctionalState NewState)
 Enables or disables the TIMx's Hall sensor interface. More...
 

Detailed Description

Specific interface management functions.

 ===============================================================================
            ##### Specific interface management functions #####
 ===============================================================================  

Function Documentation

void TIM_EncoderInterfaceConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_EncoderMode,
uint16_t  TIM_IC1Polarity,
uint16_t  TIM_IC2Polarity 
)

Configures the TIMx Encoder Interface.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_EncoderModespecifies the TIMx Encoder Mode. This parameter can be one of the following values:
  • TIM_EncoderMode_TI1: Counter counts on TI1FP1 edge depending on TI2FP2 level.
  • TIM_EncoderMode_TI2: Counter counts on TI2FP2 edge depending on TI1FP1 level.
  • TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and TI2FP2 edges depending on the level of the other input.
TIM_IC1Polarityspecifies the IC1 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
TIM_IC2Polarityspecifies the IC2 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_EncoderModespecifies the TIMx Encoder Mode. This parameter can be one of the following values:
  • TIM_EncoderMode_TI1: Counter counts on TI1FP1 edge depending on TI2FP2 level.
  • TIM_EncoderMode_TI2: Counter counts on TI2FP2 edge depending on TI1FP1 level.
  • TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and TI2FP2 edges depending on the level of the other input.
TIM_IC1Polarityspecifies the IC1 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
TIM_IC2Polarityspecifies the IC2 Polarity This parameter can be one of the following values:
  • TIM_ICPolarity_Falling: IC Falling edge.
  • TIM_ICPolarity_Rising: IC Rising edge.
Return values
None

Definition at line 3070 of file stm32f4xx_tim.c.

void TIM_SelectHallSensor ( TIM_TypeDef TIMx,
FunctionalState  NewState 
)

Enables or disables the TIMx's Hall sensor interface.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
NewStatenew state of the TIMx Hall sensor interface. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
NewStatenew state of the TIMx Hall sensor interface. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 3122 of file stm32f4xx_tim.c.



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