mFrame
|
公開方法(Public Methods) | |
Port (void) | |
Construct a new object. | |
virtual | ~Port (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 Version | setVersionInfo (Register &base) |
Get PORT version information. | |
static void | secletPortVoltageRange (Register &base, VoltageRange range) |
Get PORT version information. | |
static void | setPinConfig (Register &base, uint32 pin, const Config &config) |
Sets the port PCR register. | |
static void | setMultiplePinsConfig (Register &base, uint32 mask, const Config &config) |
Sets the port PCR register for multiple pins. | |
static void | setPinMux (Register &base, uint32 pin, Mux mux) |
Configures the pin muxing. | |
static void | setPinDriveStrength (Register &base, uint32 pin, uint8 strength) |
Configures the port pin drive strength. | |
static void | enablePinDoubleDriveStrength (Register &base, uint32 pin, bool enable) |
Enables the port pin double drive strength. | |
static void | setPinPullValue (Register &base, uint32 pin, uint8 value) |
Configures the port pin pull value. | |
static constexpr uint32 | VERID_FEATURE (uint32 value) |
VERID - FEATURE. | |
static constexpr uint32 | VERID_MINOR (uint32 value) |
VERID - MINOR. | |
static constexpr uint32 | VERID_MAJOR (uint32 value) |
VERID - MAJOR. | |
static constexpr uint32 | GPCLR_GPWD (uint32 value) |
GPCLR - GPWD. | |
static constexpr uint32 | GPCLR_GPWE0 (uint32 value) |
GPCLR - GPWE0. | |
static constexpr uint32 | GPCLR_GPWE1 (uint32 value) |
GPCLR - GPWE1. | |
static constexpr uint32 | GPCLR_GPWE2 (uint32 value) |
GPCLR - GPWE2. | |
static constexpr uint32 | GPCLR_GPWE3 (uint32 value) |
GPCLR - GPWE3. | |
static constexpr uint32 | GPCLR_GPWE4 (uint32 value) |
GPCLR - GPWE4. | |
static constexpr uint32 | GPCLR_GPWE5 (uint32 value) |
GPCLR - GPWE5. | |
static constexpr uint32 | GPCLR_GPWE6 (uint32 value) |
GPCLR - GPWE6. | |
static constexpr uint32 | GPCLR_GPWE7 (uint32 value) |
GPCLR - GPWE7. | |
static constexpr uint32 | GPCLR_GPWE8 (uint32 value) |
GPCLR - GPWE8. | |
static constexpr uint32 | GPCLR_GPWE9 (uint32 value) |
GPCLR - GPWE9. | |
static constexpr uint32 | GPCLR_GPWE10 (uint32 value) |
GPCLR - GPWE10. | |
static constexpr uint32 | GPCLR_GPWE11 (uint32 value) |
GPCLR - GPWE11. | |
static constexpr uint32 | GPCLR_GPWE12 (uint32 value) |
GPCLR - GPWE12. | |
static constexpr uint32 | GPCLR_GPWE13 (uint32 value) |
GPCLR - GPWE13. | |
static constexpr uint32 | GPCLR_GPWE14 (uint32 value) |
GPCLR - GPWE14. | |
static constexpr uint32 | GPCLR_GPWE15 (uint32 value) |
GPCLR - GPWE15. | |
static constexpr uint32 | GPCHR_GPWD (uint32 value) |
GPCHR - GPWD. | |
static constexpr uint32 | GPCHR_GPWE16 (uint32 value) |
GPCHR - GPWE16. | |
static constexpr uint32 | GPCHR_GPWE17 (uint32 value) |
GPCHR - GPWE17. | |
static constexpr uint32 | GPCHR_GPWE18 (uint32 value) |
GPCHR - GPWE18. | |
static constexpr uint32 | GPCHR_GPWE19 (uint32 value) |
GPCHR - GPWE19. | |
static constexpr uint32 | GPCHR_GPWE20 (uint32 value) |
GPCHR - GPWE20. | |
static constexpr uint32 | GPCHR_GPWE21 (uint32 value) |
GPCHR - GPWE21. | |
static constexpr uint32 | GPCHR_GPWE22 (uint32 value) |
GPCHR - GPWE22. | |
static constexpr uint32 | GPCHR_GPWE23 (uint32 value) |
GPCHR - GPWE23. | |
static constexpr uint32 | GPCHR_GPWE24 (uint32 value) |
GPCHR - GPWE24. | |
static constexpr uint32 | GPCHR_GPWE25 (uint32 value) |
GPCHR - GPWE25. | |
static constexpr uint32 | GPCHR_GPWE26 (uint32 value) |
GPCHR - GPWE26. | |
static constexpr uint32 | GPCHR_GPWE27 (uint32 value) |
GPCHR - GPWE27. | |
static constexpr uint32 | GPCHR_GPWE28 (uint32 value) |
GPCHR - GPWE28. | |
static constexpr uint32 | GPCHR_GPWE29 (uint32 value) |
GPCHR - GPWE29. | |
static constexpr uint32 | GPCHR_GPWE30 (uint32 value) |
GPCHR - GPWE30. | |
static constexpr uint32 | GPCHR_GPWE31 (uint32 value) |
GPCHR - GPWE31. | |
static constexpr uint32 | CONFIG_RANGE (uint32 value) |
CONFIG - RANGE. | |
static constexpr uint32 | CALIB0_NCAL (uint32 value) |
CALIB0 - NCAL. | |
static constexpr uint32 | CALIB0_PCAL (uint32 value) |
CALIB0 - PCAL. | |
static constexpr uint32 | CALIB1_NCAL (uint32 value) |
CALIB1 - NCAL. | |
static constexpr uint32 | CALIB1_PCAL (uint32 value) |
CALIB1 - PCAL. | |
static constexpr uint32 | PCR_PS (uint32 value) |
PCR - PS. | |
static constexpr uint32 | PCR_PE (uint32 value) |
PCR - PE. | |
static constexpr uint32 | PCR_PV (uint32 value) |
PCR - PV. | |
static constexpr uint32 | PCR_SRE (uint32 value) |
PCR - SRE. | |
static constexpr uint32 | PCR_PFE (uint32 value) |
PCR - PFE. | |
static constexpr uint32 | PCR_ODE (uint32 value) |
PCR - ODE. | |
static constexpr uint32 | PCR_DSE (uint32 value) |
PCR - DSE. | |
static constexpr uint32 | PCR_DSE1 (uint32 value) |
PCR - DSE1. | |
static constexpr uint32 | PCR_MUX (uint32 value) |
PCR - MUX. | |
static constexpr uint32 | PCR_IBE (uint32 value) |
PCR - IBE. | |
static constexpr uint32 | PCR_INV (uint32 value) |
PCR - INV. | |
static constexpr uint32 | PCR_LK (uint32 value) |
PCR - LK. | |
|
inlinestaticconstexpr |
CALIB0 - NCAL.
Calibration 0 - Calibration of NMOS Output Driver
|
inlinestaticconstexpr |
CALIB0 - PCAL.
Calibration 0 - Calibration of PMOS Output Driver
|
inlinestaticconstexpr |
CALIB1 - NCAL.
Calibration 1 - Calibration of NMOS Output Driver
|
inlinestaticconstexpr |
CALIB1 - PCAL.
Calibration 1 - Calibration of PMOS Output Driver
|
inlinestaticconstexpr |
|
inlinestatic |
Enables the port pin double drive strength.
base | PORT peripheral base pointer. |
pin | PORT pin number. |
enable | PORT pin drive strength configuration. |
|
inlinestaticconstexpr |
GPCHR - GPWD.
Global Pin Control High - Global Pin Write Data
|
inlinestaticconstexpr |
GPCHR - GPWE16.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE17.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE18.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE19.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE20.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE21.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE22.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE23.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE24.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE25.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE26.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE27.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE28.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE29.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE30.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCHR - GPWE31.
Global Pin Control High - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWD.
Global Pin Control Low - Global Pin Write Data
|
inlinestaticconstexpr |
GPCLR - GPWE0.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE1.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE10.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE11.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE12.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE13.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE14.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE15.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE2.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE3.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE4.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE5.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE6.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE7.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE8.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
GPCLR - GPWE9.
Global Pin Control Low - Global Pin Write Enable
|
inlinestaticconstexpr |
PCR - DSE.
Pin Control 0..Pin Control 31 - Drive Strength Enable
|
inlinestaticconstexpr |
PCR - DSE1.
Pin Control 0..Pin Control 31 - Drive Strength Enable
|
inlinestaticconstexpr |
PCR - IBE.
Pin Control 0..Pin Control 31 - Input Buffer Enable
|
inlinestaticconstexpr |
PCR - INV.
Pin Control 0..Pin Control 31 - Invert Input
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
PCR - MUX.
Pin Control 0..Pin Control 31 - Pin Multiplex Control
|
inlinestaticconstexpr |
PCR - ODE.
Pin Control 0..Pin Control 31 - Open Drain Enable
|
inlinestaticconstexpr |
PCR - PE.
Pin Control 0..Pin Control 31 - Pull Enable
|
inlinestaticconstexpr |
PCR - PFE.
Pin Control 0..Pin Control 31 - Passive Filter Enable
|
inlinestaticconstexpr |
PCR - PS.
Pin Control 0..Pin Control 31 - Pull Select
|
inlinestaticconstexpr |
PCR - PV.
Pin Control 0..Pin Control 31 - Pull Value
|
inlinestaticconstexpr |
PCR - SRE.
Pin Control 0..Pin Control 31 - Slew Rate Enable
|
inlinestatic |
Get PORT version information.
base | PORT peripheral base pointer |
range | port voltage range |
|
inlinestatic |
Sets the port PCR register for multiple pins.
This is an example to define input pins or output pins PCR configuration.
base | PORT peripheral base pointer. |
mask | PORT pin number macro. |
config | PORT PCR register configuration structure. |
|
inlinestatic |
Sets the port PCR register.
This is an example to define an input pin or output pin PCR configuration.
base | PORT peripheral base pointer. |
pin | PORT pin number. |
config | PORT PCR register configuration structure. |
|
inlinestatic |
Configures the port pin drive strength.
base | PORT peripheral base pointer. |
pin | PORT pin number. |
strength | PORT pin drive strength
|
Configures the pin muxing.
base | PORT peripheral base pointer. |
pin | PORT pin number. |
mux | pin muxing slot selection.
|
|
inlinestatic |
Configures the port pin pull value.
base | PORT peripheral base pointer. |
pin | PORT pin number. |
value | PORT pin pull value
|
Get PORT version information.
base | PORT peripheral base pointer |
info | PORT version information |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |