crc

package
v0.0.0-...-3d984ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

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.

Import:

stm32/o/f411xe/mmap

Index

Constants

View Source
const (
	RESETn = 0
)

Variables

Functions

This section is empty.

Types

type CR

type CR uint32
const (
	RESET CR = 0x01 << 0 //+ RESET bit.
)

func (CR) Field

func (b CR) Field(mask CR) int

func (CR) J

func (mask CR) J(v int) CR

type CRC_Periph

type CRC_Periph struct {
	DR  RDR
	IDR RIDR

	CR RCR
	// contains filtered or unexported fields
}

func (*CRC_Periph) BaseAddr

func (p *CRC_Periph) BaseAddr() uintptr

func (*CRC_Periph) RESET

func (p *CRC_Periph) RESET() RMCR

type DR

type DR uint32

func (DR) Field

func (b DR) Field(mask DR) int

func (DR) J

func (mask DR) J(v int) DR

type IDR

type IDR uint8

func (IDR) Field

func (b IDR) Field(mask IDR) int

func (IDR) J

func (mask IDR) J(v int) IDR

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 RDR

type RDR struct{ mmio.U32 }

func (*RDR) AtomicClearBits

func (r *RDR) AtomicClearBits(mask DR)

func (*RDR) AtomicSetBits

func (r *RDR) AtomicSetBits(mask DR)

func (*RDR) AtomicStoreBits

func (r *RDR) AtomicStoreBits(mask, b DR)

func (*RDR) Bits

func (r *RDR) Bits(mask DR) DR

func (*RDR) ClearBits

func (r *RDR) ClearBits(mask DR)

func (*RDR) Load

func (r *RDR) Load() DR

func (*RDR) SetBits

func (r *RDR) SetBits(mask DR)

func (*RDR) Store

func (r *RDR) Store(b DR)

func (*RDR) StoreBits

func (r *RDR) StoreBits(mask, b DR)

type RIDR

type RIDR struct{ mmio.U8 }

func (*RIDR) Bits

func (r *RIDR) Bits(mask IDR) IDR

func (*RIDR) ClearBits

func (r *RIDR) ClearBits(mask IDR)

func (*RIDR) Load

func (r *RIDR) Load() IDR

func (*RIDR) SetBits

func (r *RIDR) SetBits(mask IDR)

func (*RIDR) Store

func (r *RIDR) Store(b IDR)

func (*RIDR) StoreBits

func (r *RIDR) StoreBits(mask, b IDR)

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 RMDR

type RMDR struct{ mmio.UM32 }

func (RMDR) Load

func (rm RMDR) Load() DR

func (RMDR) Store

func (rm RMDR) Store(b DR)

type RMIDR

type RMIDR struct{ mmio.UM8 }

func (RMIDR) Load

func (rm RMIDR) Load() IDR

func (RMIDR) Store

func (rm RMIDR) Store(b IDR)

Jump to

Keyboard shortcuts

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