|
STM32G474xx HAL用户手册
|
简单输入捕获函数。 更多...
函数 | |
| HAL_StatusTypeDef | HAL_HRTIM_SimpleCaptureChannelConfig (HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureChannel, const HRTIM_SimpleCaptureChannelCfgTypeDef *pSimpleCaptureChannelCfg) |
| 配置简单捕获。 | |
| HAL_StatusTypeDef | HAL_HRTIM_SimpleCaptureStart (HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureChannel) |
| 使能指定捕获单元的简单捕获。 | |
| HAL_StatusTypeDef | HAL_HRTIM_SimpleCaptureStop (HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureChannel) |
| 禁用指定捕获单元的简单捕获。 | |
| HAL_StatusTypeDef | HAL_HRTIM_SimpleCaptureStart_IT (HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureChannel) |
| 使能指定捕获单元的简单捕获(捕获中断已使能)。 | |
| HAL_StatusTypeDef | HAL_HRTIM_SimpleCaptureStop_IT (HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureChannel) |
| 禁用指定捕获单元的简单捕获(捕获中断已禁用)。 | |
| HAL_StatusTypeDef | HAL_HRTIM_SimpleCaptureStart_DMA (HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureChannel, uint32_t SrcAddr, uint32_t DestAddr, uint32_t Length) |
| 使能指定捕获单元的简单捕获(捕获DMA请求已使能)。 | |
| HAL_StatusTypeDef | HAL_HRTIM_SimpleCaptureStop_DMA (HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureChannel) |
| 禁用指定捕获单元的简单捕获(捕获DMA请求已禁用)。 | |
简单输入捕获函数。
===============================================================================
##### Simple input capture functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Configure simple input capture channel
(+) Start simple input capture
(+) Stop simple input capture
(+) Start simple input capture and enable interrupt
(+) Stop simple input capture and disable interrupt
(+) Start simple input capture and enable DMA transfer
(+) Stop simple input capture and disable DMA transfer
-@- When a HRTIM timer operates in simple input capture mode
the Capture Register (HRTIM_CPT1/2xR) is used to latch the
value of the timer counter counter after a transition detected
on a given external event input.
| HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureChannelConfig | ( | HRTIM_HandleTypeDef * | hhrtim, |
| uint32_t | TimerIdx, | ||
| uint32_t | CaptureChannel, | ||
| const HRTIM_SimpleCaptureChannelCfgTypeDef * | pSimpleCaptureChannelCfg | ||
| ) |
配置简单捕获。
| hhrtim | 指向HAL HRTIM句柄的指针 |
| TimerIdx | 定时器索引 此参数可以是以下值之一:
|
| CaptureChannel | 捕获单元 此参数可以是以下值之一:
|
| pSimpleCaptureChannelCfg | 指向简单捕获配置结构的指针 |
| HAL | 状态 |
定义于文件 stm32g4xx_hal_hrtim.c 的 2721 行。
请参阅 assert_param, HRTIM_SimpleCaptureChannelCfgTypeDef::Event, HRTIM_SimpleCaptureChannelCfgTypeDef::EventFilter, HRTIM_SimpleCaptureChannelCfgTypeDef::EventPolarity, HRTIM_SimpleCaptureChannelCfgTypeDef::EventSensitivity, HRTIM_EventCfgTypeDef::FastMode, HRTIM_EventCfgTypeDef::Filter, HAL_HRTIM_STATE_BUSY, HAL_HRTIM_STATE_READY, HRTIM_CaptureUnitConfig(), HRTIM_EEV1SRC_GPIO, HRTIM_EventConfig(), HRTIM_EVENTFASTMODE_DISABLE, IS_HRTIM_CAPTUREUNIT, IS_HRTIM_EVENT, IS_HRTIM_EVENTFILTER, IS_HRTIM_EVENTPOLARITY, IS_HRTIM_EVENTSENSITIVITY, IS_HRTIM_TIMING_UNIT, HRTIM_EventCfgTypeDef::Polarity, HRTIM_EventCfgTypeDef::Sensitivity, HRTIM_EventCfgTypeDef::Source, 以及 __HRTIM_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureStart | ( | HRTIM_HandleTypeDef * | hhrtim, |
| uint32_t | TimerIdx, | ||
| uint32_t | CaptureChannel | ||
| ) |
使能指定捕获单元的简单捕获。
| hhrtim | 指向HAL HRTIM句柄的指针 |
| TimerIdx | 定时器索引 此参数可以是以下值之一:
|
| CaptureChannel | 定时器输出 此参数可以是以下值之一:
|
| HAL | 状态 |
定义于文件 stm32g4xx_hal_hrtim.c 的 2793 行。
请参阅 __HAL_HRTIM_ENABLE, assert_param, HRTIM_TimerParamTypeDef::CaptureTrigger1, HRTIM_TimerParamTypeDef::CaptureTrigger2, HAL_HRTIM_STATE_BUSY, HAL_HRTIM_STATE_ERROR, HAL_HRTIM_STATE_READY, HRTIM_CAPTUREUNIT_1, HRTIM_CAPTUREUNIT_2, __HRTIM_HandleTypeDef::Instance, IS_HRTIM_CAPTUREUNIT, IS_HRTIM_TIMING_UNIT, __HRTIM_HandleTypeDef::State, TimerIdxToTimerId, 以及 __HRTIM_HandleTypeDef::TimerParam.
| HAL_StatusTypeDef HAL_HRTIM_SimpleCaptureStart_DMA | ( | HRTIM_HandleTypeDef * | hhrtim, |
| uint32_t | TimerIdx, | ||
| uint32_t | CaptureChannel, | ||
| uint32_t | SrcAddr, | ||
| uint32_t | DestAddr, | ||
| uint32_t | Length | ||
| ) |
使能指定捕获单元的简单捕获(捕获DMA请求已使能)。
| hhrtim | 指向HAL HRTIM句柄的指针 |
| TimerIdx | 定时器索引 此参数可以是以下值之一:
|
| CaptureChannel | 定时器输出 此参数可以是以下值之一:
|
| SrcAddr | DMA传输源地址 |
| DestAddr | DMA传输目的地址 |
| Length | 要从源传输到目的的数据项长度(数据大小) |
| HAL | 状态 |
定义于文件 stm32g4xx_hal_hrtim.c 的 3121 行。
请参阅 __HAL_HRTIM_ENABLE, __HAL_HRTIM_TIMER_ENABLE_DMA, assert_param, HRTIM_TimerParamTypeDef::CaptureTrigger1, HRTIM_TimerParamTypeDef::CaptureTrigger2, HAL_DMA_Start_IT(), HAL_HRTIM_STATE_BUSY, HAL_HRTIM_STATE_ERROR, HAL_HRTIM_STATE_READY, HRTIM_CAPTUREUNIT_1, HRTIM_CAPTUREUNIT_2, HRTIM_DMAError(), HRTIM_DMATimerxCplt(), HRTIM_GetDMAHandleFromTimerIdx(), HRTIM_TIM_DMA_CPT1, HRTIM_TIM_DMA_CPT2, __HRTIM_HandleTypeDef::Instance, IS_HRTIM_CAPTUREUNIT, IS_HRTIM_TIMING_UNIT,