bf0_hal_tim_ex.h
Header file of TIM HAL Extension module.
- Author
Sifli software development team
- Attention
Defines
-
IS_GPT_REMAP(GPT_REMAP)
-
GPT_CHANNEL_STATE_GET(__HANDLE__, __CHANNEL__)
-
GPT_CHANNEL_STATE_SET(__HANDLE__, __CHANNEL__, __CHANNEL_STATE__)
-
GPT_CHANNEL_N_STATE_GET(__HANDLE__, __CHANNEL__)
-
GPT_CHANNEL_N_STATE_SET(__HANDLE__, __CHANNEL__, __CHANNEL_STATE__)
-
IS_GPT_DEADTIME(DEADTIME)
Functions
-
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(GPT_HandleTypeDef *htim, GPT_HallSensor_InitTypeDef *sConfig)
-
HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(GPT_HandleTypeDef *htim)
-
void HAL_TIMEx_HallSensor_MspInit(GPT_HandleTypeDef *htim)
-
void HAL_TIMEx_HallSensor_MspDeInit(GPT_HandleTypeDef *htim)
-
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(GPT_HandleTypeDef *htim)
-
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(GPT_HandleTypeDef *htim)
-
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(GPT_HandleTypeDef *htim)
-
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(GPT_HandleTypeDef *htim)
-
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA(GPT_HandleTypeDef *htim, uint32_t *pData, uint16_t Length)
-
HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(GPT_HandleTypeDef *htim)
-
HAL_StatusTypeDef HAL_TIMEx_OCN_Start(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(GPT_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length)
-
HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(GPT_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length)
-
HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(GPT_HandleTypeDef *htim, uint32_t Channel)
-
HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(GPT_HandleTypeDef *htim, uint32_t OutputChannel)
-
HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(GPT_HandleTypeDef *htim, uint32_t OutputChannel)
-
HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(GPT_HandleTypeDef *htim, uint32_t OutputChannel)
-
HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(GPT_HandleTypeDef *htim, uint32_t OutputChannel)
-
HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent(GPT_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource)
-
HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_IT(GPT_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource)
-
HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_DMA(GPT_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource)
-
HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(GPT_HandleTypeDef *htim, TIMEx_MasterConfigTypeDef *sMasterConfig)
-
HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(GPT_HandleTypeDef *htim, TIMEx_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
-
HAL_StatusTypeDef HAL_TIMEx_RemapConfig(GPT_HandleTypeDef *htim, uint32_t Remap)
-
void HAL_TIMEx_CommutationCallback(GPT_HandleTypeDef *htim)
-
void HAL_TIMEx_BreakCallback(GPT_HandleTypeDef *htim)
-
void HAL_TIMEx_Break2Callback(GPT_HandleTypeDef *htim)
-
void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma)
-
void TIMEx_DMACommutationHalfCplt(DMA_HandleTypeDef *hdma)
-
HAL_GPT_StateTypeDef HAL_TIMEx_HallSensor_GetState(GPT_HandleTypeDef *htim)
-
HAL_GPT_ChannelStateTypeDef HAL_TIMEx_GetChannelNState(GPT_HandleTypeDef *htim, uint32_t ChannelN)
-
struct GPT_HallSensor_InitTypeDef
- #include <bf0_hal_tim_ex.h>
TIM Hall sensor Configuration Structure definition.
Public Members
-
uint32_t IC1Polarity
Specifies the active edge of the input signal. This parameter can be a value of TIM Input Capture Polarity
-
uint32_t IC1Prescaler
Specifies the Input Capture Prescaler. This parameter can be a value of TIM Input Capture Prescaler
-
uint32_t IC1Filter
Specifies the input capture filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF
-
uint32_t Commutation_Delay
Specifies the pulse value to be loaded into the Capture Compare Register. This parameter can be a number between Min_Data = 0x0000U and Max_Data = 0xFFFFU
-
uint32_t IC1Polarity
-
struct TIMEx_BreakInputConfigTypeDef
- #include <bf0_hal_tim_ex.h>
TIM Break/Break2 input configuration.
-
struct TIMEx_MasterConfigTypeDef
- #include <bf0_hal_tim_ex.h>
TIM Master configuration Structure definition.
备注
Advanced timers provide TRGO2 internal line which is redirected to the ADC
Public Members
-
uint32_t MasterOutputTrigger
Trigger output (TRGO) selection
-
uint32_t MasterOutputTrigger2
Trigger output2 (TRGO2) selection
-
uint32_t MasterSlaveMode
Master/slave mode selection
备注
When the Master/slave mode is enabled, the effect of an event on the trigger input (TRGI) is delayed to allow a perfect synchronization between the current timer and its slaves (through TRGO). It is not mandatory in case of timer synchronization mode.
-
uint32_t MasterOutputTrigger
-
struct TIMEx_BreakDeadTimeConfigTypeDef
- #include <bf0_hal_tim_ex.h>
TIM Break input(s) and Dead time configuration Structure definition.
备注
2 break inputs can be configured (BKIN and BKIN2) with configurable filter and polarity.
Public Members
-
uint32_t OffStateRunMode
TIM off state in run mode
-
uint32_t OffStateIDLEMode
TIM off state in IDLE mode
-
uint32_t LockLevel
TIM Lock level
-
uint32_t DeadTime
TIM dead Time This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF
-
uint32_t BreakState
TIM Break State
-
uint32_t BreakPolarity
TIM Break input polarity
-
uint32_t BreakFilter
Specifies the break input filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF
-
uint32_t Break2State
TIM Break2 State
-
uint32_t Break2Polarity
TIM Break2 input polarity
-
uint32_t Break2Filter
TIM break2 input filter. This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF
-
uint32_t AutomaticOutput
TIM Automatic Output Enable state
-
uint32_t DeadTimePsc
-
uint32_t OffStateRunMode