LL_TIM_HALLSENSOR_StructInit
void LL_TIM_HALLSENSOR_StructInit
(LL_TIM_HALLSENSOR_InitTypeDef *
TIM_HallSensorInitStruct)
Set the fields of the TIMx Hall sensor interface configuration data
structure to their default values.
TIM_HallSensorInitStruct: pointer to a
LL_TIM_HALLSENSOR_InitTypeDef structure (HALL sensor
interface configuration data structure)
LL_TIM_HALLSENSOR_Init
ErrorStatus LL_TIM_HALLSENSOR_Init (TIM_TypeDef * TIMx,
LL_TIM_HALLSENSOR_InitTypeDef *
TIM_HallSensorInitStruct)
Configure the Hall sensor interface of the timer instance.
TIMx: Timer Instance
TIM_HallSensorInitStruct: pointer to a
LL_TIM_HALLSENSOR_InitTypeDef structure (TIMx HALL
sensor interface configuration data structure)
An: ErrorStatus enumeration value:
SUCCESS: TIMx registers are de-initialized
ERROR: not applicable
TIMx CH1, CH2 and CH3 inputs connected through a XOR to
the TI1 input channel
TIMx slave mode controller is configured in reset mode.
Selected internal trigger is TI1F_ED.
Channel 1 is configured as input, IC1 is mapped on TRC.
Captured value stored in TIMx_CCR1 correspond to the time
elapsed between 2 changes on the inputs. It gives information
about motor speed.
Channel 2 is configured in output PWM 2 mode.
Compare value stored in TIMx_CCR2 corresponds to the
commutation delay.
OC2REF is selected as trigger output on TRGO.
LL_TIM_IC_POLARITY_BOTHEDGE must not be used for
TI1 when it is used when TIMx operates in Hall sensor
interface mode.
LL_TIM_BDTR_StructInit
void LL_TIM_BDTR_StructInit (LL_TIM_BDTR_InitTypeDef *
TIM_BDTRInitStruct)
Set the fields of the Break and Dead Time configuration data
structure to their default values.
TIM_BDTRInitStruct: pointer to a
LL_TIM_BDTR_InitTypeDef structure (Break and Dead Time