|
STM32G474xx HAL 用户手册
|
外设状态函数。 更多...
函数 | |
| HAL_HRTIM_StateTypeDef | HAL_HRTIM_GetState (const HRTIM_HandleTypeDef *hhrtim) |
| 返回 HRTIM HAL 状态。 | |
| uint32_t | HAL_HRTIM_GetCapturedValue (const HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureUnit) |
| 返回指定捕获单元的捕获寄存器的实际值。 | |
| HRTIM_CaptureValueTypeDef | HAL_HRTIM_GetCaptured (const HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureUnit) |
| 返回指定捕获单元的捕获寄存器的实际值和方向。 | |
| uint32_t | HAL_HRTIM_GetCapturedDir (const HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t CaptureUnit) |
| 返回指定捕获单元的捕获寄存器的实际方向。 | |
| uint32_t | HAL_HRTIM_WaveformGetOutputLevel (const HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t Output) |
| 返回指定输出的实际电平(有效或无效)。 | |
| uint32_t | HAL_HRTIM_WaveformGetOutputState (const HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t Output) |
| 返回指定输出的实际状态(RUN, IDLE, FAULT)。 | |
| uint32_t | HAL_HRTIM_GetDelayedProtectionStatus (const HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx, uint32_t Output) |
| 返回延迟保护触发时指定输出的电平(有效或无效)。 | |
| uint32_t | HAL_HRTIM_GetBurstStatus (const HRTIM_HandleTypeDef *hhrtim) |
| 返回突发模式控制器的实际状态(有效或无效)。 | |
| uint32_t | HAL_HRTIM_GetCurrentPushPullStatus (const HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx) |
| 指示在推挽模式启用时,信号当前在哪个输出上有效。 | |
| uint32_t | HAL_HRTIM_GetIdlePushPullStatus (const HRTIM_HandleTypeDef *hhrtim, uint32_t TimerIdx) |
| 指示在推挽模式、平衡故障模式或延迟空闲模式下,当保护触发时信号被施加到哪个输出。 | |
外设状态函数。
===============================================================================
##### 外设状态函数 #####
===============================================================================
[..] 本节提供用于获取 HRTIM 或 HRTIM 定时器特定信息的函数:
(+) 获取 HRTIM HAL 状态
(+) 获取捕获值
(+) 获取 HRTIM 定时器输出电平
(+) 获取 HRTIM 定时器输出状态
(+) 获取延迟保护状态
(+) 获取突发状态
(+) 获取当前推挽状态
(+) 获取空闲推挽状态
| uint32_t HAL_HRTIM_GetBurstStatus | ( | const HRTIM_HandleTypeDef * | hhrtim | ) |
返回突发模式控制器的实际状态(有效或无效)。
| hhrtim | 指向 HAL HRTIM 句柄的指针 |
| 突发 | 模式控制器状态 |
定义位于文件 stm32g4xx_hal_hrtim.c 的第 7831 行。
| HRTIM_CaptureValueTypeDef HAL_HRTIM_GetCaptured | ( | const HRTIM_HandleTypeDef * | hhrtim, |
| uint32_t | TimerIdx, | ||
| uint32_t | CaptureUnit | ||
| ) |
返回指定捕获单元的捕获寄存器的实际值和方向。
| hhrtim | 指向 HAL HRTIM 句柄的指针 |
| TimerIdx | 定时器索引。此参数可以是以下值之一:
|
| CaptureUnit | 要触发的捕获单元。此参数可以是以下值之一:
|
| captured | 值和方向结构体 |
定义位于文件 stm32g4xx_hal_hrtim.c 的第 7424 行。
引用 assert_param, HRTIM_CaptureValueTypeDef::Dir, HRTIM_CAPTUREUNIT_1, HRTIM_CAPTUREUNIT_2, __HRTIM_HandleTypeDef::Instance, IS_HRTIM_CAPTUREUNIT, IS_HRTIM_TIMING_UNIT, 和 HRTIM_CaptureValueTypeDef::Value。
| uint32_t HAL_HRTIM_GetCapturedDir | ( | const HRTIM_HandleTypeDef * | hhrtim, |
| uint32_t | TimerIdx, | ||
| uint32_t | CaptureUnit | ||
| ) |
返回指定捕获单元的捕获寄存器的实际方向。
| hhrtim | 指向 HAL HRTIM 句柄的指针 |
| TimerIdx | 定时器索引。此参数可以是以下值之一:
|
| CaptureUnit | 要触发的捕获单元。此参数可以是以下值之一:
|
| captured | 方向
|
定义位于文件 stm32g4xx_hal_hrtim.c 的第 7477 行。
引用 assert_param, HRTIM_CAPTUREUNIT_1, HRTIM_CAPTUREUNIT_2, __HRTIM_HandleTypeDef::Instance, IS_HRTIM_CAPTUREUNIT, 和 IS_HRTIM_TIMING_UNIT。
| uint32_t HAL_HRTIM_GetCapturedValue | ( | const HRTIM_HandleTypeDef * | hhrtim, |
| uint32_t | TimerIdx, | ||
| uint32_t | CaptureUnit | ||
| ) |
返回指定捕获单元的捕获寄存器的实际值。
| hhrtim | 指向 HAL HRTIM 句柄的指针 |
| TimerIdx | 定时器索引。此参数可以是以下值之一:
|
| CaptureUnit | 要触发的捕获单元。此参数可以是以下值之一:
|
| Captured | 值 |
定义位于文件 stm32g4xx_hal_hrtim.c 的第 7371 行。
引用 assert_param, HRTIM_CAPTUREUNIT_1, HRTIM_CAPTUREUNIT_2, __HRTIM_HandleTypeDef::Instance, IS_HRTIM_CAPTUREUNIT, 和 IS_HRTIM_TIMING_UNIT。