cec

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

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

Functions

This section is empty.

Types

type CEC_Periph

type CEC_Periph struct {
	CR   RCR
	CFGR RCFGR
	TXDR RTXDR
	RXDR RRXDR
	ISR  RISR
	IER  RIER
}

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

func (CFGR) Field

func (b CFGR) Field(mask CFGR) int

func (CFGR) J

func (mask CFGR) J(v int) CFGR

type CR

type CR uint32
const (
	CECEN CR = 0x01 << 0 //+ CEC Enable.
	TXSOM CR = 0x01 << 1 //+ CEC Tx Start Of Message.
	TXEOM CR = 0x01 << 2 //+ CEC Tx End Of Message.
)

func (CR) Field

func (b CR) Field(mask CR) int

func (CR) J

func (mask CR) J(v int) CR

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

func (IER) Field

func (b IER) Field(mask IER) int

func (IER) J

func (mask IER) J(v int) IER

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

func (ISR) Field

func (b ISR) Field(mask ISR) int

func (ISR) J

func (mask ISR) J(v int) ISR

type RCFGR

type RCFGR struct{ mmio.U32 }

func (*RCFGR) AtomicClearBits

func (r *RCFGR) AtomicClearBits(mask CFGR)

func (*RCFGR) AtomicSetBits

func (r *RCFGR) AtomicSetBits(mask CFGR)

func (*RCFGR) AtomicStoreBits

func (r *RCFGR) AtomicStoreBits(mask, b CFGR)

func (*RCFGR) Bits

func (r *RCFGR) Bits(mask CFGR) CFGR

func (*RCFGR) ClearBits

func (r *RCFGR) ClearBits(mask CFGR)

func (*RCFGR) Load

func (r *RCFGR) Load() CFGR

func (*RCFGR) SetBits

func (r *RCFGR) SetBits(mask CFGR)

func (*RCFGR) Store

func (r *RCFGR) Store(b CFGR)

func (*RCFGR) StoreBits

func (r *RCFGR) StoreBits(mask, b CFGR)

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 RIER

type RIER struct{ mmio.U32 }

func (*RIER) AtomicClearBits

func (r *RIER) AtomicClearBits(mask IER)

func (*RIER) AtomicSetBits

func (r *RIER) AtomicSetBits(mask IER)

func (*RIER) AtomicStoreBits

func (r *RIER) AtomicStoreBits(mask, b IER)

func (*RIER) Bits

func (r *RIER) Bits(mask IER) IER

func (*RIER) ClearBits

func (r *RIER) ClearBits(mask IER)

func (*RIER) Load

func (r *RIER) Load() IER

func (*RIER) SetBits

func (r *RIER) SetBits(mask IER)

func (*RIER) Store

func (r *RIER) Store(b IER)

func (*RIER) StoreBits

func (r *RIER) StoreBits(mask, b IER)

type RISR

type RISR struct{ mmio.U32 }

func (*RISR) AtomicClearBits

func (r *RISR) AtomicClearBits(mask ISR)

func (*RISR) AtomicSetBits

func (r *RISR) AtomicSetBits(mask ISR)

func (*RISR) AtomicStoreBits

func (r *RISR) AtomicStoreBits(mask, b ISR)

func (*RISR) Bits

func (r *RISR) Bits(mask ISR) ISR

func (*RISR) ClearBits

func (r *RISR) ClearBits(mask ISR)

func (*RISR) Load

func (r *RISR) Load() ISR

func (*RISR) SetBits

func (r *RISR) SetBits(mask ISR)

func (*RISR) Store

func (r *RISR) Store(b ISR)

func (*RISR) StoreBits

func (r *RISR) StoreBits(mask, b ISR)

type RMCFGR

type RMCFGR struct{ mmio.UM32 }

func (RMCFGR) Load

func (rm RMCFGR) Load() CFGR

func (RMCFGR) Store

func (rm RMCFGR) Store(b CFGR)

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 RMIER

type RMIER struct{ mmio.UM32 }

func (RMIER) Load

func (rm RMIER) Load() IER

func (RMIER) Store

func (rm RMIER) Store(b IER)

type RMISR

type RMISR struct{ mmio.UM32 }

func (RMISR) Load

func (rm RMISR) Load() ISR

func (RMISR) Store

func (rm RMISR) Store(b ISR)

type RMRXDR

type RMRXDR struct{ mmio.UM32 }

func (RMRXDR) Load

func (rm RMRXDR) Load() RXDR

func (RMRXDR) Store

func (rm RMRXDR) Store(b RXDR)

type RMTXDR

type RMTXDR struct{ mmio.UM32 }

func (RMTXDR) Load

func (rm RMTXDR) Load() TXDR

func (RMTXDR) Store

func (rm RMTXDR) Store(b TXDR)

type RRXDR

type RRXDR struct{ mmio.U32 }

func (*RRXDR) AtomicClearBits

func (r *RRXDR) AtomicClearBits(mask RXDR)

func (*RRXDR) AtomicSetBits

func (r *RRXDR) AtomicSetBits(mask RXDR)

func (*RRXDR) AtomicStoreBits

func (r *RRXDR) AtomicStoreBits(mask, b RXDR)

func (*RRXDR) Bits

func (r *RRXDR) Bits(mask RXDR) RXDR

func (*RRXDR) ClearBits

func (r *RRXDR) ClearBits(mask RXDR)

func (*RRXDR) Load

func (r *RRXDR) Load() RXDR

func (*RRXDR) SetBits

func (r *RRXDR) SetBits(mask RXDR)

func (*RRXDR) Store

func (r *RRXDR) Store(b RXDR)

func (*RRXDR) StoreBits

func (r *RRXDR) StoreBits(mask, b RXDR)

type RTXDR

type RTXDR struct{ mmio.U32 }

func (*RTXDR) AtomicClearBits

func (r *RTXDR) AtomicClearBits(mask TXDR)

func (*RTXDR) AtomicSetBits

func (r *RTXDR) AtomicSetBits(mask TXDR)

func (*RTXDR) AtomicStoreBits

func (r *RTXDR) AtomicStoreBits(mask, b TXDR)

func (*RTXDR) Bits

func (r *RTXDR) Bits(mask TXDR) TXDR

func (*RTXDR) ClearBits

func (r *RTXDR) ClearBits(mask TXDR)

func (*RTXDR) Load

func (r *RTXDR) Load() TXDR

func (*RTXDR) SetBits

func (r *RTXDR) SetBits(mask TXDR)

func (*RTXDR) Store

func (r *RTXDR) Store(b TXDR)

func (*RTXDR) StoreBits

func (r *RTXDR) StoreBits(mask, b TXDR)

type RXDR

type RXDR uint32

func (RXDR) Field

func (b RXDR) Field(mask RXDR) int

func (RXDR) J

func (mask RXDR) J(v int) RXDR

type TXDR

type TXDR uint32
const (
	TXD TXDR = 0xFF << 0 //+ CEC Tx Data.
	RXD TXDR = 0xFF << 0 //  CEC Rx Data.
)

func (TXDR) Field

func (b TXDR) Field(mask TXDR) int

func (TXDR) J

func (mask TXDR) J(v int) TXDR

Jump to

Keyboard shortcuts

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