Documentation ¶
Overview ¶
Package quadspi provides interface to QUAD Serial Peripheral Interface.
Peripheral: QUADSPI_Periph QUAD Serial Peripheral Interface. Instances:
QUADSPI mmap.QSPI_R_BASE
Registers:
0x00 32 CR Control register. 0x04 32 DCR Device Configuration register. 0x08 32 SR Status register. 0x0C 32 FCR Flag Clear register. 0x10 32 DLR Data Length register. 0x14 32 CCR Communication Configuration register. 0x18 32 AR Address register. 0x1C 32 ABR Alternate Bytes register. 0x20 32 DR Data register. 0x24 32 PSMKR Polling Status Mask register. 0x28 32 PSMAR Polling Status Match register. 0x2C 32 PIR Polling Interval register. 0x30 32 LPTR Low Power Timeout register.
Import:
stm32/o/l476xx/mmap
Index ¶
- Constants
- Variables
- type ABR
- type AR
- type CCR
- type CR
- type DCR
- type DLR
- type DR
- type FCR
- type LPTR
- type PIR
- type PSMAR
- type PSMKR
- type QUADSPI_Periph
- func (p *QUADSPI_Periph) ABMODE() RMCCR
- func (p *QUADSPI_Periph) ABORT() RMCR
- func (p *QUADSPI_Periph) ABSIZE() RMCCR
- func (p *QUADSPI_Periph) ADDRESS() RMAR
- func (p *QUADSPI_Periph) ADMODE() RMCCR
- func (p *QUADSPI_Periph) ADSIZE() RMCCR
- func (p *QUADSPI_Periph) ALTERNATE() RMABR
- func (p *QUADSPI_Periph) APMS() RMCR
- func (p *QUADSPI_Periph) BUSY() RMSR
- func (p *QUADSPI_Periph) BaseAddr() uintptr
- func (p *QUADSPI_Periph) CKMODE() RMDCR
- func (p *QUADSPI_Periph) CSHT() RMDCR
- func (p *QUADSPI_Periph) CSMF() RMFCR
- func (p *QUADSPI_Periph) CTCF() RMFCR
- func (p *QUADSPI_Periph) CTEF() RMFCR
- func (p *QUADSPI_Periph) CTOF() RMFCR
- func (p *QUADSPI_Periph) DATA() RMDR
- func (p *QUADSPI_Periph) DCYC() RMCCR
- func (p *QUADSPI_Periph) DDRM() RMCCR
- func (p *QUADSPI_Periph) DL() RMDLR
- func (p *QUADSPI_Periph) DMAEN() RMCR
- func (p *QUADSPI_Periph) DMODE() RMCCR
- func (p *QUADSPI_Periph) EN() RMCR
- func (p *QUADSPI_Periph) FLEVEL() RMSR
- func (p *QUADSPI_Periph) FMODE() RMCCR
- func (p *QUADSPI_Periph) FSIZE() RMDCR
- func (p *QUADSPI_Periph) FTF() RMSR
- func (p *QUADSPI_Periph) FTHRES() RMCR
- func (p *QUADSPI_Periph) FTIE() RMCR
- func (p *QUADSPI_Periph) IMODE() RMCCR
- func (p *QUADSPI_Periph) INSTRUCTION() RMCCR
- func (p *QUADSPI_Periph) INTERVAL() RMPIR
- func (p *QUADSPI_Periph) MASK() RMPSMKR
- func (p *QUADSPI_Periph) MATCH() RMPSMAR
- func (p *QUADSPI_Periph) PMM() RMCR
- func (p *QUADSPI_Periph) PRESCALER() RMCR
- func (p *QUADSPI_Periph) SIOO() RMCCR
- func (p *QUADSPI_Periph) SMF() RMSR
- func (p *QUADSPI_Periph) SMIE() RMCR
- func (p *QUADSPI_Periph) SSHIFT() RMCR
- func (p *QUADSPI_Periph) TCEN() RMCR
- func (p *QUADSPI_Periph) TCF() RMSR
- func (p *QUADSPI_Periph) TCIE() RMCR
- func (p *QUADSPI_Periph) TEF() RMSR
- func (p *QUADSPI_Periph) TEIE() RMCR
- func (p *QUADSPI_Periph) TIMEOUT() RMLPTR
- func (p *QUADSPI_Periph) TOF() RMSR
- func (p *QUADSPI_Periph) TOIE() RMCR
- type RABR
- func (r *RABR) AtomicClearBits(mask ABR)
- func (r *RABR) AtomicSetBits(mask ABR)
- func (r *RABR) AtomicStoreBits(mask, b ABR)
- func (r *RABR) Bits(mask ABR) ABR
- func (r *RABR) ClearBits(mask ABR)
- func (r *RABR) Load() ABR
- func (r *RABR) SetBits(mask ABR)
- func (r *RABR) Store(b ABR)
- func (r *RABR) StoreBits(mask, b ABR)
- type RAR
- type RCCR
- func (r *RCCR) AtomicClearBits(mask CCR)
- func (r *RCCR) AtomicSetBits(mask CCR)
- func (r *RCCR) AtomicStoreBits(mask, b CCR)
- func (r *RCCR) Bits(mask CCR) CCR
- func (r *RCCR) ClearBits(mask CCR)
- func (r *RCCR) Load() CCR
- func (r *RCCR) SetBits(mask CCR)
- func (r *RCCR) Store(b CCR)
- func (r *RCCR) StoreBits(mask, b CCR)
- type RCR
- type RDCR
- func (r *RDCR) AtomicClearBits(mask DCR)
- func (r *RDCR) AtomicSetBits(mask DCR)
- func (r *RDCR) AtomicStoreBits(mask, b DCR)
- func (r *RDCR) Bits(mask DCR) DCR
- func (r *RDCR) ClearBits(mask DCR)
- func (r *RDCR) Load() DCR
- func (r *RDCR) SetBits(mask DCR)
- func (r *RDCR) Store(b DCR)
- func (r *RDCR) StoreBits(mask, b DCR)
- type RDLR
- func (r *RDLR) AtomicClearBits(mask DLR)
- func (r *RDLR) AtomicSetBits(mask DLR)
- func (r *RDLR) AtomicStoreBits(mask, b DLR)
- func (r *RDLR) Bits(mask DLR) DLR
- func (r *RDLR) ClearBits(mask DLR)
- func (r *RDLR) Load() DLR
- func (r *RDLR) SetBits(mask DLR)
- func (r *RDLR) Store(b DLR)
- func (r *RDLR) StoreBits(mask, b DLR)
- type RDR
- type RFCR
- func (r *RFCR) AtomicClearBits(mask FCR)
- func (r *RFCR) AtomicSetBits(mask FCR)
- func (r *RFCR) AtomicStoreBits(mask, b FCR)
- func (r *RFCR) Bits(mask FCR) FCR
- func (r *RFCR) ClearBits(mask FCR)
- func (r *RFCR) Load() FCR
- func (r *RFCR) SetBits(mask FCR)
- func (r *RFCR) Store(b FCR)
- func (r *RFCR) StoreBits(mask, b FCR)
- type RLPTR
- func (r *RLPTR) AtomicClearBits(mask LPTR)
- func (r *RLPTR) AtomicSetBits(mask LPTR)
- func (r *RLPTR) AtomicStoreBits(mask, b LPTR)
- func (r *RLPTR) Bits(mask LPTR) LPTR
- func (r *RLPTR) ClearBits(mask LPTR)
- func (r *RLPTR) Load() LPTR
- func (r *RLPTR) SetBits(mask LPTR)
- func (r *RLPTR) Store(b LPTR)
- func (r *RLPTR) StoreBits(mask, b LPTR)
- type RMABR
- type RMAR
- type RMCCR
- type RMCR
- type RMDCR
- type RMDLR
- type RMDR
- type RMFCR
- type RMLPTR
- type RMPIR
- type RMPSMAR
- type RMPSMKR
- type RMSR
- type RPIR
- func (r *RPIR) AtomicClearBits(mask PIR)
- func (r *RPIR) AtomicSetBits(mask PIR)
- func (r *RPIR) AtomicStoreBits(mask, b PIR)
- func (r *RPIR) Bits(mask PIR) PIR
- func (r *RPIR) ClearBits(mask PIR)
- func (r *RPIR) Load() PIR
- func (r *RPIR) SetBits(mask PIR)
- func (r *RPIR) Store(b PIR)
- func (r *RPIR) StoreBits(mask, b PIR)
- type RPSMAR
- func (r *RPSMAR) AtomicClearBits(mask PSMAR)
- func (r *RPSMAR) AtomicSetBits(mask PSMAR)
- func (r *RPSMAR) AtomicStoreBits(mask, b PSMAR)
- func (r *RPSMAR) Bits(mask PSMAR) PSMAR
- func (r *RPSMAR) ClearBits(mask PSMAR)
- func (r *RPSMAR) Load() PSMAR
- func (r *RPSMAR) SetBits(mask PSMAR)
- func (r *RPSMAR) Store(b PSMAR)
- func (r *RPSMAR) StoreBits(mask, b PSMAR)
- type RPSMKR
- func (r *RPSMKR) AtomicClearBits(mask PSMKR)
- func (r *RPSMKR) AtomicSetBits(mask PSMKR)
- func (r *RPSMKR) AtomicStoreBits(mask, b PSMKR)
- func (r *RPSMKR) Bits(mask PSMKR) PSMKR
- func (r *RPSMKR) ClearBits(mask PSMKR)
- func (r *RPSMKR) Load() PSMKR
- func (r *RPSMKR) SetBits(mask PSMKR)
- func (r *RPSMKR) Store(b PSMKR)
- func (r *RPSMKR) StoreBits(mask, b PSMKR)
- type RSR
- type SR
Constants ¶
View Source
const ( ENn = 0 ABORTn = 1 DMAENn = 2 TCENn = 3 SSHIFTn = 4 FTHRESn = 8 TEIEn = 16 TCIEn = 17 FTIEn = 18 SMIEn = 19 TOIEn = 20 APMSn = 22 PMMn = 23 PRESCALERn = 24 )
View Source
const ( CKMODEn = 0 CSHTn = 8 FSIZEn = 16 )
View Source
const ( TEFn = 0 TCFn = 1 FTFn = 2 SMFn = 3 TOFn = 4 BUSYn = 5 FLEVELn = 8 )
View Source
const ( CTEFn = 0 CTCFn = 1 CSMFn = 3 CTOFn = 4 )
View Source
const ( INSTRUCTIONn = 0 IMODEn = 8 ADMODEn = 10 ADSIZEn = 12 ABMODEn = 14 ABSIZEn = 16 DCYCn = 18 DMODEn = 24 FMODEn = 26 SIOOn = 28 DDRMn = 31 )
View Source
const (
ADDRESSn = 0
)
View Source
const (
ALTERNATEn = 0
)
View Source
const (
DATAn = 0
)
View Source
const (
DLn = 0
)
View Source
const (
INTERVALn = 0
)
View Source
const (
MASKn = 0
)
View Source
const (
MATCHn = 0
)
View Source
const (
TIMEOUTn = 0
)
Variables ¶
View Source
var QUADSPI = (*QUADSPI_Periph)(unsafe.Pointer(uintptr(mmap.QSPI_R_BASE)))
Functions ¶
This section is empty.
Types ¶
type ABR ¶
type ABR uint32
const (
ALTERNATE ABR = 0xFFFFFFFF << 0 //+ ALTERNATE[31:0]: Alternate Bytes.
)
type CCR ¶
type CCR uint32
const ( INSTRUCTION CCR = 0xFF << 0 //+ INSTRUCTION[7:0]: Instruction. IMODE CCR = 0x03 << 8 //+ IMODE[1:0]: Instruction Mode. ADMODE CCR = 0x03 << 10 //+ ADMODE[1:0]: Address Mode. ADSIZE CCR = 0x03 << 12 //+ ADSIZE[1:0]: Address Size. ABMODE CCR = 0x03 << 14 //+ ABMODE[1:0]: Alternate Bytes Mode. ABSIZE CCR = 0x03 << 16 //+ ABSIZE[1:0]: Instruction Mode. DCYC CCR = 0x1F << 18 //+ DCYC[4:0]: Dummy Cycles. DMODE CCR = 0x03 << 24 //+ DMODE[1:0]: Data Mode. FMODE CCR = 0x03 << 26 //+ FMODE[1:0]: Functional Mode. SIOO CCR = 0x01 << 28 //+ SIOO: Send Instruction Only Once Mode. DDRM CCR = 0x01 << 31 //+ DDRM: Double Data Rate Mode. )
type CR ¶
type CR uint32
const ( EN CR = 0x01 << 0 //+ Enable. ABORT CR = 0x01 << 1 //+ Abort request. DMAEN CR = 0x01 << 2 //+ DMA Enable. TCEN CR = 0x01 << 3 //+ Timeout Counter Enable. SSHIFT CR = 0x01 << 4 //+ Sample Shift. FTHRES CR = 0x0F << 8 //+ FTHRES[3:0] FIFO Level. TEIE CR = 0x01 << 16 //+ Transfer Error Interrupt Enable. TCIE CR = 0x01 << 17 //+ Transfer Complete Interrupt Enable. FTIE CR = 0x01 << 18 //+ FIFO Threshold Interrupt Enable. SMIE CR = 0x01 << 19 //+ Status Match Interrupt Enable. TOIE CR = 0x01 << 20 //+ TimeOut Interrupt Enable. APMS CR = 0x01 << 22 //+ Automatic Polling Mode Stop. PMM CR = 0x01 << 23 //+ Polling Match Mode. PRESCALER CR = 0xFF << 24 //+ PRESCALER[7:0] Clock prescaler. )
type LPTR ¶
type LPTR uint32
const (
TIMEOUT LPTR = 0xFFFF << 0 //+ TIMEOUT[15:0]: Timeout period.
)
type PIR ¶
type PIR uint32
const (
INTERVAL PIR = 0xFFFF << 0 //+ INTERVAL[15:0]: Polling Interval.
)
type PSMAR ¶
type PSMAR uint32
const (
MATCH PSMAR = 0xFFFFFFFF << 0 //+ MATCH[31:0]: Status Match.
)
type QUADSPI_Periph ¶
type QUADSPI_Periph struct { CR RCR DCR RDCR SR RSR FCR RFCR DLR RDLR CCR RCCR AR RAR ABR RABR DR RDR PSMKR RPSMKR PSMAR RPSMAR PIR RPIR LPTR RLPTR }
func (*QUADSPI_Periph) ABMODE ¶
func (p *QUADSPI_Periph) ABMODE() RMCCR
func (*QUADSPI_Periph) ABORT ¶
func (p *QUADSPI_Periph) ABORT() RMCR
func (*QUADSPI_Periph) ABSIZE ¶
func (p *QUADSPI_Periph) ABSIZE() RMCCR
func (*QUADSPI_Periph) ADDRESS ¶
func (p *QUADSPI_Periph) ADDRESS() RMAR
func (*QUADSPI_Periph) ADMODE ¶
func (p *QUADSPI_Periph) ADMODE() RMCCR
func (*QUADSPI_Periph) ADSIZE ¶
func (p *QUADSPI_Periph) ADSIZE() RMCCR
func (*QUADSPI_Periph) ALTERNATE ¶
func (p *QUADSPI_Periph) ALTERNATE() RMABR
func (*QUADSPI_Periph) APMS ¶
func (p *QUADSPI_Periph) APMS() RMCR
func (*QUADSPI_Periph) BUSY ¶
func (p *QUADSPI_Periph) BUSY() RMSR
func (*QUADSPI_Periph) BaseAddr ¶
func (p *QUADSPI_Periph) BaseAddr() uintptr
func (*QUADSPI_Periph) CKMODE ¶
func (p *QUADSPI_Periph) CKMODE() RMDCR
func (*QUADSPI_Periph) CSHT ¶
func (p *QUADSPI_Periph) CSHT() RMDCR
func (*QUADSPI_Periph) CSMF ¶
func (p *QUADSPI_Periph) CSMF() RMFCR
func (*QUADSPI_Periph) CTCF ¶
func (p *QUADSPI_Periph) CTCF() RMFCR
func (*QUADSPI_Periph) CTEF ¶
func (p *QUADSPI_Periph) CTEF() RMFCR
func (*QUADSPI_Periph) CTOF ¶
func (p *QUADSPI_Periph) CTOF() RMFCR
func (*QUADSPI_Periph) DATA ¶
func (p *QUADSPI_Periph) DATA() RMDR
func (*QUADSPI_Periph) DCYC ¶
func (p *QUADSPI_Periph) DCYC() RMCCR
func (*QUADSPI_Periph) DDRM ¶
func (p *QUADSPI_Periph) DDRM() RMCCR
func (*QUADSPI_Periph) DL ¶
func (p *QUADSPI_Periph) DL() RMDLR
func (*QUADSPI_Periph) DMAEN ¶
func (p *QUADSPI_Periph) DMAEN() RMCR
func (*QUADSPI_Periph) DMODE ¶
func (p *QUADSPI_Periph) DMODE() RMCCR
func (*QUADSPI_Periph) EN ¶
func (p *QUADSPI_Periph) EN() RMCR
func (*QUADSPI_Periph) FLEVEL ¶
func (p *QUADSPI_Periph) FLEVEL() RMSR
func (*QUADSPI_Periph) FMODE ¶
func (p *QUADSPI_Periph) FMODE() RMCCR
func (*QUADSPI_Periph) FSIZE ¶
func (p *QUADSPI_Periph) FSIZE() RMDCR
func (*QUADSPI_Periph) FTF ¶
func (p *QUADSPI_Periph) FTF() RMSR
func (*QUADSPI_Periph) FTHRES ¶
func (p *QUADSPI_Periph) FTHRES() RMCR
func (*QUADSPI_Periph) FTIE ¶
func (p *QUADSPI_Periph) FTIE() RMCR
func (*QUADSPI_Periph) IMODE ¶
func (p *QUADSPI_Periph) IMODE() RMCCR
func (*QUADSPI_Periph) INSTRUCTION ¶
func (p *QUADSPI_Periph) INSTRUCTION() RMCCR
func (*QUADSPI_Periph) INTERVAL ¶
func (p *QUADSPI_Periph) INTERVAL() RMPIR
func (*QUADSPI_Periph) MASK ¶
func (p *QUADSPI_Periph) MASK() RMPSMKR
func (*QUADSPI_Periph) MATCH ¶
func (p *QUADSPI_Periph) MATCH() RMPSMAR
func (*QUADSPI_Periph) PMM ¶
func (p *QUADSPI_Periph) PMM() RMCR
func (*QUADSPI_Periph) PRESCALER ¶
func (p *QUADSPI_Periph) PRESCALER() RMCR
func (*QUADSPI_Periph) SIOO ¶
func (p *QUADSPI_Periph) SIOO() RMCCR
func (*QUADSPI_Periph) SMF ¶
func (p *QUADSPI_Periph) SMF() RMSR
func (*QUADSPI_Periph) SMIE ¶
func (p *QUADSPI_Periph) SMIE() RMCR
func (*QUADSPI_Periph) SSHIFT ¶
func (p *QUADSPI_Periph) SSHIFT() RMCR
func (*QUADSPI_Periph) TCEN ¶
func (p *QUADSPI_Periph) TCEN() RMCR
func (*QUADSPI_Periph) TCF ¶
func (p *QUADSPI_Periph) TCF() RMSR
func (*QUADSPI_Periph) TCIE ¶
func (p *QUADSPI_Periph) TCIE() RMCR
func (*QUADSPI_Periph) TEF ¶
func (p *QUADSPI_Periph) TEF() RMSR
func (*QUADSPI_Periph) TEIE ¶
func (p *QUADSPI_Periph) TEIE() RMCR
func (*QUADSPI_Periph) TIMEOUT ¶
func (p *QUADSPI_Periph) TIMEOUT() RMLPTR
func (*QUADSPI_Periph) TOF ¶
func (p *QUADSPI_Periph) TOF() RMSR
func (*QUADSPI_Periph) TOIE ¶
func (p *QUADSPI_Periph) TOIE() RMCR
type RABR ¶
func (*RABR) AtomicClearBits ¶
func (*RABR) AtomicSetBits ¶
func (*RABR) AtomicStoreBits ¶
type RCCR ¶
func (*RCCR) AtomicClearBits ¶
func (*RCCR) AtomicSetBits ¶
func (*RCCR) AtomicStoreBits ¶
type RDCR ¶
func (*RDCR) AtomicClearBits ¶
func (*RDCR) AtomicSetBits ¶
func (*RDCR) AtomicStoreBits ¶
type RDLR ¶
func (*RDLR) AtomicClearBits ¶
func (*RDLR) AtomicSetBits ¶
func (*RDLR) AtomicStoreBits ¶
type RFCR ¶
func (*RFCR) AtomicClearBits ¶
func (*RFCR) AtomicSetBits ¶
func (*RFCR) AtomicStoreBits ¶
type RLPTR ¶
func (*RLPTR) AtomicClearBits ¶
func (*RLPTR) AtomicSetBits ¶
func (*RLPTR) AtomicStoreBits ¶
type RPIR ¶
func (*RPIR) AtomicClearBits ¶
func (*RPIR) AtomicSetBits ¶
func (*RPIR) AtomicStoreBits ¶
type RPSMAR ¶
func (*RPSMAR) AtomicClearBits ¶
func (*RPSMAR) AtomicSetBits ¶
func (*RPSMAR) AtomicStoreBits ¶
type RPSMKR ¶
func (*RPSMKR) AtomicClearBits ¶
func (*RPSMKR) AtomicSetBits ¶
func (*RPSMKR) AtomicStoreBits ¶
type SR ¶
type SR uint32
const ( TEF SR = 0x01 << 0 //+ Transfer Error Flag. TCF SR = 0x01 << 1 //+ Transfer Complete Flag. FTF SR = 0x01 << 2 //+ FIFO Threshlod Flag. SMF SR = 0x01 << 3 //+ Status Match Flag. TOF SR = 0x01 << 4 //+ Timeout Flag. BUSY SR = 0x01 << 5 //+ Busy. FLEVEL SR = 0x1F << 8 //+ FIFO Threshlod Flag. )
Click to show internal directories.
Click to hide internal directories.