Struct flipper0::ffi::LL_TIM_HALLSENSOR_InitTypeDef
source · 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().