|
libxr
1.0
Want to be the best embedded framework
|
Public Member Functions | |
| MicrosecondTimestamp | _get_microseconds () override |
| 纯虚函数,获取当前时间的微秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in microseconds (implemented by derived classes). | |
| MillisecondTimestamp | _get_milliseconds () override |
| 纯虚函数,获取当前时间的毫秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in milliseconds (implemented by derived classes). | |
Public Member Functions inherited from LibXR::Timebase | |
| Timebase (uint64_t max_valid_us=UINT64_MAX, uint32_t max_valid_ms=UINT32_MAX) | |
| 默认构造函数,初始化全局时间基指针。 Default constructor, initializing the global timebase pointer. | |
Static Public Member Functions | |
| static void | OnSysTickInterrupt () |
| static void | Sync (uint32_t ticks) |
Static Public Member Functions inherited from LibXR::Timebase | |
| static MicrosecondTimestamp | GetMicroseconds () |
| 获取当前时间的微秒级时间戳。 Gets the current timestamp in microseconds. | |
| static MillisecondTimestamp | GetMilliseconds () |
| 获取当前时间的毫秒级时间戳。 Gets the current timestamp in milliseconds. | |
| static void | DelayMicroseconds (uint32_t us) |
| 微秒级延时 / Delay in microseconds | |
Static Public Attributes | |
| static volatile uint32_t | sys_tick_ms |
Static Public Attributes inherited from LibXR::Timebase | |
| static Timebase * | timebase = nullptr |
| 静态指针,用于存储全局时间基对象。 Static pointer storing the global timebase instance. | |
Definition at line 9 of file mspm0_timebase.hpp.
| MSPM0Timebase::MSPM0Timebase | ( | ) |
Definition at line 5 of file mspm0_timebase.cpp.
|
overridevirtual |
纯虚函数,获取当前时间的微秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in microseconds (implemented by derived classes).
该函数需要在派生类中实现,以提供具体的时间获取机制。 This function must be implemented in derived classes to provide the actual time retrieval mechanism.
Implements LibXR::Timebase.
Definition at line 10 of file mspm0_timebase.cpp.
|
overridevirtual |
纯虚函数,获取当前时间的毫秒级时间戳(由派生类实现)。 Pure virtual function for obtaining the current timestamp in milliseconds (implemented by derived classes).
该函数需要在派生类中实现,以提供具体的时间获取机制。 This function must be implemented in derived classes to provide the actual time retrieval mechanism.
Implements LibXR::Timebase.
Definition at line 44 of file mspm0_timebase.cpp.
|
static |
Definition at line 45 of file mspm0_timebase.cpp.
|
static |
Definition at line 46 of file mspm0_timebase.cpp.
|
inlinestatic |
Definition at line 22 of file mspm0_timebase.hpp.