![]() |
mFrame
|
MCXA153 低功耗串列周邊介面 (Low Power Serial Peripheral Interface) 控制器靜態工具類別 更多...
#include <LPSPI.h>
靜態公開方法(Static Public Methods) | |
static constexpr uint32 | VERID_FEATURE (uint32 value) |
VERID - FEATURE. | |
static constexpr uint32 | VERID_MINOR (uint32 value) |
MINOR - Minor. | |
static constexpr uint32 | VERID_MAJOR (uint32 value) |
MAJOR - Major. | |
static constexpr uint32 | PARAM_TXFIFO (uint32 value) |
PARAM - TXFIFO. | |
static constexpr uint32 | PARAM_RXFIFO (uint32 value) |
PARAM - RXFIFO. | |
static constexpr uint32 | PARAM_PCSNUM (uint32 value) |
PARAM. | |
static constexpr uint32 | CR_MEN (uint32 value) |
CR - MEN. | |
static constexpr uint32 | CR_RST (uint32 value) |
CR - RST. | |
static constexpr uint32 | CR_DBGEN (uint32 value) |
CR - DBGEN. | |
static constexpr uint32 | CR_RTF (uint32 value) |
CR - RTF. | |
static constexpr uint32 | CR_RRF (uint32 value) |
CR - RRF. | |
static constexpr uint32 | SR_TDF (uint32 value) |
SR - TDF. | |
static constexpr uint32 | SR_RDF (uint32 value) |
SR - RDF. | |
static constexpr uint32 | SR_WCF (uint32 value) |
SR - WCF. | |
static constexpr uint32 | SR_FCF (uint32 value) |
SR - FCF. | |
static constexpr uint32 | SR_TCF (uint32 value) |
SR - TCF. | |
static constexpr uint32 | SR_TEF (uint32 value) |
SR - TEF. | |
static constexpr uint32 | SR_REF (uint32 value) |
SR - REF. | |
static constexpr uint32 | SR_DMF (uint32 value) |
SR - DMF. | |
static constexpr uint32 | SR_MBF (uint32 value) |
SR - MBF. | |
static constexpr uint32 | IER_TDIE (uint32 value) |
IER - TDIE. | |
static constexpr uint32 | IER_RDIE (uint32 value) |
IER - RDIE. | |
static constexpr uint32 | IER_WCIE (uint32 value) |
IER - WCIE. | |
static constexpr uint32 | IER_FCIE (uint32 value) |
IER - FCIE. | |
static constexpr uint32 | IER_TCIE (uint32 value) |
IER - TCIE. | |
static constexpr uint32 | IER_TEIE (uint32 value) |
IER - TEIE. | |
static constexpr uint32 | IER_REIE (uint32 value) |
IER - REIE. | |
static constexpr uint32 | IER_DMIE (uint32 value) |
IER - DMIE. | |
static constexpr uint32 | DER_TDDE (uint32 value) |
DER - TDDE. | |
static constexpr uint32 | DER_RDDE (uint32 value) |
DER - RDDE. | |
static constexpr uint32 | DER_FCDE (uint32 value) |
DER - FCDE. | |
static constexpr uint32 | CFGR0_HREN (uint32 value) |
CFGR0 - HREN. | |
static constexpr uint32 | CFGR0_HRPOL (uint32 value) |
CFGR0 - HRPOL. | |
static constexpr uint32 | CFGR0_HRSEL (uint32 value) |
CFGR0 - HRSEL. | |
static constexpr uint32 | CFGR0_HRDIR (uint32 value) |
CFGR0 - HRDIR. | |
static constexpr uint32 | CFGR0_CIRFIFO (uint32 value) |
CFGR0 - CIRFIFO. | |
static constexpr uint32 | CFGR0_RDMO (uint32 value) |
CFGR0 - RDMO. | |
static constexpr uint32 | CFGR1_MASTER (uint32 value) |
CFGR1 - MASTER. | |
static constexpr uint32 | CFGR1_SAMPLE (uint32 value) |
CFGR1 - SAMPLE. | |
static constexpr uint32 | CFGR1_AUTOPCS (uint32 value) |
CFGR1 - AUTOPCS. | |
static constexpr uint32 | CFGR1_NOSTALL (uint32 value) |
CFGR1 - NOSTALL. | |
static constexpr uint32 | CFGR1_PARTIAL (uint32 value) |
CFGR1 - PARTIAL. | |
static constexpr uint32 | CFGR1_PCSPOL (uint32 value) |
CFGR1 - PCSPOL. | |
static constexpr uint32 | CFGR1_MATCFG (uint32 value) |
CFGR1 - MATCFG. | |
static constexpr uint32 | CFGR1_PINCFG (uint32 value) |
CFGR1 - PINCFG. | |
static constexpr uint32 | CFGR1_OUTCFG (uint32 value) |
CFGR1 - OUTCFG. | |
static constexpr uint32 | CFGR1_PCSCFG (uint32 value) |
CFGR1 - PCSCFG. | |
static constexpr uint32 | DMR0_MATCH0 (uint32 value) |
DMR0 - MATCH0. | |
static constexpr uint32 | DMR1_MATCH1 (uint32 value) |
static constexpr uint32 | CCR_SCKDIV (uint32 value) |
CCR - SCKDIV. | |
static constexpr uint32 | CCR_DBT (uint32 value) |
CCR - DBT. | |
static constexpr uint32 | CCR_PCSSCK (uint32 value) |
CCR - PCSSCK. | |
static constexpr uint32 | CCR_SCKPCS (uint32 value) |
CCR - SCKPCS. | |
static constexpr uint32 | CCR1_SCKSET (uint32 value) |
CCR1 - SCKSET. | |
static constexpr uint32 | CCR1_SCKHLD (uint32 value) |
CCR1 - SCKHLD. | |
static constexpr uint32 | CCR1_PCSPCS (uint32 value) |
CCR1 - PCSPCS. | |
static constexpr uint32 | CCR1_SCKSCK (uint32 value) |
CCR1 - SCKSCK. | |
static constexpr uint32 | FCR_TXWATER (uint32 value) |
FCR - TXWATER. | |
static constexpr uint32 | FCR_RXWATER (uint32 value) |
FCR - RXWATER. | |
static constexpr uint32 | FSR_TXCOUNT (uint32 value) |
FSR - TXCOUNT. | |
static constexpr uint32 | FSR_RXCOUNT (uint32 value) |
FSR - RXCOUNT. | |
static constexpr uint32 | TCR_FRAMESZ (uint32 value) |
TCR - FRAMESZ. | |
static constexpr uint32 | TCR_WIDTH (uint32 value) |
TCR - WIDTH. | |
static constexpr uint32 | TCR_TXMSK (uint32 value) |
TCR - TXMSK. | |
static constexpr uint32 | TCR_RXMSK (uint32 value) |
TCR - RXMSK. | |
static constexpr uint32 | TCR_CONTC (uint32 value) |
TCR - CONTC. | |
static constexpr uint32 | TCR_CONT (uint32 value) |
TCR - CONT. | |
static constexpr uint32 | TCR_BYSW (uint32 value) |
TCR - BYSW. | |
static constexpr uint32 | TCR_LSBF (uint32 value) |
TCR - LSBF. | |
static constexpr uint32 | TCR_PCS (uint32 value) |
TCR - PCS. | |
static constexpr uint32 | TCR_PRESCALE (uint32 value) |
TCR - PRESCALE. | |
static constexpr uint32 | TCR_CPHA (uint32 value) |
TCR - CPHA. | |
static constexpr uint32 | TCR_CPOL (uint32 value) |
TCR - CPOL. | |
static constexpr uint32 | TDR_DATA (uint32 value) |
TDR - DATA. | |
static constexpr uint32 | RSR_SOF (uint32 value) |
RSR - SOF. | |
static constexpr uint32 | RSR_RXEMPTY (uint32 value) |
RSR - RXEMPTY. | |
static constexpr uint32 | RDR_DATA (uint32 value) |
RDR - DATA. | |
static constexpr uint32 | RDROR_DATA (uint32 value) |
RDROR - DATA. | |
static constexpr uint32 | TCBR_DATA (uint32 value) |
TCBR - DATA. | |
static constexpr uint32 | TDBR_DATA (uint32 value) |
TDBR - DATA. | |
static constexpr uint32 | RDBR_DATA (uint32 value) |
RDBR - DATA. | |
保護方法(Protected Methods) | |
virtual | ~LPSPI (void) override=default |
Destroy the object. | |
![]() | |
NonInstantiable (void)=delete | |
禁止實例化 NonInstantiable 類別 | |
NonInstantiable (const NonInstantiable &)=delete | |
禁止複製建構函式 | |
virtual | ~NonInstantiable (void) override=default |
Destroy the Non Instantiable object. | |
NonInstantiable & | operator= (const NonInstantiable &)=delete |
NonInstantiable & | operator= (NonInstantiable &&)=delete |
額外的繼承成員 | |
![]() | |
void * | operator new (size_t n) |
使用運算子 new 分配記憶體 | |
void * | operator new (size_t n, void *p) |
在指定記憶體上調用運算子 new | |
virtual ufm::lang::Object & | getObject (void) override |
取得對應的 Object 物件 | |
void | delay (int milliseconds) const |
延遲指定的毫秒數進行執行緒等待 | |
bool | equals (Object *object) const |
判斷與另一物件是否為相同參照(指標型態比較) | |
bool | equals (Object &object) const |
判斷與另一物件是否為相同參照(參照型態比較) | |
void | wait (void) const |
使當前線程等待直到被通知 | |
bool | wait (int timeout) const |
等待通知或超時 | |
bool | yield (void) const |
讓執行緒讓渡控制權給同優先權的下一個執行緒 | |
int | lock (void) const |
核心鎖定,鎖定期間禁止線程切換 | |
int | unlock (void) const |
核心解鎖 | |
ufm::sys::Thread * | currentThread (void) const |
取得當前執行緒指標 | |
virtual int | hashcode (void) const |
返回對象的哈希碼值。支持這種方法是為了散列表,如HashMap提供的那樣。 | |
![]() | |
virtual | ~Interface (void)=default |
虛擬析構函式 | |
MCXA153 低功耗串列周邊介面 (Low Power Serial Peripheral Interface) 控制器靜態工具類別
LPSPI 類別提供 MCXA153 微控制器低功耗 SPI 外設的完整操作介面。 此類別設計為靜態工具類別,無法實例化,所有功能均透過靜態函數提供, 用於配置和控制 LPSPI 控制器的各種功能,包括主機/從機模式、 全雙工/半雙工通訊、FIFO 管理、中斷處理、DMA 支援等進階特性。
主要功能模組包括:
版本與參數資訊:
基本控制功能:
中斷系統:
DMA 支援:
時鐘配置:
傳輸配置:
進階功能:
FIFO 管理:
支援的 SPI 模式:
引腳配置選項:
硬體特性:
程式設計模式:
使用範例:
|
inlinestaticconstexpr |
CCR1 - PCSPCS.
Clock Configuration 1 - PCS to PCS Delay
|
inlinestaticconstexpr |
CCR1 - SCKHLD.
Clock Configuration 1 - SCK Hold
|
inlinestaticconstexpr |
CCR1 - SCKSCK.
Clock Configuration 1 - SCK Inter-Frame Delay
|
inlinestaticconstexpr |
CCR1 - SCKSET.
Clock Configuration 1 - SCK Setup
|
inlinestaticconstexpr |
CCR - DBT.
Clock Configuration - Delay Between Transfers
|
inlinestaticconstexpr |
CCR - PCSSCK.
Clock Configuration - PCS-to-SCK Delay
|
inlinestaticconstexpr |
CCR - SCKDIV.
Clock Configuration - SCK Divider
|
inlinestaticconstexpr |
CCR - SCKPCS.
Clock Configuration - SCK-to-PCS Delay
|
inlinestaticconstexpr |
CFGR0 - CIRFIFO.
Configuration 0 - Circular FIFO Enable
|
inlinestaticconstexpr |
CFGR0 - HRDIR.
Configuration 0 - Host Request Direction
|
inlinestaticconstexpr |
CFGR0 - HREN.
Configuration 0 - Host Request Enable
|
inlinestaticconstexpr |
CFGR0 - HRPOL.
Configuration 0 - Host Request Polarity
|
inlinestaticconstexpr |
CFGR0 - HRSEL.
Configuration 0 - Host Request Select
|
inlinestaticconstexpr |
CFGR0 - RDMO.
Configuration 0 - Receive Data Match Only
|
inlinestaticconstexpr |
CFGR1 - AUTOPCS.
Configuration 1 - Automatic PCS
|
inlinestaticconstexpr |
CFGR1 - MASTER.
Configuration 1 - Master Mode
|
inlinestaticconstexpr |
CFGR1 - MATCFG.
Configuration 1 - Match Configuration
|
inlinestaticconstexpr |
CFGR1 - NOSTALL.
Configuration 1 - No Stall
|
inlinestaticconstexpr |
CFGR1 - OUTCFG.
Configuration 1 - Output Configuration
|
inlinestaticconstexpr |
CFGR1 - PARTIAL.
Configuration 1 - Partial Enable
|
inlinestaticconstexpr |
CFGR1 - PCSCFG.
Configuration 1 - Peripheral Chip Select Configuration
|
inlinestaticconstexpr |
CFGR1 - PCSPOL.
Configuration 1 - Peripheral Chip Select Polarity
|
inlinestaticconstexpr |
CFGR1 - PINCFG.
Configuration 1 - Pin Configuration
|
inlinestaticconstexpr |
CFGR1 - SAMPLE.
Configuration 1 - Sample Point
|
inlinestaticconstexpr |
CR - DBGEN.
Control - Debug Enable
|
inlinestaticconstexpr |
CR - MEN.
Control - Module Enable
|
inlinestaticconstexpr |
CR - RRF.
Control - Reset Receive FIFO
|
inlinestaticconstexpr |
CR - RST.
Control - Software Reset
|
inlinestaticconstexpr |
CR - RTF.
Control - Reset Transmit FIFO
|
inlinestaticconstexpr |
DER - FCDE.
DMA Enable - Frame Complete DMA Enable
|
inlinestaticconstexpr |
DER - RDDE.
DMA Enable - Receive Data DMA Enable
|
inlinestaticconstexpr |
DER - TDDE.
DMA Enable - Transmit Data DMA Enable
|
inlinestaticconstexpr |
DMR0 - MATCH0.
Data Match 0 - Match 0 Value
|
inlinestaticconstexpr |
FCR - RXWATER.
FIFO Control - Receive FIFO Watermark
|
inlinestaticconstexpr |
FCR - TXWATER.
FIFO Control - Transmit FIFO Watermark
|
inlinestaticconstexpr |
FSR - RXCOUNT.
FIFO Status - Receive FIFO Count
|
inlinestaticconstexpr |
FSR - TXCOUNT.
FIFO Status - Transmit FIFO Count
|
inlinestaticconstexpr |
IER - DMIE.
Interrupt Enable - Data Match Interrupt Enable
|
inlinestaticconstexpr |
IER - FCIE.
Interrupt Enable - Frame Complete Interrupt Enable
|
inlinestaticconstexpr |
IER - RDIE.
Interrupt Enable - Receive Data Interrupt Enable
|
inlinestaticconstexpr |
IER - REIE.
Interrupt Enable - Receive Error Interrupt Enable
|
inlinestaticconstexpr |
IER - TCIE.
Interrupt Enable - Transfer Complete Interrupt Enable
|
inlinestaticconstexpr |
IER - TDIE.
Interrupt Enable - Transmit Data Interrupt Enable
|
inlinestaticconstexpr |
IER - TEIE.
Interrupt Enable - Transmit Error Interrupt Enable
|
inlinestaticconstexpr |
IER - WCIE.
Interrupt Enable - Word Complete Interrupt Enable
|
inlinestaticconstexpr |
PARAM.
Parameter - PCSNUM - PCS Number
|
inlinestaticconstexpr |
PARAM - RXFIFO.
Parameter - Receive FIFO Size
|
inlinestaticconstexpr |
PARAM - TXFIFO.
Parameter - Transmit FIFO Size
|
inlinestaticconstexpr |
RDBR - DATA.
Receive Data Burst - Data
|
inlinestaticconstexpr |
RDR - DATA.
Receive Data - Receive Data
|
inlinestaticconstexpr |
RDROR - DATA.
Receive Data Read Only - Receive Data
|
inlinestaticconstexpr |
RSR - RXEMPTY.
Receive Status - RX FIFO Empty
|
inlinestaticconstexpr |
RSR - SOF.
Receive Status - Start of Frame
|
inlinestaticconstexpr |
SR - DMF.
Status - Data Match Flag
|
inlinestaticconstexpr |
SR - FCF.
Status - Frame Complete Flag
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
SR - RDF.
Status - Receive Data Flag
|
inlinestaticconstexpr |
SR - REF.
Status - Receive Error Flag
|
inlinestaticconstexpr |
SR - TCF.
Status - Transfer Complete Flag
|
inlinestaticconstexpr |
SR - TDF.
Status - Transmit Data Flag
|
inlinestaticconstexpr |
SR - TEF.
Status - Transmit Error Flag
|
inlinestaticconstexpr |
SR - WCF.
Status - Word Complete Flag
|
inlinestaticconstexpr |
TCBR - DATA.
Transmit Command Burst - Command Data
|
inlinestaticconstexpr |
TCR - BYSW.
Transmit Command - Byte Swap
|
inlinestaticconstexpr |
TCR - CONT.
Transmit Command - Continuous Transfer
|
inlinestaticconstexpr |
TCR - CONTC.
Transmit Command - Continuing Command
|
inlinestaticconstexpr |
TCR - CPHA.
Transmit Command - Clock Phase
|
inlinestaticconstexpr |
TCR - CPOL.
Transmit Command - Clock Polarity
|
inlinestaticconstexpr |
TCR - FRAMESZ.
Transmit Command - Frame Size
|
inlinestaticconstexpr |
TCR - LSBF.
Transmit Command - LSB First
|
inlinestaticconstexpr |
TCR - PCS.
Transmit Command - Peripheral Chip Select
|
inlinestaticconstexpr |
TCR - PRESCALE.
Transmit Command - Prescaler Value
|
inlinestaticconstexpr |
TCR - RXMSK.
Transmit Command - Receive Data Mask
|
inlinestaticconstexpr |
TCR - TXMSK.
Transmit Command - Transmit Data Mask
|
inlinestaticconstexpr |
TCR - WIDTH.
Transmit Command - Transfer Width
|
inlinestaticconstexpr |
TDBR - DATA.
Transmit Data Burst - Data
|
inlinestaticconstexpr |
TDR - DATA.
Transmit Data - Transmit Data
|
inlinestaticconstexpr |
VERID - FEATURE.
Version ID - Module Identification Number
|
inlinestaticconstexpr |
MAJOR - Major.
Version ID - Version Number
|
inlinestaticconstexpr |
MINOR - Minor.
Version ID - Version Number