mFrame
載入中...
搜尋中...
無符合項目
chip::port::Port 類別 參考文件
類別chip::port::Port的繼承圖:
mframe::lang::Object mframe::lang::Interface

公開方法(Public Methods)

 Port (void)
 Construct a new object.
 
virtual ~Port (void) override
 Destroy the object.
 
- 公開方法(Public Methods) 繼承自 mframe::lang::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::ObjectgetObject (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::ThreadcurrentThread (void) const
 取得當前的執行緒
 
virtual int hashcode (void) const
 返回對象的哈希碼值。支持這種方法是為了散列表,如HashMap提供的那樣。
 
- 公開方法(Public Methods) 繼承自 mframe::lang::Interface
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.
 

函式成員說明文件

◆ CALIB0_NCAL()

static constexpr uint32 chip::port::Port::CALIB0_NCAL ( uint32 value)
inlinestaticconstexpr

CALIB0 - NCAL.

Calibration 0 - Calibration of NMOS Output Driver

◆ CALIB0_PCAL()

static constexpr uint32 chip::port::Port::CALIB0_PCAL ( uint32 value)
inlinestaticconstexpr

CALIB0 - PCAL.

Calibration 0 - Calibration of PMOS Output Driver

◆ CALIB1_NCAL()

static constexpr uint32 chip::port::Port::CALIB1_NCAL ( uint32 value)
inlinestaticconstexpr

CALIB1 - NCAL.

Calibration 1 - Calibration of NMOS Output Driver

◆ CALIB1_PCAL()

static constexpr uint32 chip::port::Port::CALIB1_PCAL ( uint32 value)
inlinestaticconstexpr

CALIB1 - PCAL.

Calibration 1 - Calibration of PMOS Output Driver

◆ CONFIG_RANGE()

static constexpr uint32 chip::port::Port::CONFIG_RANGE ( uint32 value)
inlinestaticconstexpr

CONFIG - RANGE.

Configuration - Port Voltage Range

  • [0b0]1.71 V-3.6 V
  • [0b1]2.70 V-3.6 V

◆ enablePinDoubleDriveStrength()

static void chip::port::Port::enablePinDoubleDriveStrength ( Register & base,
uint32 pin,
bool enable )
inlinestatic

Enables the port pin double drive strength.

參數
basePORT peripheral base pointer.
pinPORT pin number.
enablePORT pin drive strength configuration.

◆ GPCHR_GPWD()

static constexpr uint32 chip::port::Port::GPCHR_GPWD ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWD.

Global Pin Control High - Global Pin Write Data

◆ GPCHR_GPWE16()

static constexpr uint32 chip::port::Port::GPCHR_GPWE16 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE16.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE17()

static constexpr uint32 chip::port::Port::GPCHR_GPWE17 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE17.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE18()

static constexpr uint32 chip::port::Port::GPCHR_GPWE18 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE18.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE19()

static constexpr uint32 chip::port::Port::GPCHR_GPWE19 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE19.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE20()

static constexpr uint32 chip::port::Port::GPCHR_GPWE20 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE20.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE21()

static constexpr uint32 chip::port::Port::GPCHR_GPWE21 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE21.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE22()

static constexpr uint32 chip::port::Port::GPCHR_GPWE22 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE22.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE23()

static constexpr uint32 chip::port::Port::GPCHR_GPWE23 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE23.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE24()

static constexpr uint32 chip::port::Port::GPCHR_GPWE24 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE24.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE25()

static constexpr uint32 chip::port::Port::GPCHR_GPWE25 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE25.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE26()

static constexpr uint32 chip::port::Port::GPCHR_GPWE26 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE26.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE27()

static constexpr uint32 chip::port::Port::GPCHR_GPWE27 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE27.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE28()

static constexpr uint32 chip::port::Port::GPCHR_GPWE28 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE28.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE29()

static constexpr uint32 chip::port::Port::GPCHR_GPWE29 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE29.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE30()

static constexpr uint32 chip::port::Port::GPCHR_GPWE30 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE30.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCHR_GPWE31()

static constexpr uint32 chip::port::Port::GPCHR_GPWE31 ( uint32 value)
inlinestaticconstexpr

GPCHR - GPWE31.

Global Pin Control High - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWD()

static constexpr uint32 chip::port::Port::GPCLR_GPWD ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWD.

Global Pin Control Low - Global Pin Write Data

◆ GPCLR_GPWE0()

static constexpr uint32 chip::port::Port::GPCLR_GPWE0 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE0.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE1()

static constexpr uint32 chip::port::Port::GPCLR_GPWE1 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE1.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE10()

static constexpr uint32 chip::port::Port::GPCLR_GPWE10 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE10.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE11()

static constexpr uint32 chip::port::Port::GPCLR_GPWE11 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE11.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE12()

static constexpr uint32 chip::port::Port::GPCLR_GPWE12 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE12.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE13()

static constexpr uint32 chip::port::Port::GPCLR_GPWE13 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE13.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE14()

static constexpr uint32 chip::port::Port::GPCLR_GPWE14 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE14.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE15()

static constexpr uint32 chip::port::Port::GPCLR_GPWE15 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE15.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE2()

static constexpr uint32 chip::port::Port::GPCLR_GPWE2 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE2.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE3()

static constexpr uint32 chip::port::Port::GPCLR_GPWE3 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE3.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE4()

static constexpr uint32 chip::port::Port::GPCLR_GPWE4 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE4.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE5()

static constexpr uint32 chip::port::Port::GPCLR_GPWE5 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE5.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE6()

static constexpr uint32 chip::port::Port::GPCLR_GPWE6 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE6.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE7()

static constexpr uint32 chip::port::Port::GPCLR_GPWE7 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE7.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE8()

static constexpr uint32 chip::port::Port::GPCLR_GPWE8 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE8.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ GPCLR_GPWE9()

static constexpr uint32 chip::port::Port::GPCLR_GPWE9 ( uint32 value)
inlinestaticconstexpr

GPCLR - GPWE9.

Global Pin Control Low - Global Pin Write Enable

  • [0b0]Not updated
  • [0b1]Updated

◆ PCR_DSE()

static constexpr uint32 chip::port::Port::PCR_DSE ( uint32 value)
inlinestaticconstexpr

PCR - DSE.

Pin Control 0..Pin Control 31 - Drive Strength Enable

  • [0b0]Low
  • [0b1]High

◆ PCR_DSE1()

static constexpr uint32 chip::port::Port::PCR_DSE1 ( uint32 value)
inlinestaticconstexpr

PCR - DSE1.

Pin Control 0..Pin Control 31 - Drive Strength Enable

  • [0b0]Normal
  • [0b1]Double

◆ PCR_IBE()

static constexpr uint32 chip::port::Port::PCR_IBE ( uint32 value)
inlinestaticconstexpr

PCR - IBE.

Pin Control 0..Pin Control 31 - Input Buffer Enable

  • [0b0]Disables
  • [0b1]Enables

◆ PCR_INV()

static constexpr uint32 chip::port::Port::PCR_INV ( uint32 value)
inlinestaticconstexpr

PCR - INV.

Pin Control 0..Pin Control 31 - Invert Input

  • [0b0]Does not invert
  • [0b1]Inverts

◆ PCR_LK()

static constexpr uint32 chip::port::Port::PCR_LK ( uint32 value)
inlinestaticconstexpr

PCR - LK.

Pin Control 0..Pin Control 31 - Lock Register

  • [0b0]Does not lock
  • [0b1]Locks

◆ PCR_MUX()

static constexpr uint32 chip::port::Port::PCR_MUX ( uint32 value)
inlinestaticconstexpr

PCR - MUX.

Pin Control 0..Pin Control 31 - Pin Multiplex Control

  • [0b0000]Alternative 0 (GPIO)
  • [0b0001]Alternative 1 (chip-specific)
  • [0b0010]Alternative 2 (chip-specific)
  • [0b0011]Alternative 3 (chip-specific)
  • [0b0100]Alternative 4 (chip-specific)
  • [0b0101]Alternative 5 (chip-specific)
  • [0b0110]Alternative 6 (chip-specific)
  • [0b0111]Alternative 7 (chip-specific)
  • [0b1000]Alternative 8 (chip-specific)
  • [0b1001]Alternative 9 (chip-specific)
  • [0b1010]Alternative 10 (chip-specific)
  • [0b1011]Alternative 11 (chip-specific)
  • [0b1100]Alternative 12 (chip-specific)
  • [0b1101]Alternative 13 (chip-specific)

◆ PCR_ODE()

static constexpr uint32 chip::port::Port::PCR_ODE ( uint32 value)
inlinestaticconstexpr

PCR - ODE.

Pin Control 0..Pin Control 31 - Open Drain Enable

  • [0b0]Disables
  • [0b1]Enables

◆ PCR_PE()

static constexpr uint32 chip::port::Port::PCR_PE ( uint32 value)
inlinestaticconstexpr

PCR - PE.

Pin Control 0..Pin Control 31 - Pull Enable

  • [0b0]Disables
  • [0b1]Enables

◆ PCR_PFE()

static constexpr uint32 chip::port::Port::PCR_PFE ( uint32 value)
inlinestaticconstexpr

PCR - PFE.

Pin Control 0..Pin Control 31 - Passive Filter Enable

  • [0b0]Disables
  • [0b1]Enables

◆ PCR_PS()

static constexpr uint32 chip::port::Port::PCR_PS ( uint32 value)
inlinestaticconstexpr

PCR - PS.

Pin Control 0..Pin Control 31 - Pull Select

  • [0b0]Enables internal pulldown resistor
  • [0b1]Enables internal pullup resistor

◆ PCR_PV()

static constexpr uint32 chip::port::Port::PCR_PV ( uint32 value)
inlinestaticconstexpr

PCR - PV.

Pin Control 0..Pin Control 31 - Pull Value

  • [0b0]Low
  • [0b1]High

◆ PCR_SRE()

static constexpr uint32 chip::port::Port::PCR_SRE ( uint32 value)
inlinestaticconstexpr

PCR - SRE.

Pin Control 0..Pin Control 31 - Slew Rate Enable

  • [0b0]Fast
  • [0b1]Slow

◆ secletPortVoltageRange()

static void chip::port::Port::secletPortVoltageRange ( Register & base,
VoltageRange range )
inlinestatic

Get PORT version information.

: PORTA_CONFIG[RANGE] controls the voltage ranges of Port A, B, and C. Read or write PORTB_CONFIG[RANGE] and PORTC_CONFIG[RANGE] does not take effect.
參數
basePORT peripheral base pointer
rangeport voltage range

◆ setMultiplePinsConfig()

static void chip::port::Port::setMultiplePinsConfig ( Register & base,
uint32 mask,
const Config & config )
inlinestatic

Sets the port PCR register for multiple pins.

This is an example to define input pins or output pins PCR configuration.

Define a digital input pin PCR configuration
port_pin_config_t config = {
kPORT_PullUp ,
kPORT_PullEnable,
kPORT_FastSlewRate,
kPORT_PassiveFilterDisable,
kPORT_OpenDrainDisable,
kPORT_LowDriveStrength,
kPORT_MuxAsGpio,
kPORT_UnlockRegister,
};
參數
basePORT peripheral base pointer.
maskPORT pin number macro.
configPORT PCR register configuration structure.

◆ setPinConfig()

static void chip::port::Port::setPinConfig ( Register & base,
uint32 pin,
const Config & config )
inlinestatic

Sets the port PCR register.

This is an example to define an input pin or output pin PCR configuration.

// Define a digital input pin PCR configuration
port_pin_config_t config = {
kPORT_PullUp,
kPORT_FastSlewRate,
kPORT_PassiveFilterDisable,
kPORT_OpenDrainDisable,
kPORT_LowDriveStrength,
kPORT_MuxAsGpio,
kPORT_UnLockRegister,
};
參數
basePORT peripheral base pointer.
pinPORT pin number.
configPORT PCR register configuration structure.

◆ setPinDriveStrength()

static void chip::port::Port::setPinDriveStrength ( Register & base,
uint32 pin,
uint8 strength )
inlinestatic

Configures the port pin drive strength.

參數
basePORT peripheral base pointer.
pinPORT pin number.
strengthPORT pin drive strength
  • #kPORT_LowDriveStrength = 0U - Low-drive strength is configured.
  • #kPORT_HighDriveStrength = 1U - High-drive strength is configured.

◆ setPinMux()

static void chip::port::Port::setPinMux ( Register & base,
uint32 pin,
Mux mux )
inlinestatic

Configures the pin muxing.

參數
basePORT peripheral base pointer.
pinPORT pin number.
muxpin muxing slot selection.
  • #kPORT_PinDisabledOrAnalog: Pin disabled or work in analog function.
  • #kPORT_MuxAsGpio : Set as GPIO.
  • #kPORT_MuxAlt2 : chip-specific.
  • #kPORT_MuxAlt3 : chip-specific.
  • #kPORT_MuxAlt4 : chip-specific.
  • #kPORT_MuxAlt5 : chip-specific.
  • #kPORT_MuxAlt6 : chip-specific.
  • #kPORT_MuxAlt7 : chip-specific.
: This function is NOT recommended to use together with the PORT_SetPinsConfig, because the PORT_SetPinsConfig need to configure the pin mux anyway (Otherwise the pin mux is reset to zero : kPORT_PinDisabledOrAnalog). This function is recommended to use to reset the pin mux

◆ setPinPullValue()

static void chip::port::Port::setPinPullValue ( Register & base,
uint32 pin,
uint8 value )
inlinestatic

Configures the port pin pull value.

參數
basePORT peripheral base pointer.
pinPORT pin number.
valuePORT pin pull value
  • #kPORT_LowPullResistor = 0U - Low internal pull resistor value is selected.
  • #kPORT_HighPullResistor = 1U - High internal pull resistor value is selected.

◆ setVersionInfo()

static Version chip::port::Port::setVersionInfo ( Register & base)
inlinestatic

Get PORT version information.

參數
basePORT peripheral base pointer
infoPORT version information

◆ VERID_FEATURE()

static constexpr uint32 chip::port::Port::VERID_FEATURE ( uint32 value)
inlinestaticconstexpr

VERID - FEATURE.

Version ID - Feature Specification Number

  • [0b0000000000000000]Basic implementation

◆ VERID_MAJOR()

static constexpr uint32 chip::port::Port::VERID_MAJOR ( uint32 value)
inlinestaticconstexpr

VERID - MAJOR.

Version ID - Major Version Number

◆ VERID_MINOR()

static constexpr uint32 chip::port::Port::VERID_MINOR ( uint32 value)
inlinestaticconstexpr

VERID - MINOR.

Version ID - Minor Version Number


此類別(class) 文件是由下列檔案中產生: