#[repr(C)]pub struct TIM_Encoder_InitTypeDef {
pub EncoderMode: u32,
pub IC1Polarity: u32,
pub IC1Selection: u32,
pub IC1Prescaler: u32,
pub IC1Filter: u32,
pub IC2Polarity: u32,
pub IC2Selection: u32,
pub IC2Prescaler: u32,
pub IC2Filter: u32,
}
Expand description
@brief TIM Encoder Configuration Structure definition
Fields§
§EncoderMode: u32
< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Encoder_Mode
IC1Polarity: u32
< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Encoder_Input_Polarity
IC1Selection: u32
< Specifies the input. This parameter can be a value of @ref TIM_Input_Capture_Selection
IC1Prescaler: u32
< Specifies the Input Capture Prescaler. This parameter can be a value of @ref TIM_Input_Capture_Prescaler
IC1Filter: u32
< Specifies the input capture filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF
IC2Polarity: u32
< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Encoder_Input_Polarity
IC2Selection: u32
< Specifies the input. This parameter can be a value of @ref TIM_Input_Capture_Selection
IC2Prescaler: u32
< Specifies the Input Capture Prescaler. This parameter can be a value of @ref TIM_Input_Capture_Prescaler
IC2Filter: u32
< Specifies the input capture filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF
Trait Implementations§
Source§impl Clone for TIM_Encoder_InitTypeDef
impl Clone for TIM_Encoder_InitTypeDef
Source§fn clone(&self) -> TIM_Encoder_InitTypeDef
fn clone(&self) -> TIM_Encoder_InitTypeDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more