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{
33
34#ifdef HAL_TIM_MODULE_ENABLED
35
40{
41 public:
46 STM32TimerTimebase(TIM_HandleTypeDef* timer);
47
54
61
65 static TIM_HandleTypeDef* htim; // NOLINT
66};
67
68#endif
69
70} // namespace LibXR
表示微秒级时间戳的类。Class representing a timestamp in microseconds.
表示毫秒级时间戳的类。Class representing a timestamp in milliseconds.
STM32 SysTick 时间基准实现 / STM32 SysTick-based timebase implementation.
MillisecondTimestamp _get_milliseconds()
获取当前毫秒计数 / Get current timestamp in milliseconds
STM32Timebase()
默认构造函数 / Default constructor
MicrosecondTimestamp _get_microseconds()
获取当前微秒计数 / Get current timestamp in microseconds
STM32 硬件定时器时间基准实现 / STM32 timer-based timebase implementation.
STM32TimerTimebase(TIM_HandleTypeDef *timer)
构造函数 / Constructor
MillisecondTimestamp _get_milliseconds()
获取当前毫秒计数 / Get current timestamp in milliseconds
static TIM_HandleTypeDef * htim
硬件定时器句柄静态指针 / Static pointer to timer handle
MicrosecondTimestamp _get_microseconds()
获取当前微秒计数 / Get current timestamp in microseconds
时间基类,用于提供高精度时间戳。 Timebase class for providing high-precision timestamps.
Definition timebase.hpp:18
LibXR 命名空间
Definition ch32_can.hpp:14