#[repr(C)]pub struct TIM_OnePulse_InitTypeDef {
pub OCMode: u32,
pub Pulse: u32,
pub OCPolarity: u32,
pub OCNPolarity: u32,
pub OCIdleState: u32,
pub OCNIdleState: u32,
pub ICPolarity: u32,
pub ICSelection: u32,
pub ICFilter: u32,
}Expand description
@brief TIM One Pulse Mode Configuration Structure definition
Fields§
§OCMode: u32< Specifies the TIM mode. This parameter can be a value of @ref TIM_Output_Compare_and_PWM_modes
Pulse: u32< Specifies the pulse value to be loaded into the Capture Compare Register. This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF
OCPolarity: u32< Specifies the output polarity. This parameter can be a value of @ref TIM_Output_Compare_Polarity
OCNPolarity: u32< Specifies the complementary output polarity. This parameter can be a value of @ref TIM_Output_Compare_N_Polarity @note This parameter is valid only for timer instances supporting break feature.
OCIdleState: u32< Specifies the TIM Output Compare pin state during Idle state. This parameter can be a value of @ref TIM_Output_Compare_Idle_State @note This parameter is valid only for timer instances supporting break feature.
OCNIdleState: u32< Specifies the TIM Output Compare pin state during Idle state. This parameter can be a value of @ref TIM_Output_Compare_N_Idle_State @note This parameter is valid only for timer instances supporting break feature.
ICPolarity: u32< Specifies the active edge of the input signal. This parameter can be a value of @ref TIM_Input_Capture_Polarity
ICSelection: u32< Specifies the input. This parameter can be a value of @ref TIM_Input_Capture_Selection
ICFilter: 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_OnePulse_InitTypeDef
impl Clone for TIM_OnePulse_InitTypeDef
Source§fn clone(&self) -> TIM_OnePulse_InitTypeDef
fn clone(&self) -> TIM_OnePulse_InitTypeDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more