Documentation
¶
Overview ¶
Package crc provides interface to CRC calculation unit.
Peripheral: CRC_Periph CRC calculation unit. Instances:
CRC mmap.CRC_BASE
Registers:
0x00 32 DR Data register. 0x04 8 IDR Independent data register. 0x08 32 CR Control register. 0x10 32 INIT Initial CRC value register. 0x14 32 POL Polynomial register.
Import:
stm32/o/l476xx/mmap
Index ¶
- Constants
- Variables
- type CR
- type CRC_Periph
- type DR
- type IDR
- type INIT
- type POL
- type RCR
- type RDR
- type RIDR
- type RINIT
- func (r *RINIT) AtomicClearBits(mask INIT)
- func (r *RINIT) AtomicSetBits(mask INIT)
- func (r *RINIT) AtomicStoreBits(mask, b INIT)
- func (r *RINIT) Bits(mask INIT) INIT
- func (r *RINIT) ClearBits(mask INIT)
- func (r *RINIT) Load() INIT
- func (r *RINIT) SetBits(mask INIT)
- func (r *RINIT) Store(b INIT)
- func (r *RINIT) StoreBits(mask, b INIT)
- type RMCR
- type RMDR
- type RMIDR
- type RMINIT
- type RMPOL
- type RPOL
- func (r *RPOL) AtomicClearBits(mask POL)
- func (r *RPOL) AtomicSetBits(mask POL)
- func (r *RPOL) AtomicStoreBits(mask, b POL)
- func (r *RPOL) Bits(mask POL) POL
- func (r *RPOL) ClearBits(mask POL)
- func (r *RPOL) Load() POL
- func (r *RPOL) SetBits(mask POL)
- func (r *RPOL) Store(b POL)
- func (r *RPOL) StoreBits(mask, b POL)
Constants ¶
View Source
const ( RESETn = 0 POLYSIZEn = 3 REV_INn = 5 REV_OUTn = 7 )
Variables ¶
View Source
var CRC = (*CRC_Periph)(unsafe.Pointer(uintptr(mmap.CRC_BASE)))
Functions ¶
This section is empty.
Types ¶
type CRC_Periph ¶
type CRC_Periph struct { DR RDR IDR RIDR CR RCR INIT RINIT POL RPOL // contains filtered or unexported fields }
func (*CRC_Periph) BaseAddr ¶
func (p *CRC_Periph) BaseAddr() uintptr
func (*CRC_Periph) POLYSIZE ¶
func (p *CRC_Periph) POLYSIZE() RMCR
func (*CRC_Periph) RESET ¶
func (p *CRC_Periph) RESET() RMCR
func (*CRC_Periph) REV_IN ¶
func (p *CRC_Periph) REV_IN() RMCR
func (*CRC_Periph) REV_OUT ¶
func (p *CRC_Periph) REV_OUT() RMCR
type RINIT ¶
func (*RINIT) AtomicClearBits ¶
func (*RINIT) AtomicSetBits ¶
func (*RINIT) AtomicStoreBits ¶
type RPOL ¶
func (*RPOL) AtomicClearBits ¶
func (*RPOL) AtomicSetBits ¶
func (*RPOL) AtomicStoreBits ¶
Click to show internal directories.
Click to hide internal directories.