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

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

Functions

This section is empty.

Types

type CEC_Periph

type CEC_Periph struct {
	CFGR RCFGR
	OAR  ROAR
	PRES RPRES
	ESR  RESR
	CSR  RCSR
	TXD  RTXD
	RXD  RRXD
}

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 CFGR

type CFGR uint32
const (
	PE   CFGR = 0x01 << 0 //+ Peripheral Enable.
	IE   CFGR = 0x01 << 1 //+ Interrupt Enable.
	BTEM CFGR = 0x01 << 2 //+ Bit Timing Error Mode.
	BPEM CFGR = 0x01 << 3 //+ Bit Period Error Mode.
)

func (CFGR) Field

func (b CFGR) Field(mask CFGR) int

func (CFGR) J

func (mask CFGR) J(v int) CFGR

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

func (CSR) Field

func (b CSR) Field(mask CSR) int

func (CSR) J

func (mask CSR) J(v int) CSR

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

func (ESR) Field

func (b ESR) Field(mask ESR) int

func (ESR) J

func (mask ESR) J(v int) ESR

type OAR

type OAR uint32
const (
	OA   OAR = 0x0F << 0 //+ OA[3:0]: Own Address.
	OA_0 OAR = 0x01 << 0 //  Bit 0.
	OA_1 OAR = 0x02 << 0 //  Bit 1.
	OA_2 OAR = 0x04 << 0 //  Bit 2.
	OA_3 OAR = 0x08 << 0 //  Bit 3.
)

func (OAR) Field

func (b OAR) Field(mask OAR) int

func (OAR) J

func (mask OAR) J(v int) OAR

type PRES

type PRES uint32

func (PRES) Field

func (b PRES) Field(mask PRES) int

func (PRES) J

func (mask PRES) J(v int) PRES

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 RCSR

type RCSR struct{ mmio.U32 }

func (*RCSR) AtomicClearBits

func (r *RCSR) AtomicClearBits(mask CSR)

func (*RCSR) AtomicSetBits

func (r *RCSR) AtomicSetBits(mask CSR)

func (*RCSR) AtomicStoreBits

func (r *RCSR) AtomicStoreBits(mask, b CSR)

func (*RCSR) Bits

func (r *RCSR) Bits(mask CSR) CSR

func (*RCSR) ClearBits

func (r *RCSR) ClearBits(mask CSR)

func (*RCSR) Load

func (r *RCSR) Load() CSR

func (*RCSR) SetBits

func (r *RCSR) SetBits(mask CSR)

func (*RCSR) Store

func (r *RCSR) Store(b CSR)

func (*RCSR) StoreBits

func (r *RCSR) StoreBits(mask, b CSR)

type RESR

type RESR struct{ mmio.U32 }

func (*RESR) AtomicClearBits

func (r *RESR) AtomicClearBits(mask ESR)

func (*RESR) AtomicSetBits

func (r *RESR) AtomicSetBits(mask ESR)

func (*RESR) AtomicStoreBits

func (r *RESR) AtomicStoreBits(mask, b ESR)

func (*RESR) Bits

func (r *RESR) Bits(mask ESR) ESR

func (*RESR) ClearBits

func (r *RESR) ClearBits(mask ESR)

func (*RESR) Load

func (r *RESR) Load() ESR

func (*RESR) SetBits

func (r *RESR) SetBits(mask ESR)

func (*RESR) Store

func (r *RESR) Store(b ESR)

func (*RESR) StoreBits

func (r *RESR) StoreBits(mask, b ESR)

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 RMCSR

type RMCSR struct{ mmio.UM32 }

func (RMCSR) Load

func (rm RMCSR) Load() CSR

func (RMCSR) Store

func (rm RMCSR) Store(b CSR)

type RMESR

type RMESR struct{ mmio.UM32 }

func (RMESR) Load

func (rm RMESR) Load() ESR

func (RMESR) Store

func (rm RMESR) Store(b ESR)

type RMOAR

type RMOAR struct{ mmio.UM32 }

func (RMOAR) Load

func (rm RMOAR) Load() OAR

func (RMOAR) Store

func (rm RMOAR) Store(b OAR)

type RMPRES

type RMPRES struct{ mmio.UM32 }

func (RMPRES) Load

func (rm RMPRES) Load() PRES

func (RMPRES) Store

func (rm RMPRES) Store(b PRES)

type RMRXD

type RMRXD struct{ mmio.UM32 }

func (RMRXD) Load

func (rm RMRXD) Load() RXD

func (RMRXD) Store

func (rm RMRXD) Store(b RXD)

type RMTXD

type RMTXD struct{ mmio.UM32 }

func (RMTXD) Load

func (rm RMTXD) Load() TXD

func (RMTXD) Store

func (rm RMTXD) Store(b TXD)

type ROAR

type ROAR struct{ mmio.U32 }

func (*ROAR) AtomicClearBits

func (r *ROAR) AtomicClearBits(mask OAR)

func (*ROAR) AtomicSetBits

func (r *ROAR) AtomicSetBits(mask OAR)

func (*ROAR) AtomicStoreBits

func (r *ROAR) AtomicStoreBits(mask, b OAR)

func (*ROAR) Bits

func (r *ROAR) Bits(mask OAR) OAR

func (*ROAR) ClearBits

func (r *ROAR) ClearBits(mask OAR)

func (*ROAR) Load

func (r *ROAR) Load() OAR

func (*ROAR) SetBits

func (r *ROAR) SetBits(mask OAR)

func (*ROAR) Store

func (r *ROAR) Store(b OAR)

func (*ROAR) StoreBits

func (r *ROAR) StoreBits(mask, b OAR)

type RPRES

type RPRES struct{ mmio.U32 }

func (*RPRES) AtomicClearBits

func (r *RPRES) AtomicClearBits(mask PRES)

func (*RPRES) AtomicSetBits

func (r *RPRES) AtomicSetBits(mask PRES)

func (*RPRES) AtomicStoreBits

func (r *RPRES) AtomicStoreBits(mask, b PRES)

func (*RPRES) Bits

func (r *RPRES) Bits(mask PRES) PRES

func (*RPRES) ClearBits

func (r *RPRES) ClearBits(mask PRES)

func (*RPRES) Load

func (r *RPRES) Load() PRES

func (*RPRES) SetBits

func (r *RPRES) SetBits(mask PRES)

func (*RPRES) Store

func (r *RPRES) Store(b PRES)

func (*RPRES) StoreBits

func (r *RPRES) StoreBits(mask, b PRES)

type RRXD

type RRXD struct{ mmio.U32 }

func (*RRXD) AtomicClearBits

func (r *RRXD) AtomicClearBits(mask RXD)

func (*RRXD) AtomicSetBits

func (r *RRXD) AtomicSetBits(mask RXD)

func (*RRXD) AtomicStoreBits

func (r *RRXD) AtomicStoreBits(mask, b RXD)

func (*RRXD) Bits

func (r *RRXD) Bits(mask RXD) RXD

func (*RRXD) ClearBits

func (r *RRXD) ClearBits(mask RXD)

func (*RRXD) Load

func (r *RRXD) Load() RXD

func (*RRXD) SetBits

func (r *RRXD) SetBits(mask RXD)

func (*RRXD) Store

func (r *RRXD) Store(b RXD)

func (*RRXD) StoreBits

func (r *RRXD) StoreBits(mask, b RXD)

type RTXD

type RTXD struct{ mmio.U32 }

func (*RTXD) AtomicClearBits

func (r *RTXD) AtomicClearBits(mask TXD)

func (*RTXD) AtomicSetBits

func (r *RTXD) AtomicSetBits(mask TXD)

func (*RTXD) AtomicStoreBits

func (r *RTXD) AtomicStoreBits(mask, b TXD)

func (*RTXD) Bits

func (r *RTXD) Bits(mask TXD) TXD

func (*RTXD) ClearBits

func (r *RTXD) ClearBits(mask TXD)

func (*RTXD) Load

func (r *RTXD) Load() TXD

func (*RTXD) SetBits

func (r *RTXD) SetBits(mask TXD)

func (*RTXD) Store

func (r *RTXD) Store(b TXD)

func (*RTXD) StoreBits

func (r *RTXD) StoreBits(mask, b TXD)

type RXD

type RXD uint32

func (RXD) Field

func (b RXD) Field(mask RXD) int

func (RXD) J

func (mask RXD) J(v int) RXD

type TXD

type TXD uint32

func (TXD) Field

func (b TXD) Field(mask TXD) int

func (TXD) J

func (mask TXD) J(v int) TXD

Jump to

Keyboard shortcuts

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