STM32F4xx_HAL_Driver
1.8.3
|
Peripheral Control functions. More...
Functions | |
HAL_StatusTypeDef | HAL_TIM_OC_ConfigChannel (TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) |
Initializes the TIM Output Compare Channels according to the specified parameters in the TIM_OC_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_TIM_PWM_ConfigChannel (TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) |
Initializes the TIM PWM channels according to the specified parameters in the TIM_OC_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_TIM_IC_ConfigChannel (TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel) |
Initializes the TIM Input Capture Channels according to the specified parameters in the TIM_IC_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_TIM_OnePulse_ConfigChannel (TIM_HandleTypeDef *htim, TIM_OnePulse_InitTypeDef *sConfig, uint32_t OutputChannel, uint32_t InputChannel) |
Initializes the TIM One Pulse Channels according to the specified parameters in the TIM_OnePulse_InitTypeDef. More... | |
HAL_StatusTypeDef | HAL_TIM_ConfigOCrefClear (TIM_HandleTypeDef *htim, const TIM_ClearInputConfigTypeDef *sClearInputConfig, uint32_t Channel) |
Configures the OCRef clear feature. More... | |
HAL_StatusTypeDef | HAL_TIM_ConfigClockSource (TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig) |
Configures the clock source to be used. More... | |
HAL_StatusTypeDef | HAL_TIM_ConfigTI1Input (TIM_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_TIM_SlaveConfigSynchro (TIM_HandleTypeDef *htim, const TIM_SlaveConfigTypeDef *sSlaveConfig) |
Configures the TIM in Slave mode. More... | |
HAL_StatusTypeDef | HAL_TIM_SlaveConfigSynchro_IT (TIM_HandleTypeDef *htim, const TIM_SlaveConfigTypeDef *sSlaveConfig) |
Configures the TIM in Slave mode in interrupt mode. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_WriteStart (TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, const uint32_t *BurstBuffer, uint32_t BurstLength) |
Configure the DMA Burst to transfer Data from the memory to the TIM peripheral. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_MultiWriteStart (TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, const uint32_t *BurstBuffer, uint32_t BurstLength, uint32_t DataLength) |
Configure the DMA Burst to transfer multiple Data from the memory to the TIM peripheral. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_WriteStop (TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) |
Stops the TIM DMA Burst mode. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_ReadStart (TIM_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_TIM_DMABurst_MultiReadStart (TIM_HandleTypeDef *htim, uint32_t BurstBaseAddress, uint32_t BurstRequestSrc, uint32_t *BurstBuffer, uint32_t BurstLength, uint32_t DataLength) |
Configure the DMA Burst to transfer Data from the TIM peripheral to the memory. More... | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_ReadStop (TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) |
Stop the DMA burst reading. More... | |
HAL_StatusTypeDef | HAL_TIM_GenerateEvent (TIM_HandleTypeDef *htim, uint32_t EventSource) |
Generate a software event. More... | |
uint32_t | HAL_TIM_ReadCapturedValue (const TIM_HandleTypeDef *htim, uint32_t Channel) |
Read the captured value from Capture Compare unit. More... | |
Peripheral Control functions.
TIM Peripheral Control functions.
============================================================================== ##### Peripheral Control functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Configure The Input Output channels for OC, PWM, IC or One Pulse mode. (+) Configure External Clock source. (+) Configure Complementary channels, break features and dead time. (+) Configure Master and the Slave synchronization. (+) Configure the DMA Burst Mode.
HAL_StatusTypeDef HAL_TIM_ConfigClockSource | ( | TIM_HandleTypeDef * | htim, |
const TIM_ClockConfigTypeDef * | sClockSourceConfig | ||
) |
Configures the clock source to be used.
htim | TIM handle |
sClockSourceConfig | pointer to a TIM_ClockConfigTypeDef structure that contains the clock source information for the TIM peripheral. |
HAL | status |
Definition at line 5304 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_ConfigOCrefClear | ( | TIM_HandleTypeDef * | htim, |
const TIM_ClearInputConfigTypeDef * | sClearInputConfig, | ||
uint32_t | Channel | ||
) |
Configures the OCRef clear feature.
htim | TIM handle |
sClearInputConfig | pointer to a TIM_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 |
Definition at line 5174 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_ConfigTI1Input | ( | TIM_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 | TIM handle. |
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 |
Definition at line 5458 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_DMABurst_MultiReadStart | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstBaseAddress, | ||
uint32_t | BurstRequestSrc, | ||
uint32_t * | BurstBuffer, | ||
uint32_t | BurstLength, | ||
uint32_t | DataLength | ||
) |
Configure the DMA Burst to transfer Data from the TIM peripheral to the memory.
htim | TIM handle |
BurstBaseAddress | TIM Base address from where the DMA will start the Data read This parameter can be one of the following values:
|
BurstRequestSrc | TIM DMA Request sources This parameter can be one of the following values:
|
BurstBuffer | The Buffer address. |
BurstLength | DMA Burst length. This parameter can be one value between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. |
DataLength | Data length. This parameter can be one value between 1 and 0xFFFF. |
HAL | status |
Definition at line 4870 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_DMABurst_MultiWriteStart | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstBaseAddress, | ||
uint32_t | BurstRequestSrc, | ||
const uint32_t * | BurstBuffer, | ||
uint32_t | BurstLength, | ||
uint32_t | DataLength | ||
) |
Configure the DMA Burst to transfer multiple Data from the memory to the TIM peripheral.
htim | TIM handle |
BurstBaseAddress | TIM Base address from where the DMA will start the Data write This parameter can be one of the following values:
|
BurstRequestSrc | TIM DMA Request sources This parameter can be one of the following values:
|
BurstBuffer | The Buffer address. |
BurstLength | DMA Burst length. This parameter can be one value between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. |
DataLength | Data length. This parameter can be one value between 1 and 0xFFFF. |
HAL | status |
Definition at line 4534 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStart | ( | TIM_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 | TIM handle |
BurstBaseAddress | TIM Base address from where the DMA will start the Data read This parameter can be one of the following values:
|
BurstRequestSrc | TIM DMA Request sources This parameter can be one of the following values:
|
BurstBuffer | The Buffer address. |
BurstLength | DMA Burst length. This parameter can be one value between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. |
HAL | status |
Definition at line 4819 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStop | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstRequestSrc | ||
) |
Stop the DMA burst reading.
htim | TIM handle |
BurstRequestSrc | TIM DMA Request sources to disable. |
HAL | status |
Definition at line 5054 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStart | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstBaseAddress, | ||
uint32_t | BurstRequestSrc, | ||
const uint32_t * | BurstBuffer, | ||
uint32_t | BurstLength | ||
) |
Configure the DMA Burst to transfer Data from the memory to the TIM peripheral.
htim | TIM handle |
BurstBaseAddress | TIM Base address from where the DMA will start the Data write This parameter can be one of the following values:
|
BurstRequestSrc | TIM DMA Request sources This parameter can be one of the following values:
|
BurstBuffer | The Buffer address. |
BurstLength | DMA Burst length. This parameter can be one value between: TIM_DMABURSTLENGTH_1TRANSFER and TIM_DMABURSTLENGTH_18TRANSFERS. |
HAL | status |
Definition at line 4481 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStop | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstRequestSrc | ||
) |
Stops the TIM DMA Burst mode.
htim | TIM handle |
BurstRequestSrc | TIM DMA Request sources to disable |
HAL | status |
Definition at line 4718 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_GenerateEvent | ( | TIM_HandleTypeDef * | htim, |
uint32_t | EventSource | ||
) |
Generate a software event.
htim | TIM handle |
EventSource | specifies the event source. This parameter can be one of the following values:
|
HAL | status |
Definition at line 5137 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel | ( | TIM_HandleTypeDef * | htim, |
const TIM_IC_InitTypeDef * | sConfig, | ||
uint32_t | Channel | ||
) |
Initializes the TIM Input Capture Channels according to the specified parameters in the TIM_IC_InitTypeDef.
htim | TIM IC handle |
sConfig | TIM Input Capture configuration structure |
Channel | TIM Channel to configure This parameter can be one of the following values:
|
HAL | status |
Definition at line 4120 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel | ( | TIM_HandleTypeDef * | htim, |
const TIM_OC_InitTypeDef * | sConfig, | ||
uint32_t | Channel | ||
) |
Initializes the TIM Output Compare Channels according to the specified parameters in the TIM_OC_InitTypeDef.
htim | TIM Output Compare handle |
sConfig | TIM Output Compare configuration structure |
Channel | TIM Channels to configure This parameter can be one of the following values:
|
HAL | status |
Definition at line 4041 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_OnePulse_ConfigChannel | ( | TIM_HandleTypeDef * | htim, |
TIM_OnePulse_InitTypeDef * | sConfig, | ||
uint32_t | OutputChannel, | ||
uint32_t | InputChannel | ||
) |
Initializes the TIM One Pulse Channels according to the specified parameters in the TIM_OnePulse_InitTypeDef.
htim | TIM One Pulse handle |
sConfig | TIM One Pulse configuration structure |
OutputChannel | TIM output channel to configure This parameter can be one of the following values:
|
InputChannel | TIM input Channel to configure This parameter can be one of the following values:
|
HAL | status |
Definition at line 4333 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel | ( | TIM_HandleTypeDef * | htim, |
const TIM_OC_InitTypeDef * | sConfig, | ||
uint32_t | Channel | ||
) |
Initializes the TIM PWM channels according to the specified parameters in the TIM_OC_InitTypeDef.
htim | TIM PWM handle |
sConfig | TIM PWM configuration structure |
Channel | TIM Channels to be configured This parameter can be one of the following values:
|
HAL | status |
Definition at line 4219 of file stm32f4xx_hal_tim.c.
uint32_t HAL_TIM_ReadCapturedValue | ( | const TIM_HandleTypeDef * | htim, |
uint32_t | Channel | ||
) |
Read the captured value from Capture Compare unit.
htim | TIM handle. |
Channel | TIM Channels to be enabled This parameter can be one of the following values:
|
Captured | value |
Definition at line 5573 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro | ( | TIM_HandleTypeDef * | htim, |
const TIM_SlaveConfigTypeDef * | sSlaveConfig | ||
) |
Configures the TIM in Slave mode.
htim | TIM handle. |
sSlaveConfig | pointer to a TIM_SlaveConfigTypeDef structure that contains the selected trigger (internal trigger input, filtered timer input or external trigger input) and the Slave mode (Disable, Reset, Gated, Trigger, External clock mode 1). |
HAL | status |
Definition at line 5490 of file stm32f4xx_hal_tim.c.
HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro_IT | ( | TIM_HandleTypeDef * | htim, |
const TIM_SlaveConfigTypeDef * | sSlaveConfig | ||
) |
Configures the TIM in Slave mode in interrupt mode.
htim | TIM handle. |
sSlaveConfig | pointer to a TIM_SlaveConfigTypeDef structure that contains the selected trigger (internal trigger input, filtered timer input or external trigger input) and the Slave mode (Disable, Reset, Gated, Trigger, External clock mode 1). |
HAL | status |
Definition at line 5530 of file stm32f4xx_hal_tim.c.