Documentation ¶
Overview ¶
Package cec provides interface to HDMI-CEC.
Peripheral: CEC_Periph HDMI-CEC. Instances:
CEC mmap.CEC_BASE
Registers:
0x00 32 CR Control register. 0x04 32 CFGR Configuration register. 0x08 32 TXDR Tx data register. 0x0C 32 RXDR Rx Data Register. 0x10 32 ISR Interrupt and Status Register. 0x14 32 IER Interrupt enable register.
Import:
stm32/o/f746xx/mmap
Index ¶
- Constants
- Variables
- type CEC_Periph
- func (p *CEC_Periph) ARBLST() RMISR
- func (p *CEC_Periph) ARBLSTIE() RMIER
- func (p *CEC_Periph) BRDNOGEN() RMCFGR
- func (p *CEC_Periph) BRE() RMISR
- func (p *CEC_Periph) BREGEN() RMCFGR
- func (p *CEC_Periph) BREIE() RMIER
- func (p *CEC_Periph) BRESTP() RMCFGR
- func (p *CEC_Periph) BaseAddr() uintptr
- func (p *CEC_Periph) CECEN() RMCR
- func (p *CEC_Periph) LBPE() RMISR
- func (p *CEC_Periph) LBPEGEN() RMCFGR
- func (p *CEC_Periph) LBPEIE() RMIER
- func (p *CEC_Periph) LSTN() RMCFGR
- func (p *CEC_Periph) OAR() RMCFGR
- func (p *CEC_Periph) RXACKE() RMISR
- func (p *CEC_Periph) RXACKEIE() RMIER
- func (p *CEC_Periph) RXBR() RMISR
- func (p *CEC_Periph) RXBRIE() RMIER
- func (p *CEC_Periph) RXEND() RMISR
- func (p *CEC_Periph) RXENDIE() RMIER
- func (p *CEC_Periph) RXOVR() RMISR
- func (p *CEC_Periph) RXOVRIE() RMIER
- func (p *CEC_Periph) RXTOL() RMCFGR
- func (p *CEC_Periph) SBPE() RMISR
- func (p *CEC_Periph) SBPEIE() RMIER
- func (p *CEC_Periph) SFT() RMCFGR
- func (p *CEC_Periph) SFTOPT() RMCFGR
- func (p *CEC_Periph) TXACKE() RMISR
- func (p *CEC_Periph) TXACKEIE() RMIER
- func (p *CEC_Periph) TXBR() RMISR
- func (p *CEC_Periph) TXBRIE() RMIER
- func (p *CEC_Periph) TXD() RMTXDR
- func (p *CEC_Periph) TXEND() RMISR
- func (p *CEC_Periph) TXENDIE() RMIER
- func (p *CEC_Periph) TXEOM() RMCR
- func (p *CEC_Periph) TXERR() RMISR
- func (p *CEC_Periph) TXERRIE() RMIER
- func (p *CEC_Periph) TXSOM() RMCR
- func (p *CEC_Periph) TXUDR() RMISR
- func (p *CEC_Periph) TXUDRIE() RMIER
- type CFGR
- type CR
- type IER
- type ISR
- type RCFGR
- func (r *RCFGR) AtomicClearBits(mask CFGR)
- func (r *RCFGR) AtomicSetBits(mask CFGR)
- func (r *RCFGR) AtomicStoreBits(mask, b CFGR)
- func (r *RCFGR) Bits(mask CFGR) CFGR
- func (r *RCFGR) ClearBits(mask CFGR)
- func (r *RCFGR) Load() CFGR
- func (r *RCFGR) SetBits(mask CFGR)
- func (r *RCFGR) Store(b CFGR)
- func (r *RCFGR) StoreBits(mask, b CFGR)
- type RCR
- type RIER
- func (r *RIER) AtomicClearBits(mask IER)
- func (r *RIER) AtomicSetBits(mask IER)
- func (r *RIER) AtomicStoreBits(mask, b IER)
- func (r *RIER) Bits(mask IER) IER
- func (r *RIER) ClearBits(mask IER)
- func (r *RIER) Load() IER
- func (r *RIER) SetBits(mask IER)
- func (r *RIER) Store(b IER)
- func (r *RIER) StoreBits(mask, b IER)
- type RISR
- func (r *RISR) AtomicClearBits(mask ISR)
- func (r *RISR) AtomicSetBits(mask ISR)
- func (r *RISR) AtomicStoreBits(mask, b ISR)
- func (r *RISR) Bits(mask ISR) ISR
- func (r *RISR) ClearBits(mask ISR)
- func (r *RISR) Load() ISR
- func (r *RISR) SetBits(mask ISR)
- func (r *RISR) Store(b ISR)
- func (r *RISR) StoreBits(mask, b ISR)
- type RMCFGR
- type RMCR
- type RMIER
- type RMISR
- type RMRXDR
- type RMTXDR
- type RRXDR
- func (r *RRXDR) AtomicClearBits(mask RXDR)
- func (r *RRXDR) AtomicSetBits(mask RXDR)
- func (r *RRXDR) AtomicStoreBits(mask, b RXDR)
- func (r *RRXDR) Bits(mask RXDR) RXDR
- func (r *RRXDR) ClearBits(mask RXDR)
- func (r *RRXDR) Load() RXDR
- func (r *RRXDR) SetBits(mask RXDR)
- func (r *RRXDR) Store(b RXDR)
- func (r *RRXDR) StoreBits(mask, b RXDR)
- type RTXDR
- func (r *RTXDR) AtomicClearBits(mask TXDR)
- func (r *RTXDR) AtomicSetBits(mask TXDR)
- func (r *RTXDR) AtomicStoreBits(mask, b TXDR)
- func (r *RTXDR) Bits(mask TXDR) TXDR
- func (r *RTXDR) ClearBits(mask TXDR)
- func (r *RTXDR) Load() TXDR
- func (r *RTXDR) SetBits(mask TXDR)
- func (r *RTXDR) Store(b TXDR)
- func (r *RTXDR) StoreBits(mask, b TXDR)
- type RXDR
- type TXDR
Constants ¶
View Source
const ( CECENn = 0 TXSOMn = 1 TXEOMn = 2 )
View Source
const ( SFTn = 0 RXTOLn = 3 BRESTPn = 4 BREGENn = 5 LBPEGENn = 6 BRDNOGENn = 7 SFTOPTn = 8 OARn = 16 LSTNn = 31 )
View Source
const ( RXBRn = 0 RXENDn = 1 RXOVRn = 2 BREn = 3 SBPEn = 4 LBPEn = 5 RXACKEn = 6 ARBLSTn = 7 TXBRn = 8 TXENDn = 9 TXUDRn = 10 TXERRn = 11 TXACKEn = 12 )
View Source
const ( RXBRIEn = 0 RXENDIEn = 1 RXOVRIEn = 2 BREIEn = 3 SBPEIEn = 4 LBPEIEn = 5 RXACKEIEn = 6 ARBLSTIEn = 7 TXBRIEn = 8 TXENDIEn = 9 TXUDRIEn = 10 TXERRIEn = 11 TXACKEIEn = 12 )
View Source
const (
TXDn = 0
)
Variables ¶
View Source
var CEC = (*CEC_Periph)(unsafe.Pointer(uintptr(mmap.CEC_BASE)))
Functions ¶
This section is empty.
Types ¶
type CEC_Periph ¶
func (*CEC_Periph) ARBLST ¶
func (p *CEC_Periph) ARBLST() RMISR
func (*CEC_Periph) ARBLSTIE ¶
func (p *CEC_Periph) ARBLSTIE() RMIER
func (*CEC_Periph) BRDNOGEN ¶
func (p *CEC_Periph) BRDNOGEN() RMCFGR
func (*CEC_Periph) BRE ¶
func (p *CEC_Periph) BRE() RMISR
func (*CEC_Periph) BREGEN ¶
func (p *CEC_Periph) BREGEN() RMCFGR
func (*CEC_Periph) BREIE ¶
func (p *CEC_Periph) BREIE() RMIER
func (*CEC_Periph) BRESTP ¶
func (p *CEC_Periph) BRESTP() RMCFGR
func (*CEC_Periph) BaseAddr ¶
func (p *CEC_Periph) BaseAddr() uintptr
func (*CEC_Periph) CECEN ¶
func (p *CEC_Periph) CECEN() RMCR
func (*CEC_Periph) LBPE ¶
func (p *CEC_Periph) LBPE() RMISR
func (*CEC_Periph) LBPEGEN ¶
func (p *CEC_Periph) LBPEGEN() RMCFGR
func (*CEC_Periph) LBPEIE ¶
func (p *CEC_Periph) LBPEIE() RMIER
func (*CEC_Periph) LSTN ¶
func (p *CEC_Periph) LSTN() RMCFGR
func (*CEC_Periph) OAR ¶
func (p *CEC_Periph) OAR() RMCFGR
func (*CEC_Periph) RXACKE ¶
func (p *CEC_Periph) RXACKE() RMISR
func (*CEC_Periph) RXACKEIE ¶
func (p *CEC_Periph) RXACKEIE() RMIER
func (*CEC_Periph) RXBR ¶
func (p *CEC_Periph) RXBR() RMISR
func (*CEC_Periph) RXBRIE ¶
func (p *CEC_Periph) RXBRIE() RMIER
func (*CEC_Periph) RXEND ¶
func (p *CEC_Periph) RXEND() RMISR
func (*CEC_Periph) RXENDIE ¶
func (p *CEC_Periph) RXENDIE() RMIER
func (*CEC_Periph) RXOVR ¶
func (p *CEC_Periph) RXOVR() RMISR
func (*CEC_Periph) RXOVRIE ¶
func (p *CEC_Periph) RXOVRIE() RMIER
func (*CEC_Periph) RXTOL ¶
func (p *CEC_Periph) RXTOL() RMCFGR
func (*CEC_Periph) SBPE ¶
func (p *CEC_Periph) SBPE() RMISR
func (*CEC_Periph) SBPEIE ¶
func (p *CEC_Periph) SBPEIE() RMIER
func (*CEC_Periph) SFT ¶
func (p *CEC_Periph) SFT() RMCFGR
func (*CEC_Periph) SFTOPT ¶
func (p *CEC_Periph) SFTOPT() RMCFGR
func (*CEC_Periph) TXACKE ¶
func (p *CEC_Periph) TXACKE() RMISR
func (*CEC_Periph) TXACKEIE ¶
func (p *CEC_Periph) TXACKEIE() RMIER
func (*CEC_Periph) TXBR ¶
func (p *CEC_Periph) TXBR() RMISR
func (*CEC_Periph) TXBRIE ¶
func (p *CEC_Periph) TXBRIE() RMIER
func (*CEC_Periph) TXD ¶
func (p *CEC_Periph) TXD() RMTXDR
func (*CEC_Periph) TXEND ¶
func (p *CEC_Periph) TXEND() RMISR
func (*CEC_Periph) TXENDIE ¶
func (p *CEC_Periph) TXENDIE() RMIER
func (*CEC_Periph) TXEOM ¶
func (p *CEC_Periph) TXEOM() RMCR
func (*CEC_Periph) TXERR ¶
func (p *CEC_Periph) TXERR() RMISR
func (*CEC_Periph) TXERRIE ¶
func (p *CEC_Periph) TXERRIE() RMIER
func (*CEC_Periph) TXSOM ¶
func (p *CEC_Periph) TXSOM() RMCR
func (*CEC_Periph) TXUDR ¶
func (p *CEC_Periph) TXUDR() RMISR
func (*CEC_Periph) TXUDRIE ¶
func (p *CEC_Periph) TXUDRIE() RMIER
type CFGR ¶
type CFGR uint32
const ( SFT CFGR = 0x07 << 0 //+ CEC Signal Free Time. RXTOL CFGR = 0x01 << 3 //+ CEC Tolerance. BRESTP CFGR = 0x01 << 4 //+ CEC Rx Stop. BREGEN CFGR = 0x01 << 5 //+ CEC Bit Rising Error generation. LBPEGEN CFGR = 0x01 << 6 //+ CEC Long Period Error generation. BRDNOGEN CFGR = 0x01 << 7 //+ CEC Broadcast no Error generation. SFTOPT CFGR = 0x01 << 8 //+ CEC Signal Free Time optional. OAR CFGR = 0x7FFF << 16 //+ CEC Own Address. LSTN CFGR = 0x01 << 31 //+ CEC Listen mode. )
type IER ¶
type IER uint32
const ( RXBRIE IER = 0x01 << 0 //+ CEC Rx-Byte Received IT Enable. RXENDIE IER = 0x01 << 1 //+ CEC End Of Reception IT Enable. RXOVRIE IER = 0x01 << 2 //+ CEC Rx-Overrun IT Enable. BREIE IER = 0x01 << 3 //+ CEC Rx Bit Rising Error IT Enable. SBPEIE IER = 0x01 << 4 //+ CEC Rx Short Bit period Error IT Enable. LBPEIE IER = 0x01 << 5 //+ CEC Rx Long Bit period Error IT Enable. RXACKEIE IER = 0x01 << 6 //+ CEC Rx Missing Acknowledge IT Enable. ARBLSTIE IER = 0x01 << 7 //+ CEC Arbitration Lost IT Enable. TXBRIE IER = 0x01 << 8 //+ CEC Tx Byte Request IT Enable. TXENDIE IER = 0x01 << 9 //+ CEC End of Transmission IT Enable. TXUDRIE IER = 0x01 << 10 //+ CEC Tx-Buffer Underrun IT Enable. TXERRIE IER = 0x01 << 11 //+ CEC Tx-Error IT Enable. TXACKEIE IER = 0x01 << 12 //+ CEC Tx Missing Acknowledge IT Enable. )
type ISR ¶
type ISR uint32
const ( RXBR ISR = 0x01 << 0 //+ CEC Rx-Byte Received. RXEND ISR = 0x01 << 1 //+ CEC End Of Reception. RXOVR ISR = 0x01 << 2 //+ CEC Rx-Overrun. BRE ISR = 0x01 << 3 //+ CEC Rx Bit Rising Error. SBPE ISR = 0x01 << 4 //+ CEC Rx Short Bit period Error. LBPE ISR = 0x01 << 5 //+ CEC Rx Long Bit period Error. RXACKE ISR = 0x01 << 6 //+ CEC Rx Missing Acknowledge. ARBLST ISR = 0x01 << 7 //+ CEC Arbitration Lost. TXBR ISR = 0x01 << 8 //+ CEC Tx Byte Request. TXEND ISR = 0x01 << 9 //+ CEC End of Transmission. TXUDR ISR = 0x01 << 10 //+ CEC Tx-Buffer Underrun. TXERR ISR = 0x01 << 11 //+ CEC Tx-Error. TXACKE ISR = 0x01 << 12 //+ CEC Tx Missing Acknowledge. )
type RCFGR ¶
func (*RCFGR) AtomicClearBits ¶
func (*RCFGR) AtomicSetBits ¶
func (*RCFGR) AtomicStoreBits ¶
type RIER ¶
func (*RIER) AtomicClearBits ¶
func (*RIER) AtomicSetBits ¶
func (*RIER) AtomicStoreBits ¶
type RISR ¶
func (*RISR) AtomicClearBits ¶
func (*RISR) AtomicSetBits ¶
func (*RISR) AtomicStoreBits ¶
type RRXDR ¶
func (*RRXDR) AtomicClearBits ¶
func (*RRXDR) AtomicSetBits ¶
func (*RRXDR) AtomicStoreBits ¶
type RTXDR ¶
func (*RTXDR) AtomicClearBits ¶
func (*RTXDR) AtomicSetBits ¶
func (*RTXDR) AtomicStoreBits ¶
Click to show internal directories.
Click to hide internal directories.