mFrame
|
公開方法(Public Methods) | |
CTIMER (void) | |
Construct a new object. | |
virtual | ~CTIMER (void) override |
Destroy the object. | |
![]() | |
Object (void) | |
Construct a new Object object. | |
virtual | ~Object (void) override |
Destroy the Object object. | |
void * | operator new (size_t n) |
void * | operator new (size_t n, void *p) |
mframe::lang::Object & | getObject (void) override |
取得類Object | |
void | delay (int milliseconds) const |
函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1),線程會立即重新安排。 | |
bool | equals (Object *object) const |
函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1),線程會立即重新安排。 | |
bool | equals (Object &object) const |
函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1),線程會立即重新安排。 | |
void | wait (void) const |
導致當前線程等待,直到另一個線程調用此對象的notify()方法或notifyAll()方法,或指定的時間 已過。 | |
bool | wait (int timeout) const |
導致當前線程等待,直到另一個線程調用此對象的 notify()方法或 notifyAll()方法,或其他一些線 程中斷當前線程,或一定量的實時時間。 | |
bool | yield (void) const |
函數yield()將控制權傳遞給處於READY狀態且具有相同優先級的下一個線程。 如果在READY狀態下沒有其他優先級相同的線程,則當前線程繼續執行,不會發生線程切換。 | |
int | lock (void) const |
核心鎖定,在調用unlock以前將不會進行執行緒切換 | |
int | unlock (void) const |
核心解鎖。 | |
mframe::sys::Thread * | currentThread (void) const |
取得當前的執行緒 | |
virtual int | hashcode (void) const |
返回對象的哈希碼值。支持這種方法是為了散列表,如HashMap提供的那樣。 | |
![]() | |
virtual | ~Interface (void)=default |
Destroy the struct object. | |
靜態公開方法(Static Public Methods) | |
static constexpr uint32 | IR_MR0INT (uint32 value) |
IR - MR0INT. | |
static constexpr uint32 | IR_MR1INT (uint32 value) |
IR - MR1INT. | |
static constexpr uint32 | IR_MR2INT (uint32 value) |
IR - MR2INT. | |
static constexpr uint32 | IR_MR3INT (uint32 value) |
IR - MR3INT. | |
static constexpr uint32 | IR_CR0INT (uint32 value) |
IR - CR0INT. | |
static constexpr uint32 | IR_CR1INT (uint32 value) |
IR - CR1INT. | |
static constexpr uint32 | IR_CR2INT (uint32 value) |
IR - CR2INT. | |
static constexpr uint32 | IR_CR3INT (uint32 value) |
IR - CR3INT. | |
static constexpr uint32 | TCR_CEN (uint32 value) |
TCR - CEN. | |
static constexpr uint32 | TCR_CRST (uint32 value) |
TCR - CRST. | |
static constexpr uint32 | TCR_AGCEN (uint32 value) |
TCR - AGCEN. | |
static constexpr uint32 | TCR_ATCEN (uint32 value) |
TCR - ATCEN. | |
static constexpr uint32 | TC_TCVAL (uint32 value) |
TCR - TCVAL. | |
static constexpr uint32 | PR_PRVAL (uint32 value) |
PR - PRVAL. | |
static constexpr uint32 | PC_PCVAL (uint32 value) |
PC - PCVAL. | |
static constexpr uint32 | MCR_MR0I (uint32 value) |
MCR - MR0I. | |
static constexpr uint32 | MCR_MR0R (uint32 value) |
MCR - MR0R. | |
static constexpr uint32 | MCR_MR0S (uint32 value) |
MCR - MR0S. | |
static constexpr uint32 | MCR_MR1I (uint32 value) |
MCR - MR1I. | |
static constexpr uint32 | MCR_MR1R (uint32 value) |
MCR - MR1R. | |
static constexpr uint32 | MCR_MR1S (uint32 value) |
MCR - MR1S. | |
static constexpr uint32 | MCR_MR2I (uint32 value) |
MCR - MR2I. | |
static constexpr uint32 | MCR_MR2R (uint32 value) |
MCR - MR2R. | |
static constexpr uint32 | MCR_MR2S (uint32 value) |
MCR - MR2S. | |
static constexpr uint32 | MCR_MR3I (uint32 value) |
MCR - MR3I. | |
static constexpr uint32 | MCR_MR3R (uint32 value) |
MCR - MR3R. | |
static constexpr uint32 | MCR_MR3S (uint32 value) |
MCR - MR3S. | |
static constexpr uint32 | MCR_MR0RL (uint32 value) |
MR0RL. | |
static constexpr uint32 | MCR_MR1RL (uint32 value) |
MR1RL. | |
static constexpr uint32 | MCR_MR2RL (uint32 value) |
MCR - MR2RL. | |
static constexpr uint32 | MCR_MR3RL (uint32 value) |
MCR - MR3RL. | |
static constexpr uint32 | MR_MATCH (uint32 value) |
MR - MATCH. | |
static constexpr uint32 | CCR_CAP0RE (uint32 value) |
CCR - CAP0RE. | |
static constexpr uint32 | CCR_CAP0FE (uint32 value) |
CCR - CAP0FE. | |
static constexpr uint32 | CCR_CAP0I (uint32 value) |
CCR - CAP0I. | |
static constexpr uint32 | CCR_CAP1RE (uint32 value) |
CCR - CAP1RE. | |
static constexpr uint32 | CCR_CAP1FE (uint32 value) |
CCR - CAP1FE. | |
static constexpr uint32 | CCR_CAP1I (uint32 value) |
CCR - CAP1I. | |
static constexpr uint32 | CCR_CAP2RE (uint32 value) |
CCR - CAP2RE. | |
static constexpr uint32 | CCR_CAP2FE (uint32 value) |
CCR - CAP2FE. | |
static constexpr uint32 | CCR_CAP2I (uint32 value) |
CCR - CAP2I. | |
static constexpr uint32 | CCR_CAP3RE (uint32 value) |
CCR - CAP3RE. | |
static constexpr uint32 | CCR_CAP3FE (uint32 value) |
CCR - CAP3FE. | |
static constexpr uint32 | CCR_CAP3I (uint32 value) |
CCR - CAP3I. | |
static constexpr uint32 | CR_CAP (uint32 value) |
CR - CAP. | |
static constexpr uint32 | EMR_EM0 (uint32 value) |
EMR - EM0. | |
static constexpr uint32 | EMR_EM1 (uint32 value) |
EMR - EM1. | |
static constexpr uint32 | EMR_EM2 (uint32 value) |
EMR - EM2. | |
static constexpr uint32 | EMR_EM3 (uint32 value) |
EMR - EM3. | |
static constexpr uint32 | EMR_EMC0 (uint32 value) |
EMR - EMC0. | |
static constexpr uint32 | EMR_EMC1 (uint32 value) |
EMR - EMC1. | |
static constexpr uint32 | EMR_EMC2 (uint32 value) |
EMR - EMC2. | |
static constexpr uint32 | EMR_EMC3 (uint32 value) |
EMR - EMC3. | |
static constexpr uint32 | CTCR_CTMODE (uint32 value) |
CTCR - CTMODE. | |
static constexpr uint32 | CTCR_CINSEL (uint32 value) |
CTCR - CINSEL. | |
static constexpr uint32 | CTCR_ENCC (uint32 value) |
CTCR - ENCC. | |
static constexpr uint32 | CTCR_SELCC (uint32 value) |
CTCR - SELCC. | |
static constexpr uint32 | PWMC_PWMEN0 (uint32 value) |
PWMC - PWMEN0. | |
static constexpr uint32 | PWMC_PWMEN1 (uint32 value) |
PWMC - PWMEN1. | |
static constexpr uint32 | PWMC_PWMEN2 (uint32 value) |
PWMC - PWMEN2. | |
static constexpr uint32 | PWMC_PWMEN3 (uint32 value) |
PWMC - PWMEN3. | |
static constexpr uint32 | MSR_MATCH_SHADOW (uint32 value) |
MSR - MATCH_SHADOW. | |
|
inlinestaticconstexpr |
CCR - CAP0FE.
Falling Edge of Capture Channel 0
|
inlinestaticconstexpr |
CCR - CAP0I.
Generate Interrupt on Channel 0 Capture Event
|
inlinestaticconstexpr |
CCR - CAP0RE.
Rising Edge of Capture Channel 0
|
inlinestaticconstexpr |
CCR - CAP1FE.
Falling Edge of Capture Channel 1
|
inlinestaticconstexpr |
CCR - CAP1I.
Generate Interrupt on Channel 1 Capture Event
|
inlinestaticconstexpr |
CCR - CAP1RE.
Rising Edge of Capture Channel 1
|
inlinestaticconstexpr |
CCR - CAP2FE.
Falling Edge of Capture Channel 2
|
inlinestaticconstexpr |
CCR - CAP2I.
Generate Interrupt on Channel 2 Capture Event
|
inlinestaticconstexpr |
CCR - CAP2RE.
Rising Edge of Capture Channel 2
|
inlinestaticconstexpr |
CCR - CAP3FE.
Falling Edge of Capture Channel 3
|
inlinestaticconstexpr |
CCR - CAP3I.
Generate Interrupt on Channel 3 Capture Event
|
inlinestaticconstexpr |
CCR - CAP3RE.
Rising Edge of Capture Channel 3
|
inlinestaticconstexpr |
CR - CAP.
Timer Counter Capture Value
|
inlinestaticconstexpr |
CTCR - CINSEL.
Count Input Select
|
inlinestaticconstexpr |
CTCR - CTMODE.
Counter Timer Mode
|
inlinestaticconstexpr |
CTCR - ENCC.
Capture Channel Enable
|
inlinestaticconstexpr |
CTCR - SELCC.
Edge Select
|
inlinestaticconstexpr |
EMR - EM0.
External Match 0
|
inlinestaticconstexpr |
EMR - EM1.
External Match 1
|
inlinestaticconstexpr |
EMR - EM2.
External Match 2
|
inlinestaticconstexpr |
EMR - EM3.
External Match 3
|
inlinestaticconstexpr |
EMR - EMC0.
External Match Control 0
|
inlinestaticconstexpr |
EMR - EMC1.
External Match Control 1
-[0b00] Does nothing
-[0b01] Goes low
-[0b10] Goes high
-[0b11] Toggles
|
inlinestaticconstexpr |
EMR - EMC2.
External Match Control 2
|
inlinestaticconstexpr |
EMR - EMC3.
External Match Control 3
|
inlinestaticconstexpr |
IR - CR0INT.
Interrupt Flag for Capture Channel 0 Event
|
inlinestaticconstexpr |
IR - CR1INT.
Interrupt Flag for Capture Channel 1 Event
|
inlinestaticconstexpr |
IR - CR2INT.
Interrupt Flag for Capture Channel 2 Event
|
inlinestaticconstexpr |
IR - CR3INT.
Interrupt Flag for Capture Channel 3 Event
|
inlinestaticconstexpr |
IR - MR0INT.
Interrupt Flag for Match Channel 0 Event
|
inlinestaticconstexpr |
IR - MR1INT.
Interrupt Flag for Match Channel 1 Event
|
inlinestaticconstexpr |
IR - MR2INT.
Interrupt Flag for Match Channel 2 Event
|
inlinestaticconstexpr |
IR - MR3INT.
Interrupt Flag for Match Channel 3 Event
|
inlinestaticconstexpr |
MCR - MR0I.
Interrupt on MR0
|
inlinestaticconstexpr |
MCR - MR0R.
Reset on MR0
|
inlinestaticconstexpr |
MR0RL.
Reload MR
|
inlinestaticconstexpr |
MCR - MR0S.
Stop on MR0
|
inlinestaticconstexpr |
MCR - MR1I.
Interrupt on MR1
|
inlinestaticconstexpr |
MCR - MR1R.
Reset on MR1
|
inlinestaticconstexpr |
MR1RL.
Reload MR
|
inlinestaticconstexpr |
MCR - MR1S.
Stop on MR1
|
inlinestaticconstexpr |
MCR - MR2I.
Interrupt on MR2
|
inlinestaticconstexpr |
MCR - MR2R.
Reset on MR2
|
inlinestaticconstexpr |
MCR - MR2RL.
Reload MR
|
inlinestaticconstexpr |
MCR - MR2S.
Stop on MR2
|
inlinestaticconstexpr |
MCR - MR3I.
Interrupt on MR3
|
inlinestaticconstexpr |
MCR - MR3R.
Reset on MR3
|
inlinestaticconstexpr |
MCR - MR3RL.
Reload MR
|
inlinestaticconstexpr |
MCR - MR3S.
Stop on MR3
|
inlinestaticconstexpr |
MR - MATCH.
Timer Counter Match Value
|
inlinestaticconstexpr |
MSR - MATCH_SHADOW.
Timer Counter Match Shadow Value
|
inlinestaticconstexpr |
PC - PCVAL.
Prescale Counter Value
|
inlinestaticconstexpr |
PR - PRVAL.
Prescale Reload Value
|
inlinestaticconstexpr |
PWMC - PWMEN0.
PWM Mode Enable for Channel 0
|
inlinestaticconstexpr |
PWMC - PWMEN1.
PWM Mode Enable for Channel 1
|
inlinestaticconstexpr |
PWMC - PWMEN2.
PWM Mode Enable for Channel 2
|
inlinestaticconstexpr |
PWMC - PWMEN3.
PWM Mode Enable for Channel 3
|
inlinestaticconstexpr |
TCR - TCVAL.
Timer Counter Value
|
inlinestaticconstexpr |
TCR - AGCEN.
Allow Global Count Enable
|
inlinestaticconstexpr |
TCR - ATCEN.
Allow Trigger Count Enable
|
inlinestaticconstexpr |
TCR - CEN.
Counter Enable
|
inlinestaticconstexpr |
TCR - CRST.
Counter Reset Enable