quadspi

package
v0.0.0-...-168ccc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

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

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

Functions

This section is empty.

Types

type ABR

type ABR uint32
const (
	ALTERNATE ABR = 0xFFFFFFFF << 0 //+ ALTERNATE[31:0]: Alternate Bytes.
)

func (ABR) Field

func (b ABR) Field(mask ABR) int

func (ABR) J

func (mask ABR) J(v int) ABR

type AR

type AR uint32
const (
	ADDRESS AR = 0xFFFFFFFF << 0 //+ ADDRESS[31:0]: Address.
)

func (AR) Field

func (b AR) Field(mask AR) int

func (AR) J

func (mask AR) J(v int) AR

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.
)

func (CCR) Field

func (b CCR) Field(mask CCR) int

func (CCR) J

func (mask CCR) J(v int) CCR

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.
)

func (CR) Field

func (b CR) Field(mask CR) int

func (CR) J

func (mask CR) J(v int) CR

type DCR

type DCR uint32
const (
	CKMODE DCR = 0x01 << 0  //+ Mode 0 / Mode 3.
	CSHT   DCR = 0x07 << 8  //+ CSHT[2:0]: ChipSelect High Time.
	FSIZE  DCR = 0x1F << 16 //+ FSIZE[4:0]: Flash Size.
)

func (DCR) Field

func (b DCR) Field(mask DCR) int

func (DCR) J

func (mask DCR) J(v int) DCR

type DLR

type DLR uint32
const (
	DL DLR = 0xFFFFFFFF << 0 //+ DL[31:0]: Data Length.
)

func (DLR) Field

func (b DLR) Field(mask DLR) int

func (DLR) J

func (mask DLR) J(v int) DLR

type DR

type DR uint32
const (
	DATA DR = 0xFFFFFFFF << 0 //+ DATA[31:0]: Data.
)

func (DR) Field

func (b DR) Field(mask DR) int

func (DR) J

func (mask DR) J(v int) DR

type FCR

type FCR uint32
const (
	CTEF FCR = 0x01 << 0 //+ Clear Transfer Error Flag.
	CTCF FCR = 0x01 << 1 //+ Clear Transfer Complete Flag.
	CSMF FCR = 0x01 << 3 //+ Clear Status Match Flag.
	CTOF FCR = 0x01 << 4 //+ Clear Timeout Flag.
)

func (FCR) Field

func (b FCR) Field(mask FCR) int

func (FCR) J

func (mask FCR) J(v int) FCR

type LPTR

type LPTR uint32
const (
	TIMEOUT LPTR = 0xFFFF << 0 //+ TIMEOUT[15:0]: Timeout period.
)

func (LPTR) Field

func (b LPTR) Field(mask LPTR) int

func (LPTR) J

func (mask LPTR) J(v int) LPTR

type PIR

type PIR uint32
const (
	INTERVAL PIR = 0xFFFF << 0 //+ INTERVAL[15:0]: Polling Interval.
)

func (PIR) Field

func (b PIR) Field(mask PIR) int

func (PIR) J

func (mask PIR) J(v int) PIR

type PSMAR

type PSMAR uint32
const (
	MATCH PSMAR = 0xFFFFFFFF << 0 //+ MATCH[31:0]: Status Match.
)

func (PSMAR) Field

func (b PSMAR) Field(mask PSMAR) int

func (PSMAR) J

func (mask PSMAR) J(v int) PSMAR

type PSMKR

type PSMKR uint32
const (
	MASK PSMKR = 0xFFFFFFFF << 0 //+ MASK[31:0]: Status Mask.
)

func (PSMKR) Field

func (b PSMKR) Field(mask PSMKR) int

func (PSMKR) J

func (mask PSMKR) J(v int) PSMKR

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

type RABR struct{ mmio.U32 }

func (*RABR) AtomicClearBits

func (r *RABR) AtomicClearBits(mask ABR)

func (*RABR) AtomicSetBits

func (r *RABR) AtomicSetBits(mask ABR)

func (*RABR) AtomicStoreBits

func (r *RABR) AtomicStoreBits(mask, b ABR)

func (*RABR) Bits

func (r *RABR) Bits(mask ABR) ABR

func (*RABR) ClearBits

func (r *RABR) ClearBits(mask ABR)

func (*RABR) Load

func (r *RABR) Load() ABR

func (*RABR) SetBits

func (r *RABR) SetBits(mask ABR)

func (*RABR) Store

func (r *RABR) Store(b ABR)

func (*RABR) StoreBits

func (r *RABR) StoreBits(mask, b ABR)

type RAR

type RAR struct{ mmio.U32 }

func (*RAR) AtomicClearBits

func (r *RAR) AtomicClearBits(mask AR)

func (*RAR) AtomicSetBits

func (r *RAR) AtomicSetBits(mask AR)

func (*RAR) AtomicStoreBits

func (r *RAR) AtomicStoreBits(mask, b AR)

func (*RAR) Bits

func (r *RAR) Bits(mask AR) AR

func (*RAR) ClearBits

func (r *RAR) ClearBits(mask AR)

func (*RAR) Load

func (r *RAR) Load() AR

func (*RAR) SetBits

func (r *RAR) SetBits(mask AR)

func (*RAR) Store

func (r *RAR) Store(b AR)

func (*RAR) StoreBits

func (r *RAR) StoreBits(mask, b AR)

type RCCR

type RCCR struct{ mmio.U32 }

func (*RCCR) AtomicClearBits

func (r *RCCR) AtomicClearBits(mask CCR)

func (*RCCR) AtomicSetBits

func (r *RCCR) AtomicSetBits(mask CCR)

func (*RCCR) AtomicStoreBits

func (r *RCCR) AtomicStoreBits(mask, b CCR)

func (*RCCR) Bits

func (r *RCCR) Bits(mask CCR) CCR

func (*RCCR) ClearBits

func (r *RCCR) ClearBits(mask CCR)

func (*RCCR) Load

func (r *RCCR) Load() CCR

func (*RCCR) SetBits

func (r *RCCR) SetBits(mask CCR)

func (*RCCR) Store

func (r *RCCR) Store(b CCR)

func (*RCCR) StoreBits

func (r *RCCR) StoreBits(mask, b CCR)

type RCR

type RCR struct{ mmio.U32 }

func (*RCR) AtomicClearBits

func (r *RCR) AtomicClearBits(mask CR)

func (*RCR) AtomicSetBits

func (r *RCR) AtomicSetBits(mask CR)

func (*RCR) AtomicStoreBits

func (r *RCR) AtomicStoreBits(mask, b CR)

func (*RCR) Bits

func (r *RCR) Bits(mask CR) CR

func (*RCR) ClearBits

func (r *RCR) ClearBits(mask CR)

func (*RCR) Load

func (r *RCR) Load() CR

func (*RCR) SetBits

func (r *RCR) SetBits(mask CR)

func (*RCR) Store

func (r *RCR) Store(b CR)

func (*RCR) StoreBits

func (r *RCR) StoreBits(mask, b CR)

type RDCR

type RDCR struct{ mmio.U32 }

func (*RDCR) AtomicClearBits

func (r *RDCR) AtomicClearBits(mask DCR)

func (*RDCR) AtomicSetBits

func (r *RDCR) AtomicSetBits(mask DCR)

func (*RDCR) AtomicStoreBits

func (r *RDCR) AtomicStoreBits(mask, b DCR)

func (*RDCR) Bits

func (r *RDCR) Bits(mask DCR) DCR

func (*RDCR) ClearBits

func (r *RDCR) ClearBits(mask DCR)

func (*RDCR) Load

func (r *RDCR) Load() DCR

func (*RDCR) SetBits

func (r *RDCR) SetBits(mask DCR)

func (*RDCR) Store

func (r *RDCR) Store(b DCR)

func (*RDCR) StoreBits

func (r *RDCR) StoreBits(mask, b DCR)

type RDLR

type RDLR struct{ mmio.U32 }

func (*RDLR) AtomicClearBits

func (r *RDLR) AtomicClearBits(mask DLR)

func (*RDLR) AtomicSetBits

func (r *RDLR) AtomicSetBits(mask DLR)

func (*RDLR) AtomicStoreBits

func (r *RDLR) AtomicStoreBits(mask, b DLR)

func (*RDLR) Bits

func (r *RDLR) Bits(mask DLR) DLR

func (*RDLR) ClearBits

func (r *RDLR) ClearBits(mask DLR)

func (*RDLR) Load

func (r *RDLR) Load() DLR

func (*RDLR) SetBits

func (r *RDLR) SetBits(mask DLR)

func (*RDLR) Store

func (r *RDLR) Store(b DLR)

func (*RDLR) StoreBits

func (r *RDLR) StoreBits(mask, b DLR)

type RDR

type RDR struct{ mmio.U32 }

func (*RDR) AtomicClearBits

func (r *RDR) AtomicClearBits(mask DR)

func (*RDR) AtomicSetBits

func (r *RDR) AtomicSetBits(mask DR)

func (*RDR) AtomicStoreBits

func (r *RDR) AtomicStoreBits(mask, b DR)

func (*RDR) Bits

func (r *RDR) Bits(mask DR) DR

func (*RDR) ClearBits

func (r *RDR) ClearBits(mask DR)

func (*RDR) Load

func (r *RDR) Load() DR

func (*RDR) SetBits

func (r *RDR) SetBits(mask DR)

func (*RDR) Store

func (r *RDR) Store(b DR)

func (*RDR) StoreBits

func (r *RDR) StoreBits(mask, b DR)

type RFCR

type RFCR struct{ mmio.U32 }

func (*RFCR) AtomicClearBits

func (r *RFCR) AtomicClearBits(mask FCR)

func (*RFCR) AtomicSetBits

func (r *RFCR) AtomicSetBits(mask FCR)

func (*RFCR) AtomicStoreBits

func (r *RFCR) AtomicStoreBits(mask, b FCR)

func (*RFCR) Bits

func (r *RFCR) Bits(mask FCR) FCR

func (*RFCR) ClearBits

func (r *RFCR) ClearBits(mask FCR)

func (*RFCR) Load

func (r *RFCR) Load() FCR

func (*RFCR) SetBits

func (r *RFCR) SetBits(mask FCR)

func (*RFCR) Store

func (r *RFCR) Store(b FCR)

func (*RFCR) StoreBits

func (r *RFCR) StoreBits(mask, b FCR)

type RLPTR

type RLPTR struct{ mmio.U32 }

func (*RLPTR) AtomicClearBits

func (r *RLPTR) AtomicClearBits(mask LPTR)

func (*RLPTR) AtomicSetBits

func (r *RLPTR) AtomicSetBits(mask LPTR)

func (*RLPTR) AtomicStoreBits

func (r *RLPTR) AtomicStoreBits(mask, b LPTR)

func (*RLPTR) Bits

func (r *RLPTR) Bits(mask LPTR) LPTR

func (*RLPTR) ClearBits

func (r *RLPTR) ClearBits(mask LPTR)

func (*RLPTR) Load

func (r *RLPTR) Load() LPTR

func (*RLPTR) SetBits

func (r *RLPTR) SetBits(mask LPTR)

func (*RLPTR) Store

func (r *RLPTR) Store(b LPTR)

func (*RLPTR) StoreBits

func (r *RLPTR) StoreBits(mask, b LPTR)

type RMABR

type RMABR struct{ mmio.UM32 }

func (RMABR) Load

func (rm RMABR) Load() ABR

func (RMABR) Store

func (rm RMABR) Store(b ABR)

type RMAR

type RMAR struct{ mmio.UM32 }

func (RMAR) Load

func (rm RMAR) Load() AR

func (RMAR) Store

func (rm RMAR) Store(b AR)

type RMCCR

type RMCCR struct{ mmio.UM32 }

func (RMCCR) Load

func (rm RMCCR) Load() CCR

func (RMCCR) Store

func (rm RMCCR) Store(b CCR)

type RMCR

type RMCR struct{ mmio.UM32 }

func (RMCR) Load

func (rm RMCR) Load() CR

func (RMCR) Store

func (rm RMCR) Store(b CR)

type RMDCR

type RMDCR struct{ mmio.UM32 }

func (RMDCR) Load

func (rm RMDCR) Load() DCR

func (RMDCR) Store

func (rm RMDCR) Store(b DCR)

type RMDLR

type RMDLR struct{ mmio.UM32 }

func (RMDLR) Load

func (rm RMDLR) Load() DLR

func (RMDLR) Store

func (rm RMDLR) Store(b DLR)

type RMDR

type RMDR struct{ mmio.UM32 }

func (RMDR) Load

func (rm RMDR) Load() DR

func (RMDR) Store

func (rm RMDR) Store(b DR)

type RMFCR

type RMFCR struct{ mmio.UM32 }

func (RMFCR) Load

func (rm RMFCR) Load() FCR

func (RMFCR) Store

func (rm RMFCR) Store(b FCR)

type RMLPTR

type RMLPTR struct{ mmio.UM32 }

func (RMLPTR) Load

func (rm RMLPTR) Load() LPTR

func (RMLPTR) Store

func (rm RMLPTR) Store(b LPTR)

type RMPIR

type RMPIR struct{ mmio.UM32 }

func (RMPIR) Load

func (rm RMPIR) Load() PIR

func (RMPIR) Store

func (rm RMPIR) Store(b PIR)

type RMPSMAR

type RMPSMAR struct{ mmio.UM32 }

func (RMPSMAR) Load

func (rm RMPSMAR) Load() PSMAR

func (RMPSMAR) Store

func (rm RMPSMAR) Store(b PSMAR)

type RMPSMKR

type RMPSMKR struct{ mmio.UM32 }

func (RMPSMKR) Load

func (rm RMPSMKR) Load() PSMKR

func (RMPSMKR) Store

func (rm RMPSMKR) Store(b PSMKR)

type RMSR

type RMSR struct{ mmio.UM32 }

func (RMSR) Load

func (rm RMSR) Load() SR

func (RMSR) Store

func (rm RMSR) Store(b SR)

type RPIR

type RPIR struct{ mmio.U32 }

func (*RPIR) AtomicClearBits

func (r *RPIR) AtomicClearBits(mask PIR)

func (*RPIR) AtomicSetBits

func (r *RPIR) AtomicSetBits(mask PIR)

func (*RPIR) AtomicStoreBits

func (r *RPIR) AtomicStoreBits(mask, b PIR)

func (*RPIR) Bits

func (r *RPIR) Bits(mask PIR) PIR

func (*RPIR) ClearBits

func (r *RPIR) ClearBits(mask PIR)

func (*RPIR) Load

func (r *RPIR) Load() PIR

func (*RPIR) SetBits

func (r *RPIR) SetBits(mask PIR)

func (*RPIR) Store

func (r *RPIR) Store(b PIR)

func (*RPIR) StoreBits

func (r *RPIR) StoreBits(mask, b PIR)

type RPSMAR

type RPSMAR struct{ mmio.U32 }

func (*RPSMAR) AtomicClearBits

func (r *RPSMAR) AtomicClearBits(mask PSMAR)

func (*RPSMAR) AtomicSetBits

func (r *RPSMAR) AtomicSetBits(mask PSMAR)

func (*RPSMAR) AtomicStoreBits

func (r *RPSMAR) AtomicStoreBits(mask, b PSMAR)

func (*RPSMAR) Bits

func (r *RPSMAR) Bits(mask PSMAR) PSMAR

func (*RPSMAR) ClearBits

func (r *RPSMAR) ClearBits(mask PSMAR)

func (*RPSMAR) Load

func (r *RPSMAR) Load() PSMAR

func (*RPSMAR) SetBits

func (r *RPSMAR) SetBits(mask PSMAR)

func (*RPSMAR) Store

func (r *RPSMAR) Store(b PSMAR)

func (*RPSMAR) StoreBits

func (r *RPSMAR) StoreBits(mask, b PSMAR)

type RPSMKR

type RPSMKR struct{ mmio.U32 }

func (*RPSMKR) AtomicClearBits

func (r *RPSMKR) AtomicClearBits(mask PSMKR)

func (*RPSMKR) AtomicSetBits

func (r *RPSMKR) AtomicSetBits(mask PSMKR)

func (*RPSMKR) AtomicStoreBits

func (r *RPSMKR) AtomicStoreBits(mask, b PSMKR)

func (*RPSMKR) Bits

func (r *RPSMKR) Bits(mask PSMKR) PSMKR

func (*RPSMKR) ClearBits

func (r *RPSMKR) ClearBits(mask PSMKR)

func (*RPSMKR) Load

func (r *RPSMKR) Load() PSMKR

func (*RPSMKR) SetBits

func (r *RPSMKR) SetBits(mask PSMKR)

func (*RPSMKR) Store

func (r *RPSMKR) Store(b PSMKR)

func (*RPSMKR) StoreBits

func (r *RPSMKR) StoreBits(mask, b PSMKR)

type RSR

type RSR struct{ mmio.U32 }

func (*RSR) AtomicClearBits

func (r *RSR) AtomicClearBits(mask SR)

func (*RSR) AtomicSetBits

func (r *RSR) AtomicSetBits(mask SR)

func (*RSR) AtomicStoreBits

func (r *RSR) AtomicStoreBits(mask, b SR)

func (*RSR) Bits

func (r *RSR) Bits(mask SR) SR

func (*RSR) ClearBits

func (r *RSR) ClearBits(mask SR)

func (*RSR) Load

func (r *RSR) Load() SR

func (*RSR) SetBits

func (r *RSR) SetBits(mask SR)

func (*RSR) Store

func (r *RSR) Store(b SR)

func (*RSR) StoreBits

func (r *RSR) StoreBits(mask, b SR)

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.
)

func (SR) Field

func (b SR) Field(mask SR) int

func (SR) J

func (mask SR) J(v int) SR

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL