Functions | |
HAL_StatusTypeDef | HAL_GPT_OC_ConfigChannel (GPT_HandleTypeDef *htim, GPT_OC_InitTypeDef *sConfig, uint32_t Channel) |
Initializes the TIM Output Compare Channels according to the specified parameters in the GPT_OC_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_GPT_IC_ConfigChannel (GPT_HandleTypeDef *htim, GPT_IC_InitTypeDef *sConfig, uint32_t Channel) |
Initializes the TIM Input Capture Channels according to the specified parameters in the GPT_IC_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_GPT_PWM_ConfigChannel (GPT_HandleTypeDef *htim, GPT_OC_InitTypeDef *sConfig, uint32_t Channel) |
Initializes the TIM PWM channels according to the specified parameters in the GPT_OC_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_GPT_OnePulse_ConfigChannel (GPT_HandleTypeDef *htim, GPT_OnePulse_InitTypeDef *sConfig, uint32_t OutputChannel, uint32_t InputChannel) |
Initializes the TIM One Pulse Channels according to the specified parameters in the GPT_OnePulse_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_GPT_ConfigOCrefClear (GPT_HandleTypeDef *htim, GPT_ClearInputConfigTypeDef *sClearInputConfig, uint32_t Channel) |
Configures the OCRef clear feature. More... | |
HAL_StatusTypeDef | HAL_GPT_ConfigClockSource (GPT_HandleTypeDef *htim, GPT_ClockConfigTypeDef *sClockSourceConfig) |
Configures the clock source to be used. More... | |
HAL_StatusTypeDef | HAL_GPT_ConfigTI1Input (GPT_HandleTypeDef *htim, uint32_t TI1_Selection) |
Selects the signal connected to the TI1 input: direct from CH1_input or a XOR combination between CH1_input, CH2_input & CH3_input. More... | |
HAL_StatusTypeDef | HAL_GPT_SlaveConfigSynchronization (GPT_HandleTypeDef *htim, GPT_SlaveConfigTypeDef *sSlaveConfig) |
Configures the TIM in Slave mode. More... | |
HAL_StatusTypeDef | HAL_GPT_SlaveConfigSynchronization_IT (GPT_HandleTypeDef *htim, GPT_SlaveConfigTypeDef *sSlaveConfig) |
Configures the TIM in Slave mode in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_GPT_DMABurst_WriteStart (GPT_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength) |
Configure the DMA Burst to transfer Data from the memory to the TIM peripheral. More... | |
HAL_StatusTypeDef | HAL_GPT_DMABurst_WriteStop (GPT_HandleTypeDef *htim, uint32_t BurstRequestSrc) |
Stops the TIM DMA Burst mode. More... | |
HAL_StatusTypeDef | HAL_GPT_DMABurst_ReadStart (GPT_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength) |
Configure the DMA Burst to transfer Data from the TIM peripheral to the memory. More... | |
HAL_StatusTypeDef | HAL_GPT_DMABurst_ReadStop (GPT_HandleTypeDef *htim, uint32_t BurstRequestSrc) |
Stop the DMA burst reading. More... | |
HAL_StatusTypeDef | HAL_GPT_GenerateEvent (GPT_HandleTypeDef *htim, uint32_t EventSource) |
Generate a software event. More... | |
uint32_t | HAL_GPT_ReadCapturedValue (GPT_HandleTypeDef *htim, uint32_t Channel) |
Read the captured value from Capture Compare unit. More... | |
HAL_StatusTypeDef HAL_GPT_ConfigClockSource | ( | GPT_HandleTypeDef * | htim, |
GPT_ClockConfigTypeDef * | sClockSourceConfig | ||
) |
Configures the clock source to be used.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
sClockSourceConfig | pointer to a GPT_ClockConfigTypeDef structure that contains the clock source information for the TIM peripheral. |
HAL | status |
HAL_StatusTypeDef HAL_GPT_ConfigOCrefClear | ( | GPT_HandleTypeDef * | htim, |
GPT_ClearInputConfigTypeDef * | sClearInputConfig, | ||
uint32_t | Channel | ||
) |
Configures the OCRef clear feature.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
sClearInputConfig | pointer to a GPT_ClearInputConfigTypeDef structure that contains the OCREF clear feature and parameters for the TIM peripheral. |
Channel | specifies the TIM Channel. This parameter can be one of the following values:
|
HAL | status |
HAL_StatusTypeDef HAL_GPT_ConfigTI1Input | ( | GPT_HandleTypeDef * | htim, |
uint32_t | TI1_Selection | ||
) |
Selects the signal connected to the TI1 input: direct from CH1_input or a XOR combination between CH1_input, CH2_input & CH3_input.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
TI1_Selection | Indicate whether or not channel 1 is connected to the output of a XOR gate. This parameter can be one of the following values:
|
HAL | status |
HAL_StatusTypeDef HAL_GPT_DMABurst_ReadStart | ( | GPT_HandleTypeDef * | htim, |
uint32_t | BurstBaseAddress, | ||
uint32_t | BurstRequestSrc, | ||
uint32_t * | BurstBuffer, | ||
uint32_t | BurstLength | ||
) |
Configure the DMA Burst to transfer Data from the TIM peripheral to the memory.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
BurstBaseAddress | TIM Base address from when the DMA will starts the Data read. This parameters can be on of the following values:
|
BurstRequestSrc | TIM DMA Request sources. This parameters can be on of the following values:
|
BurstBuffer | The Buffer address. |
BurstLength | DMA Burst length. This parameter can be one value between GPT_DMABURSTLENGTH_1TRANSFER and GPT_DMABURSTLENGTH_18TRANSFERS. |
HAL | status |
HAL_StatusTypeDef HAL_GPT_DMABurst_ReadStop | ( | GPT_HandleTypeDef * | htim, |
uint32_t | BurstRequestSrc | ||
) |
Stop the DMA burst reading.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
BurstRequestSrc | TIM DMA Request sources to disable. |
HAL | status |
HAL_StatusTypeDef HAL_GPT_DMABurst_WriteStart | ( | GPT_HandleTypeDef * | htim, |
uint32_t | BurstBaseAddress, | ||
uint32_t | BurstRequestSrc, | ||
uint32_t * | BurstBuffer, | ||
uint32_t | BurstLength | ||
) |
Configure the DMA Burst to transfer Data from the memory to the TIM peripheral.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
BurstBaseAddress | TIM Base address from when the DMA will starts the Data write. This parameters can be on of the following values:
|
BurstRequestSrc | TIM DMA Request sources. This parameters can be on of the following values:
|
BurstBuffer | The Buffer address. |
BurstLength | DMA Burst length. This parameter can be one value between GPT_DMABURSTLENGTH_1TRANSFER and GPT_DMABURSTLENGTH_18TRANSFERS. |
HAL | status |
HAL_StatusTypeDef HAL_GPT_DMABurst_WriteStop | ( | GPT_HandleTypeDef * | htim, |
uint32_t | BurstRequestSrc | ||
) |
Stops the TIM DMA Burst mode.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
BurstRequestSrc | TIM DMA Request sources to disable |
HAL | status |
HAL_StatusTypeDef HAL_GPT_GenerateEvent | ( | GPT_HandleTypeDef * | htim, |
uint32_t | EventSource | ||
) |
Generate a software event.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
EventSource | specifies the event source. This parameter can be one of the following values:
|
HAL | status |
HAL_StatusTypeDef HAL_GPT_IC_ConfigChannel | ( | GPT_HandleTypeDef * | htim, |
GPT_IC_InitTypeDef * | sConfig, | ||
uint32_t | Channel | ||
) |
Initializes the TIM Input Capture Channels according to the specified parameters in the GPT_IC_InitTypeDef.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
sConfig | TIM Input Capture configuration structure |
Channel | TIM Channels to be enabled. This parameter can be one of the following values:
|
HAL | status |
HAL_StatusTypeDef HAL_GPT_OC_ConfigChannel | ( | GPT_HandleTypeDef * | htim, |
GPT_OC_InitTypeDef * | sConfig, | ||
uint32_t | Channel | ||
) |
Initializes the TIM Output Compare Channels according to the specified parameters in the GPT_OC_InitTypeDef.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
sConfig | TIM Output Compare configuration structure |
Channel | TIM Channels to be enabled. This parameter can be one of the following values:
|
HAL | status |
HAL_StatusTypeDef HAL_GPT_OnePulse_ConfigChannel | ( | GPT_HandleTypeDef * | htim, |
GPT_OnePulse_InitTypeDef * | sConfig, | ||
uint32_t | OutputChannel, | ||
uint32_t | InputChannel | ||
) |
Initializes the TIM One Pulse Channels according to the specified parameters in the GPT_OnePulse_InitTypeDef.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
sConfig | TIM One Pulse configuration structure |
OutputChannel | TIM Channels to be enabled. This parameter can be one of the following values:
|
InputChannel | TIM Channels to be enabled. This parameter can be one of the following values:
|
HAL | status |
HAL_StatusTypeDef HAL_GPT_PWM_ConfigChannel | ( | GPT_HandleTypeDef * | htim, |
GPT_OC_InitTypeDef * | sConfig, | ||
uint32_t | Channel | ||
) |
Initializes the TIM PWM channels according to the specified parameters in the GPT_OC_InitTypeDef.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
sConfig | TIM PWM configuration structure |
Channel | TIM Channels to be enabled. This parameter can be one of the following values:
|
HAL | status |
uint32_t HAL_GPT_ReadCapturedValue | ( | GPT_HandleTypeDef * | htim, |
uint32_t | Channel | ||
) |
Read the captured value from Capture Compare unit.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
Channel | TIM Channels to be enabled. This parameter can be one of the following values:
|
Captured | value |
HAL_StatusTypeDef HAL_GPT_SlaveConfigSynchronization | ( | GPT_HandleTypeDef * | htim, |
GPT_SlaveConfigTypeDef * | sSlaveConfig | ||
) |
Configures the TIM in Slave mode.
htim | pointer to a GPT_HandleTypeDef structure that contains the configuration information for TIM module. |
sSlaveConfig | pointer to a GPT_SlaveConfigTypeDef structure that contains the selected trigger (internal trigger input, filtered timer input or external trigger input) and the ) and the Slave mode (Disable, Reset, Gated, Trigger, External clock mode 1). |
HAL | status |
HAL_StatusTypeDef HAL_GPT_SlaveConfigSynchronization_IT | ( | GPT_HandleTypeDef * | htim, |
GPT_SlaveConfigTypeDef * | sSlaveConfig | ||
) |
Configures the TIM in Slave mode in interrupt mode.
htim | TIM handle. |
sSlaveConfig | pointer to a GPT_SlaveConfigTypeDef structure that contains the selected trigger (internal trigger input, filtered timer input or external trigger input) and the ) and the Slave mode (Disable, Reset, Gated, Trigger, External clock mode 1). |
HAL | status |