思澈科技软件开发工具包  2.20

Functions

HAL_StatusTypeDef HAL_GPT_OnePulse_Init (GPT_HandleTypeDef *htim, uint32_t OnePulseMode)
 Initializes the TIM One Pulse Time Base according to the specified parameters in the GPT_HandleTypeDef and create the associated handle. More...
 
HAL_StatusTypeDef HAL_GPT_OnePulse_DeInit (GPT_HandleTypeDef *htim)
 DeInitializes the TIM One Pulse. More...
 
void HAL_GPT_OnePulse_MspInit (GPT_HandleTypeDef *htim)
 Initializes the TIM One Pulse MSP. More...
 
void HAL_GPT_OnePulse_MspDeInit (GPT_HandleTypeDef *htim)
 DeInitializes TIM One Pulse MSP. More...
 
HAL_StatusTypeDef HAL_GPT_OnePulse_Start (GPT_HandleTypeDef *htim, uint32_t OutputChannel)
 Starts the TIM One Pulse signal generation. More...
 
HAL_StatusTypeDef HAL_GPT_OnePulse_Stop (GPT_HandleTypeDef *htim, uint32_t OutputChannel)
 Stops the TIM One Pulse signal generation. More...
 
HAL_StatusTypeDef HAL_GPT_OnePulse_Start_IT (GPT_HandleTypeDef *htim, uint32_t OutputChannel)
 Starts the TIM One Pulse signal generation in interrupt mode. More...
 
HAL_StatusTypeDef HAL_GPT_OnePulse_Stop_IT (GPT_HandleTypeDef *htim, uint32_t OutputChannel)
 Stops the TIM One Pulse signal generation in interrupt mode. More...
 

Detailed Description

Function Documentation

◆ HAL_GPT_OnePulse_DeInit()

HAL_StatusTypeDef HAL_GPT_OnePulse_DeInit ( GPT_HandleTypeDef htim)

DeInitializes the TIM One Pulse.

Parameters
htimpointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module.
Return values
HALstatus

◆ HAL_GPT_OnePulse_Init()

HAL_StatusTypeDef HAL_GPT_OnePulse_Init ( GPT_HandleTypeDef htim,
uint32_t  OnePulseMode 
)

Initializes the TIM One Pulse Time Base according to the specified parameters in the GPT_HandleTypeDef and create the associated handle.

Parameters
htimpointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module.
OnePulseModeSelect the One pulse mode. This parameter can be one of the following values:
  • GPT_OPMODE_SINGLE: Only one pulse will be generated.
  • GPT_OPMODE_REPETITIVE: Repetitive pulses will be generated.
Return values
HALstatus

◆ HAL_GPT_OnePulse_MspDeInit()

void HAL_GPT_OnePulse_MspDeInit ( GPT_HandleTypeDef htim)

DeInitializes TIM One Pulse MSP.

Parameters
htimpointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module.
Return values
None

◆ HAL_GPT_OnePulse_MspInit()

void HAL_GPT_OnePulse_MspInit ( GPT_HandleTypeDef htim)

Initializes the TIM One Pulse MSP.

Parameters
htimpointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module.
Return values
None

◆ HAL_GPT_OnePulse_Start()

HAL_StatusTypeDef HAL_GPT_OnePulse_Start ( GPT_HandleTypeDef htim,
uint32_t  OutputChannel 
)

Starts the TIM One Pulse signal generation.

Parameters
htimpointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module.
OutputChannelTIM Channels to be enabled. This parameter can be one of the following values:
  • GPT_CHANNEL_1: TIM Channel 1 selected
  • GPT_CHANNEL_2: TIM Channel 2 selected
Return values
HALstatus

◆ HAL_GPT_OnePulse_Start_IT()

HAL_StatusTypeDef HAL_GPT_OnePulse_Start_IT ( GPT_HandleTypeDef htim,
uint32_t  OutputChannel 
)

Starts the TIM One Pulse signal generation in interrupt mode.

Parameters
htimpointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module.
OutputChannelTIM Channels to be enabled. This parameter can be one of the following values:
  • GPT_CHANNEL_1: TIM Channel 1 selected
  • GPT_CHANNEL_2: TIM Channel 2 selected
Return values
HALstatus

◆ HAL_GPT_OnePulse_Stop()

HAL_StatusTypeDef HAL_GPT_OnePulse_Stop ( GPT_HandleTypeDef htim,
uint32_t  OutputChannel 
)

Stops the TIM One Pulse signal generation.

Parameters
htimpointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module.
OutputChannelTIM Channels to be disable. This parameter can be one of the following values:
  • GPT_CHANNEL_1: TIM Channel 1 selected
  • GPT_CHANNEL_2: TIM Channel 2 selected
Return values
HALstatus

◆ HAL_GPT_OnePulse_Stop_IT()

HAL_StatusTypeDef HAL_GPT_OnePulse_Stop_IT ( GPT_HandleTypeDef htim,
uint32_t  OutputChannel 
)

Stops the TIM One Pulse signal generation in interrupt mode.

Parameters
htimpointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module.
OutputChannelTIM Channels to be enabled. This parameter can be one of the following values:
  • GPT_CHANNEL_1: TIM Channel 1 selected
  • GPT_CHANNEL_2: TIM Channel 2 selected
Return values
HALstatus