libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
stm32_timebase.hpp
1#pragma once
2
3#include "main.h"
4#include "timebase.hpp"
5
6namespace LibXR
7{
39
40#ifdef HAL_TIM_MODULE_ENABLED
41
47{
48 public:
53 STM32TimerTimebase(TIM_HandleTypeDef* timer);
54
65
72
76 static TIM_HandleTypeDef* htim; // NOLINT
77};
78
79#endif
80
81} // namespace LibXR
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
获取基于STM32 SysTick计数器的时间基准(微秒与毫秒) / Provides a timebase using STM32 SysTick timer (microseconds and mi...
MillisecondTimestamp _get_milliseconds()
获取当前时间(毫秒级) / Get current time in milliseconds
STM32Timebase()
默认构造函数 / Default constructor
MicrosecondTimestamp _get_microseconds()
获取当前时间(微秒级) / Get current time in microseconds
基于硬件定时器的时间基准类 / Provides a timebase using hardware timer (TIM)
STM32TimerTimebase(TIM_HandleTypeDef *timer)
构造函数 / Constructor
MillisecondTimestamp _get_milliseconds()
获取当前时间(毫秒级) / Get current time in milliseconds
static TIM_HandleTypeDef * htim
硬件定时器句柄指针 / Static pointer to hardware timer handle
MicrosecondTimestamp _get_microseconds()
获取当前时间(微秒级) / Get current time in microseconds
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.
Definition timebase.hpp:18
LibXR 命名空间
Definition ch32_gpio.hpp:9