Documentation ¶
Overview ¶
Package cec provides interface to Consumer Electronics Control (CEC).
Peripheral: CEC_Periph Consumer Electronics Control (CEC). Instances:
CEC mmap.CEC_BASE
Registers:
0x00 32 CFGR 0x04 32 OAR 0x08 32 PRES 0x0C 32 ESR 0x10 32 CSR 0x14 32 TXD 0x18 32 RXD
Import:
stm32/o/f10x_md/mmap
Index ¶
- Constants
- Variables
- type CEC_Periph
- func (p *CEC_Periph) ACKE() RMESR
- func (p *CEC_Periph) BPE() RMESR
- func (p *CEC_Periph) BPEM() RMCFGR
- func (p *CEC_Periph) BTE() RMESR
- func (p *CEC_Periph) BTEM() RMCFGR
- func (p *CEC_Periph) BaseAddr() uintptr
- func (p *CEC_Periph) IE() RMCFGR
- func (p *CEC_Periph) LINE() RMESR
- func (p *CEC_Periph) OA() RMOAR
- func (p *CEC_Periph) PE() RMCFGR
- func (p *CEC_Periph) RBTF() RMCSR
- func (p *CEC_Periph) RBTFE() RMESR
- func (p *CEC_Periph) REOM() RMCSR
- func (p *CEC_Periph) RERR() RMCSR
- func (p *CEC_Periph) RSOM() RMCSR
- func (p *CEC_Periph) SBE() RMESR
- func (p *CEC_Periph) TBTFE() RMESR
- func (p *CEC_Periph) TBTRF() RMCSR
- func (p *CEC_Periph) TEOM() RMCSR
- func (p *CEC_Periph) TERR() RMCSR
- func (p *CEC_Periph) TSOM() RMCSR
- type CFGR
- type CSR
- type ESR
- type OAR
- type PRES
- 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 RCSR
- func (r *RCSR) AtomicClearBits(mask CSR)
- func (r *RCSR) AtomicSetBits(mask CSR)
- func (r *RCSR) AtomicStoreBits(mask, b CSR)
- func (r *RCSR) Bits(mask CSR) CSR
- func (r *RCSR) ClearBits(mask CSR)
- func (r *RCSR) Load() CSR
- func (r *RCSR) SetBits(mask CSR)
- func (r *RCSR) Store(b CSR)
- func (r *RCSR) StoreBits(mask, b CSR)
- type RESR
- func (r *RESR) AtomicClearBits(mask ESR)
- func (r *RESR) AtomicSetBits(mask ESR)
- func (r *RESR) AtomicStoreBits(mask, b ESR)
- func (r *RESR) Bits(mask ESR) ESR
- func (r *RESR) ClearBits(mask ESR)
- func (r *RESR) Load() ESR
- func (r *RESR) SetBits(mask ESR)
- func (r *RESR) Store(b ESR)
- func (r *RESR) StoreBits(mask, b ESR)
- type RMCFGR
- type RMCSR
- type RMESR
- type RMOAR
- type RMPRES
- type RMRXD
- type RMTXD
- type ROAR
- func (r *ROAR) AtomicClearBits(mask OAR)
- func (r *ROAR) AtomicSetBits(mask OAR)
- func (r *ROAR) AtomicStoreBits(mask, b OAR)
- func (r *ROAR) Bits(mask OAR) OAR
- func (r *ROAR) ClearBits(mask OAR)
- func (r *ROAR) Load() OAR
- func (r *ROAR) SetBits(mask OAR)
- func (r *ROAR) Store(b OAR)
- func (r *ROAR) StoreBits(mask, b OAR)
- type RPRES
- func (r *RPRES) AtomicClearBits(mask PRES)
- func (r *RPRES) AtomicSetBits(mask PRES)
- func (r *RPRES) AtomicStoreBits(mask, b PRES)
- func (r *RPRES) Bits(mask PRES) PRES
- func (r *RPRES) ClearBits(mask PRES)
- func (r *RPRES) Load() PRES
- func (r *RPRES) SetBits(mask PRES)
- func (r *RPRES) Store(b PRES)
- func (r *RPRES) StoreBits(mask, b PRES)
- type RRXD
- func (r *RRXD) AtomicClearBits(mask RXD)
- func (r *RRXD) AtomicSetBits(mask RXD)
- func (r *RRXD) AtomicStoreBits(mask, b RXD)
- func (r *RRXD) Bits(mask RXD) RXD
- func (r *RRXD) ClearBits(mask RXD)
- func (r *RRXD) Load() RXD
- func (r *RRXD) SetBits(mask RXD)
- func (r *RRXD) Store(b RXD)
- func (r *RRXD) StoreBits(mask, b RXD)
- type RTXD
- func (r *RTXD) AtomicClearBits(mask TXD)
- func (r *RTXD) AtomicSetBits(mask TXD)
- func (r *RTXD) AtomicStoreBits(mask, b TXD)
- func (r *RTXD) Bits(mask TXD) TXD
- func (r *RTXD) ClearBits(mask TXD)
- func (r *RTXD) Load() TXD
- func (r *RTXD) SetBits(mask TXD)
- func (r *RTXD) Store(b TXD)
- func (r *RTXD) StoreBits(mask, b TXD)
- type RXD
- type TXD
Constants ¶
View Source
const ( PEn = 0 IEn = 1 BTEMn = 2 BPEMn = 3 )
View Source
const ( BTEn = 0 BPEn = 1 RBTFEn = 2 SBEn = 3 ACKEn = 4 LINEn = 5 TBTFEn = 6 )
View Source
const ( TSOMn = 0 TEOMn = 1 TERRn = 2 TBTRFn = 3 RSOMn = 4 REOMn = 5 RERRn = 6 RBTFn = 7 )
View Source
const (
OAn = 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) ACKE ¶
func (p *CEC_Periph) ACKE() RMESR
func (*CEC_Periph) BPE ¶
func (p *CEC_Periph) BPE() RMESR
func (*CEC_Periph) BPEM ¶
func (p *CEC_Periph) BPEM() RMCFGR
func (*CEC_Periph) BTE ¶
func (p *CEC_Periph) BTE() RMESR
func (*CEC_Periph) BTEM ¶
func (p *CEC_Periph) BTEM() RMCFGR
func (*CEC_Periph) BaseAddr ¶
func (p *CEC_Periph) BaseAddr() uintptr
func (*CEC_Periph) IE ¶
func (p *CEC_Periph) IE() RMCFGR
func (*CEC_Periph) LINE ¶
func (p *CEC_Periph) LINE() RMESR
func (*CEC_Periph) OA ¶
func (p *CEC_Periph) OA() RMOAR
func (*CEC_Periph) PE ¶
func (p *CEC_Periph) PE() RMCFGR
func (*CEC_Periph) RBTF ¶
func (p *CEC_Periph) RBTF() RMCSR
func (*CEC_Periph) RBTFE ¶
func (p *CEC_Periph) RBTFE() RMESR
func (*CEC_Periph) REOM ¶
func (p *CEC_Periph) REOM() RMCSR
func (*CEC_Periph) RERR ¶
func (p *CEC_Periph) RERR() RMCSR
func (*CEC_Periph) RSOM ¶
func (p *CEC_Periph) RSOM() RMCSR
func (*CEC_Periph) SBE ¶
func (p *CEC_Periph) SBE() RMESR
func (*CEC_Periph) TBTFE ¶
func (p *CEC_Periph) TBTFE() RMESR
func (*CEC_Periph) TBTRF ¶
func (p *CEC_Periph) TBTRF() RMCSR
func (*CEC_Periph) TEOM ¶
func (p *CEC_Periph) TEOM() RMCSR
func (*CEC_Periph) TERR ¶
func (p *CEC_Periph) TERR() RMCSR
func (*CEC_Periph) TSOM ¶
func (p *CEC_Periph) TSOM() RMCSR
type CSR ¶
type CSR uint32
const ( TSOM CSR = 0x01 << 0 //+ Tx Start Of Message. TEOM CSR = 0x01 << 1 //+ Tx End Of Message. TERR CSR = 0x01 << 2 //+ Tx Error. TBTRF CSR = 0x01 << 3 //+ Tx Byte Transfer Request or Block Transfer Finished. RSOM CSR = 0x01 << 4 //+ Rx Start Of Message. REOM CSR = 0x01 << 5 //+ Rx End Of Message. RERR CSR = 0x01 << 6 //+ Rx Error. RBTF CSR = 0x01 << 7 //+ Rx Block Transfer Finished. )
type ESR ¶
type ESR uint32
const ( BTE ESR = 0x01 << 0 //+ Bit Timing Error. BPE ESR = 0x01 << 1 //+ Bit Period Error. RBTFE ESR = 0x01 << 2 //+ Rx Block Transfer Finished Error. SBE ESR = 0x01 << 3 //+ Start Bit Error. ACKE ESR = 0x01 << 4 //+ Block Acknowledge Error. LINE ESR = 0x01 << 5 //+ Line Error. TBTFE ESR = 0x01 << 6 //+ Tx Block Transfer Finished Error. )
type RCFGR ¶
func (*RCFGR) AtomicClearBits ¶
func (*RCFGR) AtomicSetBits ¶
func (*RCFGR) AtomicStoreBits ¶
type RCSR ¶
func (*RCSR) AtomicClearBits ¶
func (*RCSR) AtomicSetBits ¶
func (*RCSR) AtomicStoreBits ¶
type RESR ¶
func (*RESR) AtomicClearBits ¶
func (*RESR) AtomicSetBits ¶
func (*RESR) AtomicStoreBits ¶
type ROAR ¶
func (*ROAR) AtomicClearBits ¶
func (*ROAR) AtomicSetBits ¶
func (*ROAR) AtomicStoreBits ¶
type RPRES ¶
func (*RPRES) AtomicClearBits ¶
func (*RPRES) AtomicSetBits ¶
func (*RPRES) AtomicStoreBits ¶
type RRXD ¶
func (*RRXD) AtomicClearBits ¶
func (*RRXD) AtomicSetBits ¶
func (*RRXD) AtomicStoreBits ¶
type RTXD ¶
func (*RTXD) AtomicClearBits ¶
func (*RTXD) AtomicSetBits ¶
func (*RTXD) AtomicStoreBits ¶
Click to show internal directories.
Click to hide internal directories.