|
| | MSPM0Timebase () |
| | 构造函数 / Constructor
|
| |
|
| Timebase ()=default |
| | 默认构造函数。 Default constructor.
|
| |
|
| Timebase (const Timebase &)=delete |
| | 禁止拷贝构造。 Copy construction is disabled.
|
| |
|
Timebase & | operator= (const Timebase &)=delete |
| | 禁止拷贝赋值。 Copy assignment is disabled.
|
| |
|
| static volatile uint32_t | sys_tick_ms |
| | SysTick 毫秒计数器。 SysTick millisecond counter.
|
| |
|
| static void | SetReady (bool ready=true) noexcept |
| | 设置时间基就绪状态。 Set the timebase ready flag.
|
| |
| static void | ConfigureWrapRange (uint64_t max_valid_us, uint32_t max_valid_ms) noexcept |
| | 配置时间戳回绕上界。 Configure the timestamp wraparound limits.
|
| |
| static uint64_t | GetConfiguredWrapRangeUs () noexcept |
| | 读取当前配置的微秒回绕上界。 Read the configured microsecond wraparound limit.
|
| |
| static uint32_t | GetConfiguredWrapRangeMs () noexcept |
| | 读取当前配置的毫秒回绕上界。 Read the configured millisecond wraparound limit.
|
| |
Definition at line 10 of file mspm0_timebase.hpp.
◆ MSPM0Timebase()
| MSPM0Timebase::MSPM0Timebase |
( |
| ) |
|
构造函数 / Constructor
配置 MSPM0 SysTick 时间基的回绕范围,开启 SysTick 中断并设为最高优先级(0), 然后标记时间基已就绪。SysTick 的 1 ms 周期和启动由 SysConfig 配置。 Configures the MSPM0 SysTick wrap range, enables the SysTick interrupt at the highest priority (0) and marks the timebase ready. SysConfig configures the 1 ms SysTick period and starts SysTick.
Definition at line 5 of file mspm0_timebase.cpp.
6{
8
9
10 NVIC_SetPriority(SysTick_IRQn, 0U);
11 DL_SYSTICK_enableInterrupt();
13}
static void ConfigureWrapRange(uint64_t max_valid_us, uint32_t max_valid_ms) noexcept
配置时间戳回绕上界。 Configure the timestamp wraparound limits.
static void SetReady(bool ready=true) noexcept
设置时间基就绪状态。 Set the timebase ready flag.
◆ OnSysTickInterrupt()
| void MSPM0Timebase::OnSysTickInterrupt |
( |
| ) |
|
|
static |
SysTick 中断入口辅助函数。 Helper called from the SysTick interrupt path.
Definition at line 66 of file mspm0_timebase.cpp.
67{
68
69
70
72}
static volatile uint32_t sys_tick_ms
SysTick 毫秒计数器。 SysTick millisecond counter.
◆ Sync()
| void MSPM0Timebase::Sync |
( |
uint32_t | ticks | ) |
|
|
static |
同步毫秒计数器。 Synchronize the millisecond counter.
- Parameters
-
| ticks | 新的毫秒计数值 / New millisecond tick value. |
Definition at line 73 of file mspm0_timebase.cpp.
◆ sys_tick_ms
| volatile uint32_t LibXR::MSPM0Timebase::sys_tick_ms |
|
inlinestatic |
The documentation for this class was generated from the following files: