Documentation ¶
Overview ¶
Package sdio provides interface to SD host Interface.
Peripheral: SDIO_Periph SD host Interface. Instances:
SDIO mmap.SDIO_BASE
Registers:
0x00 32 POWER 0x04 32 CLKCR 0x08 32 ARG 0x0C 32 CMD 0x10 32 RESPCMD 0x14 32 RESP[4] Response registers. 0x24 32 DTIMER 0x28 32 DLEN 0x2C 32 DCTRL 0x30 32 DCOUNT 0x34 32 STA 0x38 32 ICR 0x3C 32 MASK 0x48 32 FIFOCNT 0x80 32 FIFO
Import:
stm32/o/f10x_md/mmap
Index ¶
- Constants
- Variables
- type ARG
- type CLKCR
- type CMD
- type DCOUNT
- type DCTRL
- type DLEN
- type DTIMER
- type FIFO
- type FIFOCNT
- type ICR
- type MASK
- type POWER
- type RARG
- func (r *RARG) AtomicClearBits(mask ARG)
- func (r *RARG) AtomicSetBits(mask ARG)
- func (r *RARG) AtomicStoreBits(mask, b ARG)
- func (r *RARG) Bits(mask ARG) ARG
- func (r *RARG) ClearBits(mask ARG)
- func (r *RARG) Load() ARG
- func (r *RARG) SetBits(mask ARG)
- func (r *RARG) Store(b ARG)
- func (r *RARG) StoreBits(mask, b ARG)
- type RCLKCR
- func (r *RCLKCR) AtomicClearBits(mask CLKCR)
- func (r *RCLKCR) AtomicSetBits(mask CLKCR)
- func (r *RCLKCR) AtomicStoreBits(mask, b CLKCR)
- func (r *RCLKCR) Bits(mask CLKCR) CLKCR
- func (r *RCLKCR) ClearBits(mask CLKCR)
- func (r *RCLKCR) Load() CLKCR
- func (r *RCLKCR) SetBits(mask CLKCR)
- func (r *RCLKCR) Store(b CLKCR)
- func (r *RCLKCR) StoreBits(mask, b CLKCR)
- type RCMD
- func (r *RCMD) AtomicClearBits(mask CMD)
- func (r *RCMD) AtomicSetBits(mask CMD)
- func (r *RCMD) AtomicStoreBits(mask, b CMD)
- func (r *RCMD) Bits(mask CMD) CMD
- func (r *RCMD) ClearBits(mask CMD)
- func (r *RCMD) Load() CMD
- func (r *RCMD) SetBits(mask CMD)
- func (r *RCMD) Store(b CMD)
- func (r *RCMD) StoreBits(mask, b CMD)
- type RDCOUNT
- func (r *RDCOUNT) AtomicClearBits(mask DCOUNT)
- func (r *RDCOUNT) AtomicSetBits(mask DCOUNT)
- func (r *RDCOUNT) AtomicStoreBits(mask, b DCOUNT)
- func (r *RDCOUNT) Bits(mask DCOUNT) DCOUNT
- func (r *RDCOUNT) ClearBits(mask DCOUNT)
- func (r *RDCOUNT) Load() DCOUNT
- func (r *RDCOUNT) SetBits(mask DCOUNT)
- func (r *RDCOUNT) Store(b DCOUNT)
- func (r *RDCOUNT) StoreBits(mask, b DCOUNT)
- type RDCTRL
- func (r *RDCTRL) AtomicClearBits(mask DCTRL)
- func (r *RDCTRL) AtomicSetBits(mask DCTRL)
- func (r *RDCTRL) AtomicStoreBits(mask, b DCTRL)
- func (r *RDCTRL) Bits(mask DCTRL) DCTRL
- func (r *RDCTRL) ClearBits(mask DCTRL)
- func (r *RDCTRL) Load() DCTRL
- func (r *RDCTRL) SetBits(mask DCTRL)
- func (r *RDCTRL) Store(b DCTRL)
- func (r *RDCTRL) StoreBits(mask, b DCTRL)
- type RDLEN
- func (r *RDLEN) AtomicClearBits(mask DLEN)
- func (r *RDLEN) AtomicSetBits(mask DLEN)
- func (r *RDLEN) AtomicStoreBits(mask, b DLEN)
- func (r *RDLEN) Bits(mask DLEN) DLEN
- func (r *RDLEN) ClearBits(mask DLEN)
- func (r *RDLEN) Load() DLEN
- func (r *RDLEN) SetBits(mask DLEN)
- func (r *RDLEN) Store(b DLEN)
- func (r *RDLEN) StoreBits(mask, b DLEN)
- type RDTIMER
- func (r *RDTIMER) AtomicClearBits(mask DTIMER)
- func (r *RDTIMER) AtomicSetBits(mask DTIMER)
- func (r *RDTIMER) AtomicStoreBits(mask, b DTIMER)
- func (r *RDTIMER) Bits(mask DTIMER) DTIMER
- func (r *RDTIMER) ClearBits(mask DTIMER)
- func (r *RDTIMER) Load() DTIMER
- func (r *RDTIMER) SetBits(mask DTIMER)
- func (r *RDTIMER) Store(b DTIMER)
- func (r *RDTIMER) StoreBits(mask, b DTIMER)
- type RESP
- type RESPCMD
- type RFIFO
- func (r *RFIFO) AtomicClearBits(mask FIFO)
- func (r *RFIFO) AtomicSetBits(mask FIFO)
- func (r *RFIFO) AtomicStoreBits(mask, b FIFO)
- func (r *RFIFO) Bits(mask FIFO) FIFO
- func (r *RFIFO) ClearBits(mask FIFO)
- func (r *RFIFO) Load() FIFO
- func (r *RFIFO) SetBits(mask FIFO)
- func (r *RFIFO) Store(b FIFO)
- func (r *RFIFO) StoreBits(mask, b FIFO)
- type RFIFOCNT
- func (r *RFIFOCNT) AtomicClearBits(mask FIFOCNT)
- func (r *RFIFOCNT) AtomicSetBits(mask FIFOCNT)
- func (r *RFIFOCNT) AtomicStoreBits(mask, b FIFOCNT)
- func (r *RFIFOCNT) Bits(mask FIFOCNT) FIFOCNT
- func (r *RFIFOCNT) ClearBits(mask FIFOCNT)
- func (r *RFIFOCNT) Load() FIFOCNT
- func (r *RFIFOCNT) SetBits(mask FIFOCNT)
- func (r *RFIFOCNT) Store(b FIFOCNT)
- func (r *RFIFOCNT) StoreBits(mask, b FIFOCNT)
- type RICR
- func (r *RICR) AtomicClearBits(mask ICR)
- func (r *RICR) AtomicSetBits(mask ICR)
- func (r *RICR) AtomicStoreBits(mask, b ICR)
- func (r *RICR) Bits(mask ICR) ICR
- func (r *RICR) ClearBits(mask ICR)
- func (r *RICR) Load() ICR
- func (r *RICR) SetBits(mask ICR)
- func (r *RICR) Store(b ICR)
- func (r *RICR) StoreBits(mask, b ICR)
- type RMARG
- type RMASK
- func (r *RMASK) AtomicClearBits(mask MASK)
- func (r *RMASK) AtomicSetBits(mask MASK)
- func (r *RMASK) AtomicStoreBits(mask, b MASK)
- func (r *RMASK) Bits(mask MASK) MASK
- func (r *RMASK) ClearBits(mask MASK)
- func (r *RMASK) Load() MASK
- func (r *RMASK) SetBits(mask MASK)
- func (r *RMASK) Store(b MASK)
- func (r *RMASK) StoreBits(mask, b MASK)
- type RMCLKCR
- type RMCMD
- type RMDCOUNT
- type RMDCTRL
- type RMDLEN
- type RMDTIMER
- type RMFIFO
- type RMFIFOCNT
- type RMICR
- type RMMASK
- type RMPOWER
- type RMRESP
- type RMRESPCMD
- type RMSTA
- type RPOWER
- func (r *RPOWER) AtomicClearBits(mask POWER)
- func (r *RPOWER) AtomicSetBits(mask POWER)
- func (r *RPOWER) AtomicStoreBits(mask, b POWER)
- func (r *RPOWER) Bits(mask POWER) POWER
- func (r *RPOWER) ClearBits(mask POWER)
- func (r *RPOWER) Load() POWER
- func (r *RPOWER) SetBits(mask POWER)
- func (r *RPOWER) Store(b POWER)
- func (r *RPOWER) StoreBits(mask, b POWER)
- type RRESP
- func (r *RRESP) AtomicClearBits(mask RESP)
- func (r *RRESP) AtomicSetBits(mask RESP)
- func (r *RRESP) AtomicStoreBits(mask, b RESP)
- func (r *RRESP) Bits(mask RESP) RESP
- func (r *RRESP) ClearBits(mask RESP)
- func (r *RRESP) Load() RESP
- func (r *RRESP) SetBits(mask RESP)
- func (r *RRESP) Store(b RESP)
- func (r *RRESP) StoreBits(mask, b RESP)
- type RRESPCMD
- func (r *RRESPCMD) AtomicClearBits(mask RESPCMD)
- func (r *RRESPCMD) AtomicSetBits(mask RESPCMD)
- func (r *RRESPCMD) AtomicStoreBits(mask, b RESPCMD)
- func (r *RRESPCMD) Bits(mask RESPCMD) RESPCMD
- func (r *RRESPCMD) ClearBits(mask RESPCMD)
- func (r *RRESPCMD) Load() RESPCMD
- func (r *RRESPCMD) SetBits(mask RESPCMD)
- func (r *RRESPCMD) Store(b RESPCMD)
- func (r *RRESPCMD) StoreBits(mask, b RESPCMD)
- type RSTA
- func (r *RSTA) AtomicClearBits(mask STA)
- func (r *RSTA) AtomicSetBits(mask STA)
- func (r *RSTA) AtomicStoreBits(mask, b STA)
- func (r *RSTA) Bits(mask STA) STA
- func (r *RSTA) ClearBits(mask STA)
- func (r *RSTA) Load() STA
- func (r *RSTA) SetBits(mask STA)
- func (r *RSTA) Store(b STA)
- func (r *RSTA) StoreBits(mask, b STA)
- type SDIO_Periph
- func (p *SDIO_Periph) BYPASS() RMCLKCR
- func (p *SDIO_Periph) BaseAddr() uintptr
- func (p *SDIO_Periph) CARDSTATUS1(n int) RMRESP
- func (p *SDIO_Periph) CCRCFAIL() RMSTA
- func (p *SDIO_Periph) CCRCFAILC() RMICR
- func (p *SDIO_Periph) CCRCFAILIE() RMMASK
- func (p *SDIO_Periph) CEATACMD() RMCMD
- func (p *SDIO_Periph) CEATAEND() RMSTA
- func (p *SDIO_Periph) CEATAENDC() RMICR
- func (p *SDIO_Periph) CEATAENDIE() RMMASK
- func (p *SDIO_Periph) CLKDIV() RMCLKCR
- func (p *SDIO_Periph) CLKEN() RMCLKCR
- func (p *SDIO_Periph) CMDACT() RMSTA
- func (p *SDIO_Periph) CMDACTIE() RMMASK
- func (p *SDIO_Periph) CMDARG() RMARG
- func (p *SDIO_Periph) CMDINDEX() RMCMD
- func (p *SDIO_Periph) CMDREND() RMSTA
- func (p *SDIO_Periph) CMDRENDC() RMICR
- func (p *SDIO_Periph) CMDRENDIE() RMMASK
- func (p *SDIO_Periph) CMDSENT() RMSTA
- func (p *SDIO_Periph) CMDSENTC() RMICR
- func (p *SDIO_Periph) CMDSENTIE() RMMASK
- func (p *SDIO_Periph) CPSMEN() RMCMD
- func (p *SDIO_Periph) CTIMEOUT() RMSTA
- func (p *SDIO_Periph) CTIMEOUTC() RMICR
- func (p *SDIO_Periph) CTIMEOUTIE() RMMASK
- func (p *SDIO_Periph) DATACOUNT() RMDCOUNT
- func (p *SDIO_Periph) DATAEND() RMSTA
- func (p *SDIO_Periph) DATAENDC() RMICR
- func (p *SDIO_Periph) DATAENDIE() RMMASK
- func (p *SDIO_Periph) DATALENGTH() RMDLEN
- func (p *SDIO_Periph) DATATIME() RMDTIMER
- func (p *SDIO_Periph) DBCKEND() RMSTA
- func (p *SDIO_Periph) DBCKENDC() RMICR
- func (p *SDIO_Periph) DBCKENDIE() RMMASK
- func (p *SDIO_Periph) DBLOCKSIZE() RMDCTRL
- func (p *SDIO_Periph) DCRCFAIL() RMSTA
- func (p *SDIO_Periph) DCRCFAILC() RMICR
- func (p *SDIO_Periph) DCRCFAILIE() RMMASK
- func (p *SDIO_Periph) DMAEN() RMDCTRL
- func (p *SDIO_Periph) DTDIR() RMDCTRL
- func (p *SDIO_Periph) DTEN() RMDCTRL
- func (p *SDIO_Periph) DTIMEOUT() RMSTA
- func (p *SDIO_Periph) DTIMEOUTC() RMICR
- func (p *SDIO_Periph) DTIMEOUTIE() RMMASK
- func (p *SDIO_Periph) DTMODE() RMDCTRL
- func (p *SDIO_Periph) ENCMDCOMPL() RMCMD
- func (p *SDIO_Periph) FIFOCOUNT() RMFIFOCNT
- func (p *SDIO_Periph) FIFODATA() RMFIFO
- func (p *SDIO_Periph) HWFC_EN() RMCLKCR
- func (p *SDIO_Periph) NEGEDGE() RMCLKCR
- func (p *SDIO_Periph) NIEN() RMCMD
- func (p *SDIO_Periph) PWRCTRL() RMPOWER
- func (p *SDIO_Periph) PWRSAV() RMCLKCR
- func (p *SDIO_Periph) RWMOD() RMDCTRL
- func (p *SDIO_Periph) RWSTART() RMDCTRL
- func (p *SDIO_Periph) RWSTOP() RMDCTRL
- func (p *SDIO_Periph) RXACT() RMSTA
- func (p *SDIO_Periph) RXACTIE() RMMASK
- func (p *SDIO_Periph) RXDAVL() RMSTA
- func (p *SDIO_Periph) RXDAVLIE() RMMASK
- func (p *SDIO_Periph) RXFIFOE() RMSTA
- func (p *SDIO_Periph) RXFIFOEIE() RMMASK
- func (p *SDIO_Periph) RXFIFOF() RMSTA
- func (p *SDIO_Periph) RXFIFOFIE() RMMASK
- func (p *SDIO_Periph) RXFIFOHF() RMSTA
- func (p *SDIO_Periph) RXFIFOHFIE() RMMASK
- func (p *SDIO_Periph) RXOVERR() RMSTA
- func (p *SDIO_Periph) RXOVERRC() RMICR
- func (p *SDIO_Periph) RXOVERRIE() RMMASK
- func (p *SDIO_Periph) SDIOEN() RMDCTRL
- func (p *SDIO_Periph) SDIOIT() RMSTA
- func (p *SDIO_Periph) SDIOITC() RMICR
- func (p *SDIO_Periph) SDIOITIE() RMMASK
- func (p *SDIO_Periph) SDIOSUSPEND() RMCMD
- func (p *SDIO_Periph) STBITERR() RMSTA
- func (p *SDIO_Periph) STBITERRC() RMICR
- func (p *SDIO_Periph) STBITERRIE() RMMASK
- func (p *SDIO_Periph) TXACT() RMSTA
- func (p *SDIO_Periph) TXACTIE() RMMASK
- func (p *SDIO_Periph) TXDAVL() RMSTA
- func (p *SDIO_Periph) TXDAVLIE() RMMASK
- func (p *SDIO_Periph) TXFIFOE() RMSTA
- func (p *SDIO_Periph) TXFIFOEIE() RMMASK
- func (p *SDIO_Periph) TXFIFOF() RMSTA
- func (p *SDIO_Periph) TXFIFOFIE() RMMASK
- func (p *SDIO_Periph) TXFIFOHE() RMSTA
- func (p *SDIO_Periph) TXFIFOHEIE() RMMASK
- func (p *SDIO_Periph) TXUNDERR() RMSTA
- func (p *SDIO_Periph) TXUNDERRC() RMICR
- func (p *SDIO_Periph) TXUNDERRIE() RMMASK
- func (p *SDIO_Periph) WAITINT() RMCMD
- func (p *SDIO_Periph) WAITPEND() RMCMD
- func (p *SDIO_Periph) WAITRESP() RMCMD
- func (p *SDIO_Periph) WIDBUS() RMCLKCR
- type STA
Constants ¶
View Source
const ( CLKDIVn = 0 CLKENn = 8 PWRSAVn = 9 BYPASSn = 10 WIDBUSn = 11 NEGEDGEn = 13 HWFC_ENn = 14 )
View Source
const ( CMDINDEXn = 0 WAITRESPn = 6 WAITINTn = 8 WAITPENDn = 9 CPSMENn = 10 SDIOSUSPENDn = 11 ENCMDCOMPLn = 12 NIENn = 13 CEATACMDn = 14 )
View Source
const ( DTENn = 0 DTDIRn = 1 DTMODEn = 2 DMAENn = 3 DBLOCKSIZEn = 4 RWSTARTn = 8 RWSTOPn = 9 RWMODn = 10 SDIOENn = 11 )
View Source
const ( CCRCFAILn = 0 DCRCFAILn = 1 CTIMEOUTn = 2 DTIMEOUTn = 3 TXUNDERRn = 4 RXOVERRn = 5 CMDRENDn = 6 CMDSENTn = 7 DATAENDn = 8 STBITERRn = 9 DBCKENDn = 10 CMDACTn = 11 TXACTn = 12 RXACTn = 13 TXFIFOHEn = 14 RXFIFOHFn = 15 TXFIFOFn = 16 RXFIFOFn = 17 TXFIFOEn = 18 RXFIFOEn = 19 TXDAVLn = 20 RXDAVLn = 21 SDIOITn = 22 CEATAENDn = 23 )
View Source
const ( CCRCFAILCn = 0 DCRCFAILCn = 1 CTIMEOUTCn = 2 DTIMEOUTCn = 3 TXUNDERRCn = 4 RXOVERRCn = 5 CMDRENDCn = 6 CMDSENTCn = 7 DATAENDCn = 8 STBITERRCn = 9 DBCKENDCn = 10 SDIOITCn = 22 CEATAENDCn = 23 )
View Source
const ( CCRCFAILIEn = 0 DCRCFAILIEn = 1 CTIMEOUTIEn = 2 DTIMEOUTIEn = 3 TXUNDERRIEn = 4 RXOVERRIEn = 5 CMDRENDIEn = 6 CMDSENTIEn = 7 DATAENDIEn = 8 STBITERRIEn = 9 DBCKENDIEn = 10 CMDACTIEn = 11 TXACTIEn = 12 RXACTIEn = 13 TXFIFOHEIEn = 14 RXFIFOHFIEn = 15 TXFIFOFIEn = 16 RXFIFOFIEn = 17 TXFIFOEIEn = 18 RXFIFOEIEn = 19 TXDAVLIEn = 20 RXDAVLIEn = 21 SDIOITIEn = 22 CEATAENDIEn = 23 )
View Source
const (
CARDSTATUS1n = 0
)
View Source
const (
CMDARGn = 0
)
View Source
const (
DATACOUNTn = 0
)
View Source
const (
DATALENGTHn = 0
)
View Source
const (
DATATIMEn = 0
)
View Source
const (
FIFOCOUNTn = 0
)
View Source
const (
FIFODATAn = 0
)
View Source
const (
PWRCTRLn = 0
)
Variables ¶
View Source
var SDIO = (*SDIO_Periph)(unsafe.Pointer(uintptr(mmap.SDIO_BASE)))
Functions ¶
This section is empty.
Types ¶
type CLKCR ¶
type CLKCR uint32
const ( CLKDIV CLKCR = 0xFF << 0 //+ Clock divide factor. CLKEN CLKCR = 0x01 << 8 //+ Clock enable bit. PWRSAV CLKCR = 0x01 << 9 //+ Power saving configuration bit. BYPASS CLKCR = 0x01 << 10 //+ Clock divider bypass enable bit. WIDBUS CLKCR = 0x03 << 11 //+ WIDBUS[1:0] bits (Wide bus mode enable bit). WIDBUS_0 CLKCR = 0x01 << 11 // Bit 0. WIDBUS_1 CLKCR = 0x02 << 11 // Bit 1. NEGEDGE CLKCR = 0x01 << 13 //+ SDIO_CK dephasing selection bit. HWFC_EN CLKCR = 0x01 << 14 //+ HW Flow Control enable. )
type CMD ¶
type CMD uint32
const ( CMDINDEX CMD = 0x3F << 0 //+ Command Index. WAITRESP CMD = 0x03 << 6 //+ WAITRESP[1:0] bits (Wait for response bits). WAITRESP_0 CMD = 0x01 << 6 // Bit 0. WAITRESP_1 CMD = 0x02 << 6 // Bit 1. WAITINT CMD = 0x01 << 8 //+ CPSM Waits for Interrupt Request. WAITPEND CMD = 0x01 << 9 //+ CPSM Waits for ends of data transfer (CmdPend internal signal). CPSMEN CMD = 0x01 << 10 //+ Command path state machine (CPSM) Enable bit. SDIOSUSPEND CMD = 0x01 << 11 //+ SD I/O suspend command. ENCMDCOMPL CMD = 0x01 << 12 //+ Enable CMD completion. NIEN CMD = 0x01 << 13 //+ Not Interrupt Enable. CEATACMD CMD = 0x01 << 14 //+ CE-ATA command. )
type DCTRL ¶
type DCTRL uint32
const ( DTEN DCTRL = 0x01 << 0 //+ Data transfer enabled bit. DTDIR DCTRL = 0x01 << 1 //+ Data transfer direction selection. DTMODE DCTRL = 0x01 << 2 //+ Data transfer mode selection. DMAEN DCTRL = 0x01 << 3 //+ DMA enabled bit. DBLOCKSIZE DCTRL = 0x0F << 4 //+ DBLOCKSIZE[3:0] bits (Data block size). DBLOCKSIZE_0 DCTRL = 0x01 << 4 // Bit 0. DBLOCKSIZE_1 DCTRL = 0x02 << 4 // Bit 1. DBLOCKSIZE_2 DCTRL = 0x04 << 4 // Bit 2. DBLOCKSIZE_3 DCTRL = 0x08 << 4 // Bit 3. RWSTART DCTRL = 0x01 << 8 //+ Read wait start. RWSTOP DCTRL = 0x01 << 9 //+ Read wait stop. RWMOD DCTRL = 0x01 << 10 //+ Read wait mode. SDIOEN DCTRL = 0x01 << 11 //+ SD I/O enable functions. )
type DTIMER ¶
type DTIMER uint32
const (
DATATIME DTIMER = 0xFFFFFFFF << 0 //+ Data timeout period..
)
type FIFO ¶
type FIFO uint32
const (
FIFODATA FIFO = 0xFFFFFFFF << 0 //+ Receive and transmit FIFO data.
)
type FIFOCNT ¶
type FIFOCNT uint32
const (
FIFOCOUNT FIFOCNT = 0xFFFFFF << 0 //+ Remaining number of words to be written to or read from the FIFO.
)
type ICR ¶
type ICR uint32
const ( CCRCFAILC ICR = 0x01 << 0 //+ CCRCFAIL flag clear bit. DCRCFAILC ICR = 0x01 << 1 //+ DCRCFAIL flag clear bit. CTIMEOUTC ICR = 0x01 << 2 //+ CTIMEOUT flag clear bit. DTIMEOUTC ICR = 0x01 << 3 //+ DTIMEOUT flag clear bit. TXUNDERRC ICR = 0x01 << 4 //+ TXUNDERR flag clear bit. RXOVERRC ICR = 0x01 << 5 //+ RXOVERR flag clear bit. CMDRENDC ICR = 0x01 << 6 //+ CMDREND flag clear bit. CMDSENTC ICR = 0x01 << 7 //+ CMDSENT flag clear bit. DATAENDC ICR = 0x01 << 8 //+ DATAEND flag clear bit. STBITERRC ICR = 0x01 << 9 //+ STBITERR flag clear bit. DBCKENDC ICR = 0x01 << 10 //+ DBCKEND flag clear bit. SDIOITC ICR = 0x01 << 22 //+ SDIOIT flag clear bit. CEATAENDC ICR = 0x01 << 23 //+ CEATAEND flag clear bit. )
type MASK ¶
type MASK uint32
const ( CCRCFAILIE MASK = 0x01 << 0 //+ Command CRC Fail Interrupt Enable. DCRCFAILIE MASK = 0x01 << 1 //+ Data CRC Fail Interrupt Enable. CTIMEOUTIE MASK = 0x01 << 2 //+ Command TimeOut Interrupt Enable. DTIMEOUTIE MASK = 0x01 << 3 //+ Data TimeOut Interrupt Enable. TXUNDERRIE MASK = 0x01 << 4 //+ Tx FIFO UnderRun Error Interrupt Enable. RXOVERRIE MASK = 0x01 << 5 //+ Rx FIFO OverRun Error Interrupt Enable. CMDRENDIE MASK = 0x01 << 6 //+ Command Response Received Interrupt Enable. CMDSENTIE MASK = 0x01 << 7 //+ Command Sent Interrupt Enable. DATAENDIE MASK = 0x01 << 8 //+ Data End Interrupt Enable. STBITERRIE MASK = 0x01 << 9 //+ Start Bit Error Interrupt Enable. DBCKENDIE MASK = 0x01 << 10 //+ Data Block End Interrupt Enable. CMDACTIE MASK = 0x01 << 11 //+ Command Acting Interrupt Enable. TXACTIE MASK = 0x01 << 12 //+ Data Transmit Acting Interrupt Enable. RXACTIE MASK = 0x01 << 13 //+ Data receive acting interrupt enabled. TXFIFOHEIE MASK = 0x01 << 14 //+ Tx FIFO Half Empty interrupt Enable. RXFIFOHFIE MASK = 0x01 << 15 //+ Rx FIFO Half Full interrupt Enable. TXFIFOFIE MASK = 0x01 << 16 //+ Tx FIFO Full interrupt Enable. RXFIFOFIE MASK = 0x01 << 17 //+ Rx FIFO Full interrupt Enable. TXFIFOEIE MASK = 0x01 << 18 //+ Tx FIFO Empty interrupt Enable. RXFIFOEIE MASK = 0x01 << 19 //+ Rx FIFO Empty interrupt Enable. TXDAVLIE MASK = 0x01 << 20 //+ Data available in Tx FIFO interrupt Enable. RXDAVLIE MASK = 0x01 << 21 //+ Data available in Rx FIFO interrupt Enable. SDIOITIE MASK = 0x01 << 22 //+ SDIO Mode Interrupt Received interrupt Enable. CEATAENDIE MASK = 0x01 << 23 //+ CE-ATA command completion signal received Interrupt Enable. )
type RARG ¶
func (*RARG) AtomicClearBits ¶
func (*RARG) AtomicSetBits ¶
func (*RARG) AtomicStoreBits ¶
type RCLKCR ¶
func (*RCLKCR) AtomicClearBits ¶
func (*RCLKCR) AtomicSetBits ¶
func (*RCLKCR) AtomicStoreBits ¶
type RCMD ¶
func (*RCMD) AtomicClearBits ¶
func (*RCMD) AtomicSetBits ¶
func (*RCMD) AtomicStoreBits ¶
type RDCOUNT ¶
func (*RDCOUNT) AtomicClearBits ¶
func (*RDCOUNT) AtomicSetBits ¶
func (*RDCOUNT) AtomicStoreBits ¶
type RDCTRL ¶
func (*RDCTRL) AtomicClearBits ¶
func (*RDCTRL) AtomicSetBits ¶
func (*RDCTRL) AtomicStoreBits ¶
type RDLEN ¶
func (*RDLEN) AtomicClearBits ¶
func (*RDLEN) AtomicSetBits ¶
func (*RDLEN) AtomicStoreBits ¶
type RDTIMER ¶
func (*RDTIMER) AtomicClearBits ¶
func (*RDTIMER) AtomicSetBits ¶
func (*RDTIMER) AtomicStoreBits ¶
type RFIFO ¶
func (*RFIFO) AtomicClearBits ¶
func (*RFIFO) AtomicSetBits ¶
func (*RFIFO) AtomicStoreBits ¶
type RFIFOCNT ¶
func (*RFIFOCNT) AtomicClearBits ¶
func (*RFIFOCNT) AtomicSetBits ¶
func (*RFIFOCNT) AtomicStoreBits ¶
type RICR ¶
func (*RICR) AtomicClearBits ¶
func (*RICR) AtomicSetBits ¶
func (*RICR) AtomicStoreBits ¶
type RMASK ¶
func (*RMASK) AtomicClearBits ¶
func (*RMASK) AtomicSetBits ¶
func (*RMASK) AtomicStoreBits ¶
type RPOWER ¶
func (*RPOWER) AtomicClearBits ¶
func (*RPOWER) AtomicSetBits ¶
func (*RPOWER) AtomicStoreBits ¶
type RRESP ¶
func (*RRESP) AtomicClearBits ¶
func (*RRESP) AtomicSetBits ¶
func (*RRESP) AtomicStoreBits ¶
type RRESPCMD ¶
func (*RRESPCMD) AtomicClearBits ¶
func (*RRESPCMD) AtomicSetBits ¶
func (*RRESPCMD) AtomicStoreBits ¶
type RSTA ¶
func (*RSTA) AtomicClearBits ¶
func (*RSTA) AtomicSetBits ¶
func (*RSTA) AtomicStoreBits ¶
type SDIO_Periph ¶
type SDIO_Periph struct { POWER RPOWER CLKCR RCLKCR ARG RARG CMD RCMD RESPCMD RRESPCMD RESP [4]RRESP DTIMER RDTIMER DLEN RDLEN DCTRL RDCTRL DCOUNT RDCOUNT STA RSTA ICR RICR MASK RMASK FIFOCNT RFIFOCNT FIFO RFIFO // contains filtered or unexported fields }
func (*SDIO_Periph) BYPASS ¶
func (p *SDIO_Periph) BYPASS() RMCLKCR
func (*SDIO_Periph) BaseAddr ¶
func (p *SDIO_Periph) BaseAddr() uintptr
func (*SDIO_Periph) CARDSTATUS1 ¶
func (p *SDIO_Periph) CARDSTATUS1(n int) RMRESP
func (*SDIO_Periph) CCRCFAIL ¶
func (p *SDIO_Periph) CCRCFAIL() RMSTA
func (*SDIO_Periph) CCRCFAILC ¶
func (p *SDIO_Periph) CCRCFAILC() RMICR
func (*SDIO_Periph) CCRCFAILIE ¶
func (p *SDIO_Periph) CCRCFAILIE() RMMASK
func (*SDIO_Periph) CEATACMD ¶
func (p *SDIO_Periph) CEATACMD() RMCMD
func (*SDIO_Periph) CEATAEND ¶
func (p *SDIO_Periph) CEATAEND() RMSTA
func (*SDIO_Periph) CEATAENDC ¶
func (p *SDIO_Periph) CEATAENDC() RMICR
func (*SDIO_Periph) CEATAENDIE ¶
func (p *SDIO_Periph) CEATAENDIE() RMMASK
func (*SDIO_Periph) CLKDIV ¶
func (p *SDIO_Periph) CLKDIV() RMCLKCR
func (*SDIO_Periph) CLKEN ¶
func (p *SDIO_Periph) CLKEN() RMCLKCR
func (*SDIO_Periph) CMDACT ¶
func (p *SDIO_Periph) CMDACT() RMSTA
func (*SDIO_Periph) CMDACTIE ¶
func (p *SDIO_Periph) CMDACTIE() RMMASK
func (*SDIO_Periph) CMDARG ¶
func (p *SDIO_Periph) CMDARG() RMARG
func (*SDIO_Periph) CMDINDEX ¶
func (p *SDIO_Periph) CMDINDEX() RMCMD
func (*SDIO_Periph) CMDREND ¶
func (p *SDIO_Periph) CMDREND() RMSTA
func (*SDIO_Periph) CMDRENDC ¶
func (p *SDIO_Periph) CMDRENDC() RMICR
func (*SDIO_Periph) CMDRENDIE ¶
func (p *SDIO_Periph) CMDRENDIE() RMMASK
func (*SDIO_Periph) CMDSENT ¶
func (p *SDIO_Periph) CMDSENT() RMSTA
func (*SDIO_Periph) CMDSENTC ¶
func (p *SDIO_Periph) CMDSENTC() RMICR
func (*SDIO_Periph) CMDSENTIE ¶
func (p *SDIO_Periph) CMDSENTIE() RMMASK
func (*SDIO_Periph) CPSMEN ¶
func (p *SDIO_Periph) CPSMEN() RMCMD
func (*SDIO_Periph) CTIMEOUT ¶
func (p *SDIO_Periph) CTIMEOUT() RMSTA
func (*SDIO_Periph) CTIMEOUTC ¶
func (p *SDIO_Periph) CTIMEOUTC() RMICR
func (*SDIO_Periph) CTIMEOUTIE ¶
func (p *SDIO_Periph) CTIMEOUTIE() RMMASK
func (*SDIO_Periph) DATACOUNT ¶
func (p *SDIO_Periph) DATACOUNT() RMDCOUNT
func (*SDIO_Periph) DATAEND ¶
func (p *SDIO_Periph) DATAEND() RMSTA
func (*SDIO_Periph) DATAENDC ¶
func (p *SDIO_Periph) DATAENDC() RMICR
func (*SDIO_Periph) DATAENDIE ¶
func (p *SDIO_Periph) DATAENDIE() RMMASK
func (*SDIO_Periph) DATALENGTH ¶
func (p *SDIO_Periph) DATALENGTH() RMDLEN
func (*SDIO_Periph) DATATIME ¶
func (p *SDIO_Periph) DATATIME() RMDTIMER
func (*SDIO_Periph) DBCKEND ¶
func (p *SDIO_Periph) DBCKEND() RMSTA
func (*SDIO_Periph) DBCKENDC ¶
func (p *SDIO_Periph) DBCKENDC() RMICR
func (*SDIO_Periph) DBCKENDIE ¶
func (p *SDIO_Periph) DBCKENDIE() RMMASK
func (*SDIO_Periph) DBLOCKSIZE ¶
func (p *SDIO_Periph) DBLOCKSIZE() RMDCTRL
func (*SDIO_Periph) DCRCFAIL ¶
func (p *SDIO_Periph) DCRCFAIL() RMSTA
func (*SDIO_Periph) DCRCFAILC ¶
func (p *SDIO_Periph) DCRCFAILC() RMICR
func (*SDIO_Periph) DCRCFAILIE ¶
func (p *SDIO_Periph) DCRCFAILIE() RMMASK
func (*SDIO_Periph) DMAEN ¶
func (p *SDIO_Periph) DMAEN() RMDCTRL
func (*SDIO_Periph) DTDIR ¶
func (p *SDIO_Periph) DTDIR() RMDCTRL
func (*SDIO_Periph) DTEN ¶
func (p *SDIO_Periph) DTEN() RMDCTRL
func (*SDIO_Periph) DTIMEOUT ¶
func (p *SDIO_Periph) DTIMEOUT() RMSTA
func (*SDIO_Periph) DTIMEOUTC ¶
func (p *SDIO_Periph) DTIMEOUTC() RMICR
func (*SDIO_Periph) DTIMEOUTIE ¶
func (p *SDIO_Periph) DTIMEOUTIE() RMMASK
func (*SDIO_Periph) DTMODE ¶
func (p *SDIO_Periph) DTMODE() RMDCTRL
func (*SDIO_Periph) ENCMDCOMPL ¶
func (p *SDIO_Periph) ENCMDCOMPL() RMCMD
func (*SDIO_Periph) FIFOCOUNT ¶
func (p *SDIO_Periph) FIFOCOUNT() RMFIFOCNT
func (*SDIO_Periph) FIFODATA ¶
func (p *SDIO_Periph) FIFODATA() RMFIFO
func (*SDIO_Periph) HWFC_EN ¶
func (p *SDIO_Periph) HWFC_EN() RMCLKCR
func (*SDIO_Periph) NEGEDGE ¶
func (p *SDIO_Periph) NEGEDGE() RMCLKCR
func (*SDIO_Periph) NIEN ¶
func (p *SDIO_Periph) NIEN() RMCMD
func (*SDIO_Periph) PWRCTRL ¶
func (p *SDIO_Periph) PWRCTRL() RMPOWER
func (*SDIO_Periph) PWRSAV ¶
func (p *SDIO_Periph) PWRSAV() RMCLKCR
func (*SDIO_Periph) RWMOD ¶
func (p *SDIO_Periph) RWMOD() RMDCTRL
func (*SDIO_Periph) RWSTART ¶
func (p *SDIO_Periph) RWSTART() RMDCTRL
func (*SDIO_Periph) RWSTOP ¶
func (p *SDIO_Periph) RWSTOP() RMDCTRL
func (*SDIO_Periph) RXACT ¶
func (p *SDIO_Periph) RXACT() RMSTA
func (*SDIO_Periph) RXACTIE ¶
func (p *SDIO_Periph) RXACTIE() RMMASK
func (*SDIO_Periph) RXDAVL ¶
func (p *SDIO_Periph) RXDAVL() RMSTA
func (*SDIO_Periph) RXDAVLIE ¶
func (p *SDIO_Periph) RXDAVLIE() RMMASK
func (*SDIO_Periph) RXFIFOE ¶
func (p *SDIO_Periph) RXFIFOE() RMSTA
func (*SDIO_Periph) RXFIFOEIE ¶
func (p *SDIO_Periph) RXFIFOEIE() RMMASK
func (*SDIO_Periph) RXFIFOF ¶
func (p *SDIO_Periph) RXFIFOF() RMSTA
func (*SDIO_Periph) RXFIFOFIE ¶
func (p *SDIO_Periph) RXFIFOFIE() RMMASK
func (*SDIO_Periph) RXFIFOHF ¶
func (p *SDIO_Periph) RXFIFOHF() RMSTA
func (*SDIO_Periph) RXFIFOHFIE ¶
func (p *SDIO_Periph) RXFIFOHFIE() RMMASK
func (*SDIO_Periph) RXOVERR ¶
func (p *SDIO_Periph) RXOVERR() RMSTA
func (*SDIO_Periph) RXOVERRC ¶
func (p *SDIO_Periph) RXOVERRC() RMICR
func (*SDIO_Periph) RXOVERRIE ¶
func (p *SDIO_Periph) RXOVERRIE() RMMASK
func (*SDIO_Periph) SDIOEN ¶
func (p *SDIO_Periph) SDIOEN() RMDCTRL
func (*SDIO_Periph) SDIOIT ¶
func (p *SDIO_Periph) SDIOIT() RMSTA
func (*SDIO_Periph) SDIOITC ¶
func (p *SDIO_Periph) SDIOITC() RMICR
func (*SDIO_Periph) SDIOITIE ¶
func (p *SDIO_Periph) SDIOITIE() RMMASK
func (*SDIO_Periph) SDIOSUSPEND ¶
func (p *SDIO_Periph) SDIOSUSPEND() RMCMD
func (*SDIO_Periph) STBITERR ¶
func (p *SDIO_Periph) STBITERR() RMSTA
func (*SDIO_Periph) STBITERRC ¶
func (p *SDIO_Periph) STBITERRC() RMICR
func (*SDIO_Periph) STBITERRIE ¶
func (p *SDIO_Periph) STBITERRIE() RMMASK
func (*SDIO_Periph) TXACT ¶
func (p *SDIO_Periph) TXACT() RMSTA
func (*SDIO_Periph) TXACTIE ¶
func (p *SDIO_Periph) TXACTIE() RMMASK
func (*SDIO_Periph) TXDAVL ¶
func (p *SDIO_Periph) TXDAVL() RMSTA
func (*SDIO_Periph) TXDAVLIE ¶
func (p *SDIO_Periph) TXDAVLIE() RMMASK
func (*SDIO_Periph) TXFIFOE ¶
func (p *SDIO_Periph) TXFIFOE() RMSTA
func (*SDIO_Periph) TXFIFOEIE ¶
func (p *SDIO_Periph) TXFIFOEIE() RMMASK
func (*SDIO_Periph) TXFIFOF ¶
func (p *SDIO_Periph) TXFIFOF() RMSTA
func (*SDIO_Periph) TXFIFOFIE ¶
func (p *SDIO_Periph) TXFIFOFIE() RMMASK
func (*SDIO_Periph) TXFIFOHE ¶
func (p *SDIO_Periph) TXFIFOHE() RMSTA
func (*SDIO_Periph) TXFIFOHEIE ¶
func (p *SDIO_Periph) TXFIFOHEIE() RMMASK
func (*SDIO_Periph) TXUNDERR ¶
func (p *SDIO_Periph) TXUNDERR() RMSTA
func (*SDIO_Periph) TXUNDERRC ¶
func (p *SDIO_Periph) TXUNDERRC() RMICR
func (*SDIO_Periph) TXUNDERRIE ¶
func (p *SDIO_Periph) TXUNDERRIE() RMMASK
func (*SDIO_Periph) WAITINT ¶
func (p *SDIO_Periph) WAITINT() RMCMD
func (*SDIO_Periph) WAITPEND ¶
func (p *SDIO_Periph) WAITPEND() RMCMD
func (*SDIO_Periph) WAITRESP ¶
func (p *SDIO_Periph) WAITRESP() RMCMD
func (*SDIO_Periph) WIDBUS ¶
func (p *SDIO_Periph) WIDBUS() RMCLKCR
type STA ¶
type STA uint32
const ( CCRCFAIL STA = 0x01 << 0 //+ Command response received (CRC check failed). DCRCFAIL STA = 0x01 << 1 //+ Data block sent/received (CRC check failed). CTIMEOUT STA = 0x01 << 2 //+ Command response timeout. DTIMEOUT STA = 0x01 << 3 //+ Data timeout. TXUNDERR STA = 0x01 << 4 //+ Transmit FIFO underrun error. RXOVERR STA = 0x01 << 5 //+ Received FIFO overrun error. CMDREND STA = 0x01 << 6 //+ Command response received (CRC check passed). CMDSENT STA = 0x01 << 7 //+ Command sent (no response required). DATAEND STA = 0x01 << 8 //+ Data end (data counter, SDIDCOUNT, is zero). STBITERR STA = 0x01 << 9 //+ Start bit not detected on all data signals in wide bus mode. DBCKEND STA = 0x01 << 10 //+ Data block sent/received (CRC check passed). CMDACT STA = 0x01 << 11 //+ Command transfer in progress. TXACT STA = 0x01 << 12 //+ Data transmit in progress. RXACT STA = 0x01 << 13 //+ Data receive in progress. TXFIFOHE STA = 0x01 << 14 //+ Transmit FIFO Half Empty: at least 8 words can be written into the FIFO. RXFIFOHF STA = 0x01 << 15 //+ Receive FIFO Half Full: there are at least 8 words in the FIFO. TXFIFOF STA = 0x01 << 16 //+ Transmit FIFO full. RXFIFOF STA = 0x01 << 17 //+ Receive FIFO full. TXFIFOE STA = 0x01 << 18 //+ Transmit FIFO empty. RXFIFOE STA = 0x01 << 19 //+ Receive FIFO empty. TXDAVL STA = 0x01 << 20 //+ Data available in transmit FIFO. RXDAVL STA = 0x01 << 21 //+ Data available in receive FIFO. SDIOIT STA = 0x01 << 22 //+ SDIO interrupt received. CEATAEND STA = 0x01 << 23 //+ CE-ATA command completion signal received for CMD61. )
Click to show internal directories.
Click to hide internal directories.