STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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. | |
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. | |
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. | |
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. | |
HAL_StatusTypeDef | HAL_TIM_ConfigOCrefClear (TIM_HandleTypeDef *htim, const TIM_ClearInputConfigTypeDef *sClearInputConfig, uint32_t Channel) |
Configures the OCRef clear feature. | |
HAL_StatusTypeDef | HAL_TIM_ConfigClockSource (TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig) |
Configures the clock source to be used. | |
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. | |
HAL_StatusTypeDef | HAL_TIM_SlaveConfigSynchro (TIM_HandleTypeDef *htim, const TIM_SlaveConfigTypeDef *sSlaveConfig) |
Configures the TIM in Slave mode. | |
HAL_StatusTypeDef | HAL_TIM_SlaveConfigSynchro_IT (TIM_HandleTypeDef *htim, const TIM_SlaveConfigTypeDef *sSlaveConfig) |
Configures the TIM in Slave mode in interrupt mode. | |
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. | |
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. | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_WriteStop (TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) |
Stops the TIM DMA Burst mode. | |
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. | |
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. | |
HAL_StatusTypeDef | HAL_TIM_DMABurst_ReadStop (TIM_HandleTypeDef *htim, uint32_t BurstRequestSrc) |
Stop the DMA burst reading. | |
HAL_StatusTypeDef | HAL_TIM_GenerateEvent (TIM_HandleTypeDef *htim, uint32_t EventSource) |
Generate a software event. | |
uint32_t | HAL_TIM_ReadCapturedValue (const TIM_HandleTypeDef *htim, uint32_t Channel) |
Read the captured value from Capture Compare unit. | |
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_OC_ConfigChannel | ( | TIM_HandleTypeDef * | htim, |
const TIM_OC_InitTypeDef * | sConfig, | ||
uint32_t | Channel ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_ERROR, HAL_OK, TIM_HandleTypeDef::Instance, IS_TIM_CHANNELS, IS_TIM_OC_MODE, IS_TIM_OC_POLARITY, TIM_OC_InitTypeDef::OCMode, TIM_OC_InitTypeDef::OCPolarity, TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, TIM_CHANNEL_4, TIM_OC1_SetConfig(), TIM_OC2_SetConfig(), TIM_OC3_SetConfig(), and TIM_OC4_SetConfig().
HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel | ( | TIM_HandleTypeDef * | htim, |
const TIM_OC_InitTypeDef * | sConfig, | ||
uint32_t | Channel ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_ERROR, HAL_OK, TIM_HandleTypeDef::Instance, IS_TIM_CHANNELS, IS_TIM_FAST_STATE, IS_TIM_OC_POLARITY, IS_TIM_PWM_MODE, TIM_OC_InitTypeDef::OCFastMode, TIM_OC_InitTypeDef::OCMode, TIM_OC_InitTypeDef::OCPolarity, TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, TIM_CHANNEL_4, TIM_OC1_SetConfig(), TIM_OC2_SetConfig(), TIM_OC3_SetConfig(), and TIM_OC4_SetConfig().
HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel | ( | TIM_HandleTypeDef * | htim, |
const TIM_IC_InitTypeDef * | sConfig, | ||
uint32_t | Channel ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_ERROR, HAL_OK, TIM_IC_InitTypeDef::ICFilter, TIM_IC_InitTypeDef::ICPolarity, TIM_IC_InitTypeDef::ICPrescaler, TIM_IC_InitTypeDef::ICSelection, TIM_HandleTypeDef::Instance, IS_TIM_IC_FILTER, IS_TIM_IC_POLARITY, IS_TIM_IC_PRESCALER, IS_TIM_IC_SELECTION, TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, TIM_CHANNEL_4, TIM_TI1_SetConfig(), TIM_TI2_SetConfig(), TIM_TI3_SetConfig(), and TIM_TI4_SetConfig().
HAL_StatusTypeDef HAL_TIM_OnePulse_ConfigChannel | ( | TIM_HandleTypeDef * | htim, |
TIM_OnePulse_InitTypeDef * | sConfig, | ||
uint32_t | OutputChannel, | ||
uint32_t | InputChannel ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_ERROR, HAL_OK, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, TIM_OnePulse_InitTypeDef::ICFilter, TIM_OnePulse_InitTypeDef::ICPolarity, TIM_OnePulse_InitTypeDef::ICSelection, TIM_HandleTypeDef::Instance, IS_TIM_OPM_CHANNELS, TIM_OC_InitTypeDef::OCIdleState, TIM_OnePulse_InitTypeDef::OCIdleState, TIM_OC_InitTypeDef::OCMode, TIM_OnePulse_InitTypeDef::OCMode, TIM_OC_InitTypeDef::OCNIdleState, TIM_OnePulse_InitTypeDef::OCNIdleState, TIM_OC_InitTypeDef::OCNPolarity, TIM_OnePulse_InitTypeDef::OCNPolarity, TIM_OC_InitTypeDef::OCPolarity, TIM_OnePulse_InitTypeDef::OCPolarity, TIM_OC_InitTypeDef::Pulse, TIM_OnePulse_InitTypeDef::Pulse, TIM_HandleTypeDef::State, TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_OC1_SetConfig(), TIM_OC2_SetConfig(), TIM_SLAVEMODE_TRIGGER, TIM_TI1_SetConfig(), TIM_TI2_SetConfig(), TIM_TS_TI1FP1, and TIM_TS_TI2FP2.
HAL_StatusTypeDef HAL_TIM_ConfigOCrefClear | ( | TIM_HandleTypeDef * | htim, |
const TIM_ClearInputConfigTypeDef * | sClearInputConfig, | ||
uint32_t | Channel ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, TIM_ClearInputConfigTypeDef::ClearInputFilter, TIM_ClearInputConfigTypeDef::ClearInputPolarity, TIM_ClearInputConfigTypeDef::ClearInputPrescaler, TIM_ClearInputConfigTypeDef::ClearInputSource, TIM_ClearInputConfigTypeDef::ClearInputState, HAL_ERROR, HAL_OK, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, TIM_HandleTypeDef::Instance, IS_TIM_CLEARINPUT_FILTER, IS_TIM_CLEARINPUT_POLARITY, IS_TIM_CLEARINPUT_PRESCALER, IS_TIM_CLEARINPUT_SOURCE, TIM_HandleTypeDef::State, TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, TIM_CHANNEL_4, TIM_CLEARINPUTPRESCALER_DIV1, TIM_CLEARINPUTSOURCE_ETR, TIM_CLEARINPUTSOURCE_NONE, and TIM_ETR_SetConfig().
HAL_StatusTypeDef HAL_TIM_ConfigClockSource | ( | TIM_HandleTypeDef * | htim, |
const TIM_ClockConfigTypeDef * | sClockSourceConfig ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, TIM_ClockConfigTypeDef::ClockFilter, TIM_ClockConfigTypeDef::ClockPolarity, TIM_ClockConfigTypeDef::ClockPrescaler, TIM_ClockConfigTypeDef::ClockSource, HAL_ERROR, HAL_OK, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, TIM_HandleTypeDef::Instance, IS_TIM_CLOCKFILTER, IS_TIM_CLOCKPOLARITY, IS_TIM_CLOCKPRESCALER, IS_TIM_CLOCKSOURCE, TIM_HandleTypeDef::State, TIM_CLOCKSOURCE_ETRMODE1, TIM_CLOCKSOURCE_ETRMODE2, TIM_CLOCKSOURCE_INTERNAL, TIM_CLOCKSOURCE_ITR0, TIM_CLOCKSOURCE_ITR1, TIM_CLOCKSOURCE_ITR2, TIM_CLOCKSOURCE_ITR3, TIM_CLOCKSOURCE_TI1, TIM_CLOCKSOURCE_TI1ED, TIM_CLOCKSOURCE_TI2, TIM_ETR_SetConfig(), TIM_ITRx_SetConfig(), TIM_SLAVEMODE_EXTERNAL1, TIM_TI1_ConfigInputStage(), and TIM_TI2_ConfigInputStage().
HAL_StatusTypeDef HAL_TIM_ConfigTI1Input | ( | TIM_HandleTypeDef * | htim, |
uint32_t | TI1_Selection ) |
#include <stm32f4xx_hal_tim.h>
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.
References assert_param, HAL_OK, TIM_HandleTypeDef::Instance, and IS_TIM_TI1SELECTION.
HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro | ( | TIM_HandleTypeDef * | htim, |
const TIM_SlaveConfigTypeDef * | sSlaveConfig ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_LOCK, __HAL_TIM_DISABLE_DMA, __HAL_TIM_DISABLE_IT, __HAL_UNLOCK, assert_param, HAL_ERROR, HAL_OK, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, TIM_SlaveConfigTypeDef::InputTrigger, TIM_HandleTypeDef::Instance, IS_TIM_SLAVE_MODE, IS_TIM_TRIGGER_SELECTION, TIM_SlaveConfigTypeDef::SlaveMode, TIM_HandleTypeDef::State, TIM_DMA_TRIGGER, TIM_IT_TRIGGER, and TIM_SlaveTimer_SetConfig().
HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro_IT | ( | TIM_HandleTypeDef * | htim, |
const TIM_SlaveConfigTypeDef * | sSlaveConfig ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_LOCK, __HAL_TIM_DISABLE_DMA, __HAL_TIM_ENABLE_IT, __HAL_UNLOCK, assert_param, HAL_ERROR, HAL_OK, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, TIM_SlaveConfigTypeDef::InputTrigger, TIM_HandleTypeDef::Instance, IS_TIM_SLAVE_MODE, IS_TIM_TRIGGER_SELECTION, TIM_SlaveConfigTypeDef::SlaveMode, TIM_HandleTypeDef::State, TIM_DMA_TRIGGER, TIM_IT_TRIGGER, and TIM_SlaveTimer_SetConfig().
HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStart | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstBaseAddress, | ||
uint32_t | BurstRequestSrc, | ||
const uint32_t * | BurstBuffer, | ||
uint32_t | BurstLength ) |
#include <stm32f4xx_hal_tim.h>
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.
References HAL_TIM_DMABurst_MultiWriteStart().
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 ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_TIM_ENABLE_DMA, assert_param, TIM_HandleTypeDef::DMABurstState, HAL_BUSY, HAL_DMA_BURST_STATE_BUSY, HAL_DMA_BURST_STATE_READY, HAL_DMA_Start_IT(), HAL_ERROR, HAL_OK, TIM_HandleTypeDef::hdma, TIM_HandleTypeDef::Instance, IS_TIM_DMA_BASE, IS_TIM_DMA_DATA_LENGTH, IS_TIM_DMA_LENGTH, IS_TIM_DMA_SOURCE, TIM_DMA_CC1, TIM_DMA_CC2, TIM_DMA_CC3, TIM_DMA_CC4, TIM_DMA_COM, TIM_DMA_ID_CC1, TIM_DMA_ID_CC2, TIM_DMA_ID_CC3, TIM_DMA_ID_CC4, TIM_DMA_ID_COMMUTATION, TIM_DMA_ID_TRIGGER, TIM_DMA_ID_UPDATE, TIM_DMA_TRIGGER, TIM_DMA_UPDATE, TIM_DMADelayPulseCplt(), TIM_DMADelayPulseHalfCplt(), TIM_DMAError(), TIM_DMAPeriodElapsedCplt(), TIM_DMAPeriodElapsedHalfCplt(), TIM_DMATriggerCplt(), TIM_DMATriggerHalfCplt(), TIMEx_DMACommutationCplt(), TIMEx_DMACommutationHalfCplt(), __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.
Referenced by HAL_TIM_DMABurst_WriteStart().
HAL_StatusTypeDef HAL_TIM_DMABurst_WriteStop | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstRequestSrc ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_TIM_DISABLE_DMA, assert_param, TIM_HandleTypeDef::DMABurstState, HAL_DMA_Abort_IT(), HAL_DMA_BURST_STATE_READY, HAL_ERROR, HAL_OK, TIM_HandleTypeDef::hdma, IS_TIM_DMA_SOURCE, TIM_DMA_CC1, TIM_DMA_CC2, TIM_DMA_CC3, TIM_DMA_CC4, TIM_DMA_COM, TIM_DMA_ID_CC1, TIM_DMA_ID_CC2, TIM_DMA_ID_CC3, TIM_DMA_ID_CC4, TIM_DMA_ID_COMMUTATION, TIM_DMA_ID_TRIGGER, TIM_DMA_ID_UPDATE, TIM_DMA_TRIGGER, and TIM_DMA_UPDATE.
HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStart | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstBaseAddress, | ||
uint32_t | BurstRequestSrc, | ||
uint32_t * | BurstBuffer, | ||
uint32_t | BurstLength ) |
#include <stm32f4xx_hal_tim.h>
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.
References HAL_TIM_DMABurst_MultiReadStart().
HAL_StatusTypeDef HAL_TIM_DMABurst_MultiReadStart | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstBaseAddress, | ||
uint32_t | BurstRequestSrc, | ||
uint32_t * | BurstBuffer, | ||
uint32_t | BurstLength, | ||
uint32_t | DataLength ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_TIM_ENABLE_DMA, assert_param, TIM_HandleTypeDef::DMABurstState, HAL_BUSY, HAL_DMA_BURST_STATE_BUSY, HAL_DMA_BURST_STATE_READY, HAL_DMA_Start_IT(), HAL_ERROR, HAL_OK, TIM_HandleTypeDef::hdma, TIM_HandleTypeDef::Instance, IS_TIM_DMA_BASE, IS_TIM_DMA_DATA_LENGTH, IS_TIM_DMA_LENGTH, IS_TIM_DMA_SOURCE, TIM_DMA_CC1, TIM_DMA_CC2, TIM_DMA_CC3, TIM_DMA_CC4, TIM_DMA_COM, TIM_DMA_ID_CC1, TIM_DMA_ID_CC2, TIM_DMA_ID_CC3, TIM_DMA_ID_CC4, TIM_DMA_ID_COMMUTATION, TIM_DMA_ID_TRIGGER, TIM_DMA_ID_UPDATE, TIM_DMA_TRIGGER, TIM_DMA_UPDATE, TIM_DMACaptureCplt(), TIM_DMACaptureHalfCplt(), TIM_DMAError(), TIM_DMAPeriodElapsedCplt(), TIM_DMAPeriodElapsedHalfCplt(), TIM_DMATriggerCplt(), TIM_DMATriggerHalfCplt(), TIMEx_DMACommutationCplt(), TIMEx_DMACommutationHalfCplt(), __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.
Referenced by HAL_TIM_DMABurst_ReadStart().
HAL_StatusTypeDef HAL_TIM_DMABurst_ReadStop | ( | TIM_HandleTypeDef * | htim, |
uint32_t | BurstRequestSrc ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_TIM_DISABLE_DMA, assert_param, TIM_HandleTypeDef::DMABurstState, HAL_DMA_Abort_IT(), HAL_DMA_BURST_STATE_READY, HAL_ERROR, HAL_OK, TIM_HandleTypeDef::hdma, IS_TIM_DMA_SOURCE, TIM_DMA_CC1, TIM_DMA_CC2, TIM_DMA_CC3, TIM_DMA_CC4, TIM_DMA_COM, TIM_DMA_ID_CC1, TIM_DMA_ID_CC2, TIM_DMA_ID_CC3, TIM_DMA_ID_CC4, TIM_DMA_ID_COMMUTATION, TIM_DMA_ID_TRIGGER, TIM_DMA_ID_UPDATE, TIM_DMA_TRIGGER, and TIM_DMA_UPDATE.
HAL_StatusTypeDef HAL_TIM_GenerateEvent | ( | TIM_HandleTypeDef * | htim, |
uint32_t | EventSource ) |
#include <stm32f4xx_hal_tim.h>
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.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_OK, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, TIM_HandleTypeDef::Instance, IS_TIM_EVENT_SOURCE, and TIM_HandleTypeDef::State.
uint32_t HAL_TIM_ReadCapturedValue | ( | const TIM_HandleTypeDef * | htim, |
uint32_t | Channel ) |
#include <stm32f4xx_hal_tim.h>
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.
References assert_param, TIM_HandleTypeDef::Instance, TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, and TIM_CHANNEL_4.