pub struct LL_TIM_HALLSENSOR_InitTypeDef {
    pub IC1Polarity: u32,
    pub IC1Prescaler: u32,
    pub IC1Filter: u32,
    pub CommutationDelay: u32,
}
Expand description

@brief TIM Hall sensor interface configuration structure definition.

Fields

IC1Polarity: u32

< Specifies the active edge of TI1 input. This parameter can be a value of @ref TIM_LL_EC_IC_POLARITY.

This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPolarity().

IC1Prescaler: u32

< Specifies the TI1 input prescaler value. Prescaler must be set to get a maximum counter period longer than the time interval between 2 consecutive changes on the Hall inputs. This parameter can be a value of @ref TIM_LL_EC_ICPSC.

This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPrescaler().

IC1Filter: u32

< Specifies the TI1 input filter. This parameter can be a value of @ref TIM_LL_EC_IC_FILTER.

This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetFilter().

CommutationDelay: u32

< Specifies the compare value to be loaded into the Capture Compare Register. A positive pulse (TRGO event) is generated with a programmable delay every time a change occurs on the Hall inputs. This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF.

This feature can be modified afterwards using unitary function @ref LL_TIM_OC_SetCompareCH2().

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.