gpio

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 gpio provides interface to General Purpose I/O.

Peripheral: GPIO_Periph General Purpose I/O. Instances:

GPIOA  mmap.GPIOA_BASE
GPIOB  mmap.GPIOB_BASE
GPIOC  mmap.GPIOC_BASE
GPIOD  mmap.GPIOD_BASE
GPIOE  mmap.GPIOE_BASE
GPIOF  mmap.GPIOF_BASE
GPIOG  mmap.GPIOG_BASE
GPIOH  mmap.GPIOH_BASE

Registers:

0x00 32  MODER   Port mode register.
0x04 32  OTYPER  Port output type register.
0x08 32  OSPEEDR Port output speed register.
0x0C 32  PUPDR   Port pull-up/pull-down register.
0x10 32  IDR     Port input data register.
0x14 32  ODR     Port output data register.
0x18 32  BSRR    Port bit set/reset register.
0x1C 32  LCKR    Port configuration lock register.
0x20 32  AFR[2]  Alternate function registers.
0x28 32  BRR     Bit reset register.

Import:

stm32/o/f303xe/mmap

Index

Constants

View Source
const (
	MODER0n  = 0
	MODER1n  = 2
	MODER2n  = 4
	MODER3n  = 6
	MODER4n  = 8
	MODER5n  = 10
	MODER6n  = 12
	MODER7n  = 14
	MODER8n  = 16
	MODER9n  = 18
	MODER10n = 20
	MODER11n = 22
	MODER12n = 24
	MODER13n = 26
	MODER14n = 28
	MODER15n = 30
)
View Source
const (
	OT_0n  = 0
	OT_1n  = 1
	OT_2n  = 2
	OT_3n  = 3
	OT_4n  = 4
	OT_5n  = 5
	OT_6n  = 6
	OT_7n  = 7
	OT_8n  = 8
	OT_9n  = 9
	OT_10n = 10
	OT_11n = 11
	OT_12n = 12
	OT_13n = 13
	OT_14n = 14
	OT_15n = 15
)
View Source
const (
	PUPDR0n  = 0
	PUPDR1n  = 2
	PUPDR2n  = 4
	PUPDR3n  = 6
	PUPDR4n  = 8
	PUPDR5n  = 10
	PUPDR6n  = 12
	PUPDR7n  = 14
	PUPDR8n  = 16
	PUPDR9n  = 18
	PUPDR10n = 20
	PUPDR11n = 22
	PUPDR12n = 24
	PUPDR13n = 26
	PUPDR14n = 28
	PUPDR15n = 30
)
View Source
const (
	V0n  = 0
	V1n  = 1
	V2n  = 2
	V3n  = 3
	V4n  = 4
	V5n  = 5
	V6n  = 6
	V7n  = 7
	V8n  = 8
	V9n  = 9
	V10n = 10
	V11n = 11
	V12n = 12
	V13n = 13
	V14n = 14
	V15n = 15
)
View Source
const (
	V0n  = 0
	V1n  = 1
	V2n  = 2
	V3n  = 3
	V4n  = 4
	V5n  = 5
	V6n  = 6
	V7n  = 7
	V8n  = 8
	V9n  = 9
	V10n = 10
	V11n = 11
	V12n = 12
	V13n = 13
	V14n = 14
	V15n = 15
)
View Source
const (
	BS_0n  = 0
	BS_1n  = 1
	BS_2n  = 2
	BS_3n  = 3
	BS_4n  = 4
	BS_5n  = 5
	BS_6n  = 6
	BS_7n  = 7
	BS_8n  = 8
	BS_9n  = 9
	BS_10n = 10
	BS_11n = 11
	BS_12n = 12
	BS_13n = 13
	BS_14n = 14
	BS_15n = 15
	BR_0n  = 16
	BR_1n  = 17
	BR_2n  = 18
	BR_3n  = 19
	BR_4n  = 20
	BR_5n  = 21
	BR_6n  = 22
	BR_7n  = 23
	BR_8n  = 24
	BR_9n  = 25
	BR_10n = 26
	BR_11n = 27
	BR_12n = 28
	BR_13n = 29
	BR_14n = 30
	BR_15n = 31
)
View Source
const (
	LCK0n  = 0
	LCK1n  = 1
	LCK2n  = 2
	LCK3n  = 3
	LCK4n  = 4
	LCK5n  = 5
	LCK6n  = 6
	LCK7n  = 7
	LCK8n  = 8
	LCK9n  = 9
	LCK10n = 10
	LCK11n = 11
	LCK12n = 12
	LCK13n = 13
	LCK14n = 14
	LCK15n = 15
	LCKKn  = 16
)
View Source
const (
	BR_0n  = 0
	BR_1n  = 1
	BR_2n  = 2
	BR_3n  = 3
	BR_4n  = 4
	BR_5n  = 5
	BR_6n  = 6
	BR_7n  = 7
	BR_8n  = 8
	BR_9n  = 9
	BR_10n = 10
	BR_11n = 11
	BR_12n = 12
	BR_13n = 13
	BR_14n = 14
	BR_15n = 15
)

Variables

Functions

This section is empty.

Types

type AFR

type AFR uint32

func (AFR) Field

func (b AFR) Field(mask AFR) int

func (AFR) J

func (mask AFR) J(v int) AFR

type BRR

type BRR uint32
const (
	BR_0  BRR = 0x01 << 0  //+
	BR_1  BRR = 0x01 << 1  //+
	BR_2  BRR = 0x01 << 2  //+
	BR_3  BRR = 0x01 << 3  //+
	BR_4  BRR = 0x01 << 4  //+
	BR_5  BRR = 0x01 << 5  //+
	BR_6  BRR = 0x01 << 6  //+
	BR_7  BRR = 0x01 << 7  //+
	BR_8  BRR = 0x01 << 8  //+
	BR_9  BRR = 0x01 << 9  //+
	BR_10 BRR = 0x01 << 10 //+
	BR_11 BRR = 0x01 << 11 //+
	BR_12 BRR = 0x01 << 12 //+
	BR_13 BRR = 0x01 << 13 //+
	BR_14 BRR = 0x01 << 14 //+
	BR_15 BRR = 0x01 << 15 //+
)

func (BRR) Field

func (b BRR) Field(mask BRR) int

func (BRR) J

func (mask BRR) J(v int) BRR

type BSRR

type BSRR uint32
const (
	BS_0  BSRR = 0x01 << 0  //+
	BS_1  BSRR = 0x01 << 1  //+
	BS_2  BSRR = 0x01 << 2  //+
	BS_3  BSRR = 0x01 << 3  //+
	BS_4  BSRR = 0x01 << 4  //+
	BS_5  BSRR = 0x01 << 5  //+
	BS_6  BSRR = 0x01 << 6  //+
	BS_7  BSRR = 0x01 << 7  //+
	BS_8  BSRR = 0x01 << 8  //+
	BS_9  BSRR = 0x01 << 9  //+
	BS_10 BSRR = 0x01 << 10 //+
	BS_11 BSRR = 0x01 << 11 //+
	BS_12 BSRR = 0x01 << 12 //+
	BS_13 BSRR = 0x01 << 13 //+
	BS_14 BSRR = 0x01 << 14 //+
	BS_15 BSRR = 0x01 << 15 //+
	BR_0  BSRR = 0x01 << 16 //+
	BR_1  BSRR = 0x01 << 17 //+
	BR_2  BSRR = 0x01 << 18 //+
	BR_3  BSRR = 0x01 << 19 //+
	BR_4  BSRR = 0x01 << 20 //+
	BR_5  BSRR = 0x01 << 21 //+
	BR_6  BSRR = 0x01 << 22 //+
	BR_7  BSRR = 0x01 << 23 //+
	BR_8  BSRR = 0x01 << 24 //+
	BR_9  BSRR = 0x01 << 25 //+
	BR_10 BSRR = 0x01 << 26 //+
	BR_11 BSRR = 0x01 << 27 //+
	BR_12 BSRR = 0x01 << 28 //+
	BR_13 BSRR = 0x01 << 29 //+
	BR_14 BSRR = 0x01 << 30 //+
	BR_15 BSRR = 0x01 << 31 //+
)

func (BSRR) Field

func (b BSRR) Field(mask BSRR) int

func (BSRR) J

func (mask BSRR) J(v int) BSRR

type GPIO_Periph

type GPIO_Periph struct {
	MODER   RMODER
	OTYPER  ROTYPER
	OSPEEDR ROSPEEDR
	PUPDR   RPUPDR
	IDR     RIDR
	ODR     RODR
	BSRR    RBSRR
	LCKR    RLCKR
	AFR     [2]RAFR
	BRR     RBRR
}

func (*GPIO_Periph) BR_0

func (p *GPIO_Periph) BR_0() RMBRR

func (*GPIO_Periph) BR_1

func (p *GPIO_Periph) BR_1() RMBRR

func (*GPIO_Periph) BR_10

func (p *GPIO_Periph) BR_10() RMBRR

func (*GPIO_Periph) BR_11

func (p *GPIO_Periph) BR_11() RMBRR

func (*GPIO_Periph) BR_12

func (p *GPIO_Periph) BR_12() RMBRR

func (*GPIO_Periph) BR_13

func (p *GPIO_Periph) BR_13() RMBRR

func (*GPIO_Periph) BR_14

func (p *GPIO_Periph) BR_14() RMBRR

func (*GPIO_Periph) BR_15

func (p *GPIO_Periph) BR_15() RMBRR

func (*GPIO_Periph) BR_2

func (p *GPIO_Periph) BR_2() RMBRR

func (*GPIO_Periph) BR_3

func (p *GPIO_Periph) BR_3() RMBRR

func (*GPIO_Periph) BR_4

func (p *GPIO_Periph) BR_4() RMBRR

func (*GPIO_Periph) BR_5

func (p *GPIO_Periph) BR_5() RMBRR

func (*GPIO_Periph) BR_6

func (p *GPIO_Periph) BR_6() RMBRR

func (*GPIO_Periph) BR_7

func (p *GPIO_Periph) BR_7() RMBRR

func (*GPIO_Periph) BR_8

func (p *GPIO_Periph) BR_8() RMBRR

func (*GPIO_Periph) BR_9

func (p *GPIO_Periph) BR_9() RMBRR

func (*GPIO_Periph) BS_0

func (p *GPIO_Periph) BS_0() RMBSRR

func (*GPIO_Periph) BS_1

func (p *GPIO_Periph) BS_1() RMBSRR

func (*GPIO_Periph) BS_10

func (p *GPIO_Periph) BS_10() RMBSRR

func (*GPIO_Periph) BS_11

func (p *GPIO_Periph) BS_11() RMBSRR

func (*GPIO_Periph) BS_12

func (p *GPIO_Periph) BS_12() RMBSRR

func (*GPIO_Periph) BS_13

func (p *GPIO_Periph) BS_13() RMBSRR

func (*GPIO_Periph) BS_14

func (p *GPIO_Periph) BS_14() RMBSRR

func (*GPIO_Periph) BS_15

func (p *GPIO_Periph) BS_15() RMBSRR

func (*GPIO_Periph) BS_2

func (p *GPIO_Periph) BS_2() RMBSRR

func (*GPIO_Periph) BS_3

func (p *GPIO_Periph) BS_3() RMBSRR

func (*GPIO_Periph) BS_4

func (p *GPIO_Periph) BS_4() RMBSRR

func (*GPIO_Periph) BS_5

func (p *GPIO_Periph) BS_5() RMBSRR

func (*GPIO_Periph) BS_6

func (p *GPIO_Periph) BS_6() RMBSRR

func (*GPIO_Periph) BS_7

func (p *GPIO_Periph) BS_7() RMBSRR

func (*GPIO_Periph) BS_8

func (p *GPIO_Periph) BS_8() RMBSRR

func (*GPIO_Periph) BS_9

func (p *GPIO_Periph) BS_9() RMBSRR

func (*GPIO_Periph) BaseAddr

func (p *GPIO_Periph) BaseAddr() uintptr

func (*GPIO_Periph) LCK0

func (p *GPIO_Periph) LCK0() RMLCKR

func (*GPIO_Periph) LCK1

func (p *GPIO_Periph) LCK1() RMLCKR

func (*GPIO_Periph) LCK10

func (p *GPIO_Periph) LCK10() RMLCKR

func (*GPIO_Periph) LCK11

func (p *GPIO_Periph) LCK11() RMLCKR

func (*GPIO_Periph) LCK12

func (p *GPIO_Periph) LCK12() RMLCKR

func (*GPIO_Periph) LCK13

func (p *GPIO_Periph) LCK13() RMLCKR

func (*GPIO_Periph) LCK14

func (p *GPIO_Periph) LCK14() RMLCKR

func (*GPIO_Periph) LCK15

func (p *GPIO_Periph) LCK15() RMLCKR

func (*GPIO_Periph) LCK2

func (p *GPIO_Periph) LCK2() RMLCKR

func (*GPIO_Periph) LCK3

func (p *GPIO_Periph) LCK3() RMLCKR

func (*GPIO_Periph) LCK4

func (p *GPIO_Periph) LCK4() RMLCKR

func (*GPIO_Periph) LCK5

func (p *GPIO_Periph) LCK5() RMLCKR

func (*GPIO_Periph) LCK6

func (p *GPIO_Periph) LCK6() RMLCKR

func (*GPIO_Periph) LCK7

func (p *GPIO_Periph) LCK7() RMLCKR

func (*GPIO_Periph) LCK8

func (p *GPIO_Periph) LCK8() RMLCKR

func (*GPIO_Periph) LCK9

func (p *GPIO_Periph) LCK9() RMLCKR

func (*GPIO_Periph) LCKK

func (p *GPIO_Periph) LCKK() RMLCKR

func (*GPIO_Periph) MODER0

func (p *GPIO_Periph) MODER0() RMMODER

func (*GPIO_Periph) MODER1

func (p *GPIO_Periph) MODER1() RMMODER

func (*GPIO_Periph) MODER10

func (p *GPIO_Periph) MODER10() RMMODER

func (*GPIO_Periph) MODER11

func (p *GPIO_Periph) MODER11() RMMODER

func (*GPIO_Periph) MODER12

func (p *GPIO_Periph) MODER12() RMMODER

func (*GPIO_Periph) MODER13

func (p *GPIO_Periph) MODER13() RMMODER

func (*GPIO_Periph) MODER14

func (p *GPIO_Periph) MODER14() RMMODER

func (*GPIO_Periph) MODER15

func (p *GPIO_Periph) MODER15() RMMODER

func (*GPIO_Periph) MODER2

func (p *GPIO_Periph) MODER2() RMMODER

func (*GPIO_Periph) MODER3

func (p *GPIO_Periph) MODER3() RMMODER

func (*GPIO_Periph) MODER4

func (p *GPIO_Periph) MODER4() RMMODER

func (*GPIO_Periph) MODER5

func (p *GPIO_Periph) MODER5() RMMODER

func (*GPIO_Periph) MODER6

func (p *GPIO_Periph) MODER6() RMMODER

func (*GPIO_Periph) MODER7

func (p *GPIO_Periph) MODER7() RMMODER

func (*GPIO_Periph) MODER8

func (p *GPIO_Periph) MODER8() RMMODER

func (*GPIO_Periph) MODER9

func (p *GPIO_Periph) MODER9() RMMODER

func (*GPIO_Periph) OT_0

func (p *GPIO_Periph) OT_0() RMOTYPER

func (*GPIO_Periph) OT_1

func (p *GPIO_Periph) OT_1() RMOTYPER

func (*GPIO_Periph) OT_10

func (p *GPIO_Periph) OT_10() RMOTYPER

func (*GPIO_Periph) OT_11

func (p *GPIO_Periph) OT_11() RMOTYPER

func (*GPIO_Periph) OT_12

func (p *GPIO_Periph) OT_12() RMOTYPER

func (*GPIO_Periph) OT_13

func (p *GPIO_Periph) OT_13() RMOTYPER

func (*GPIO_Periph) OT_14

func (p *GPIO_Periph) OT_14() RMOTYPER

func (*GPIO_Periph) OT_15

func (p *GPIO_Periph) OT_15() RMOTYPER

func (*GPIO_Periph) OT_2

func (p *GPIO_Periph) OT_2() RMOTYPER

func (*GPIO_Periph) OT_3

func (p *GPIO_Periph) OT_3() RMOTYPER

func (*GPIO_Periph) OT_4

func (p *GPIO_Periph) OT_4() RMOTYPER

func (*GPIO_Periph) OT_5

func (p *GPIO_Periph) OT_5() RMOTYPER

func (*GPIO_Periph) OT_6

func (p *GPIO_Periph) OT_6() RMOTYPER

func (*GPIO_Periph) OT_7

func (p *GPIO_Periph) OT_7() RMOTYPER

func (*GPIO_Periph) OT_8

func (p *GPIO_Periph) OT_8() RMOTYPER

func (*GPIO_Periph) OT_9

func (p *GPIO_Periph) OT_9() RMOTYPER

func (*GPIO_Periph) PUPDR0

func (p *GPIO_Periph) PUPDR0() RMPUPDR

func (*GPIO_Periph) PUPDR1

func (p *GPIO_Periph) PUPDR1() RMPUPDR

func (*GPIO_Periph) PUPDR10

func (p *GPIO_Periph) PUPDR10() RMPUPDR

func (*GPIO_Periph) PUPDR11

func (p *GPIO_Periph) PUPDR11() RMPUPDR

func (*GPIO_Periph) PUPDR12

func (p *GPIO_Periph) PUPDR12() RMPUPDR

func (*GPIO_Periph) PUPDR13

func (p *GPIO_Periph) PUPDR13() RMPUPDR

func (*GPIO_Periph) PUPDR14

func (p *GPIO_Periph) PUPDR14() RMPUPDR

func (*GPIO_Periph) PUPDR15

func (p *GPIO_Periph) PUPDR15() RMPUPDR

func (*GPIO_Periph) PUPDR2

func (p *GPIO_Periph) PUPDR2() RMPUPDR

func (*GPIO_Periph) PUPDR3

func (p *GPIO_Periph) PUPDR3() RMPUPDR

func (*GPIO_Periph) PUPDR4

func (p *GPIO_Periph) PUPDR4() RMPUPDR

func (*GPIO_Periph) PUPDR5

func (p *GPIO_Periph) PUPDR5() RMPUPDR

func (*GPIO_Periph) PUPDR6

func (p *GPIO_Periph) PUPDR6() RMPUPDR

func (*GPIO_Periph) PUPDR7

func (p *GPIO_Periph) PUPDR7() RMPUPDR

func (*GPIO_Periph) PUPDR8

func (p *GPIO_Periph) PUPDR8() RMPUPDR

func (*GPIO_Periph) PUPDR9

func (p *GPIO_Periph) PUPDR9() RMPUPDR

func (*GPIO_Periph) V0

func (p *GPIO_Periph) V0() RMODR

func (*GPIO_Periph) V1

func (p *GPIO_Periph) V1() RMODR

func (*GPIO_Periph) V10

func (p *GPIO_Periph) V10() RMODR

func (*GPIO_Periph) V11

func (p *GPIO_Periph) V11() RMODR

func (*GPIO_Periph) V12

func (p *GPIO_Periph) V12() RMODR

func (*GPIO_Periph) V13

func (p *GPIO_Periph) V13() RMODR

func (*GPIO_Periph) V14

func (p *GPIO_Periph) V14() RMODR

func (*GPIO_Periph) V15

func (p *GPIO_Periph) V15() RMODR

func (*GPIO_Periph) V2

func (p *GPIO_Periph) V2() RMODR

func (*GPIO_Periph) V3

func (p *GPIO_Periph) V3() RMODR

func (*GPIO_Periph) V4

func (p *GPIO_Periph) V4() RMODR

func (*GPIO_Periph) V5

func (p *GPIO_Periph) V5() RMODR

func (*GPIO_Periph) V6

func (p *GPIO_Periph) V6() RMODR

func (*GPIO_Periph) V7

func (p *GPIO_Periph) V7() RMODR

func (*GPIO_Periph) V8

func (p *GPIO_Periph) V8() RMODR

func (*GPIO_Periph) V9

func (p *GPIO_Periph) V9() RMODR

type IDR

type IDR uint32
const (
	V0  IDR = 0x01 << 0  //+
	V1  IDR = 0x01 << 1  //+
	V2  IDR = 0x01 << 2  //+
	V3  IDR = 0x01 << 3  //+
	V4  IDR = 0x01 << 4  //+
	V5  IDR = 0x01 << 5  //+
	V6  IDR = 0x01 << 6  //+
	V7  IDR = 0x01 << 7  //+
	V8  IDR = 0x01 << 8  //+
	V9  IDR = 0x01 << 9  //+
	V10 IDR = 0x01 << 10 //+
	V11 IDR = 0x01 << 11 //+
	V12 IDR = 0x01 << 12 //+
	V13 IDR = 0x01 << 13 //+
	V14 IDR = 0x01 << 14 //+
	V15 IDR = 0x01 << 15 //+
)

func (IDR) Field

func (b IDR) Field(mask IDR) int

func (IDR) J

func (mask IDR) J(v int) IDR

type LCKR

type LCKR uint32
const (
	LCK0  LCKR = 0x01 << 0  //+
	LCK1  LCKR = 0x01 << 1  //+
	LCK2  LCKR = 0x01 << 2  //+
	LCK3  LCKR = 0x01 << 3  //+
	LCK4  LCKR = 0x01 << 4  //+
	LCK5  LCKR = 0x01 << 5  //+
	LCK6  LCKR = 0x01 << 6  //+
	LCK7  LCKR = 0x01 << 7  //+
	LCK8  LCKR = 0x01 << 8  //+
	LCK9  LCKR = 0x01 << 9  //+
	LCK10 LCKR = 0x01 << 10 //+
	LCK11 LCKR = 0x01 << 11 //+
	LCK12 LCKR = 0x01 << 12 //+
	LCK13 LCKR = 0x01 << 13 //+
	LCK14 LCKR = 0x01 << 14 //+
	LCK15 LCKR = 0x01 << 15 //+
	LCKK  LCKR = 0x01 << 16 //+
)

func (LCKR) Field

func (b LCKR) Field(mask LCKR) int

func (LCKR) J

func (mask LCKR) J(v int) LCKR

type MODER

type MODER uint32
const (
	MODER0  MODER = 0x03 << 0  //+
	MODER1  MODER = 0x03 << 2  //+
	MODER2  MODER = 0x03 << 4  //+
	MODER3  MODER = 0x03 << 6  //+
	MODER4  MODER = 0x03 << 8  //+
	MODER5  MODER = 0x03 << 10 //+
	MODER6  MODER = 0x03 << 12 //+
	MODER7  MODER = 0x03 << 14 //+
	MODER8  MODER = 0x03 << 16 //+
	MODER9  MODER = 0x03 << 18 //+
	MODER10 MODER = 0x03 << 20 //+
	MODER11 MODER = 0x03 << 22 //+
	MODER12 MODER = 0x03 << 24 //+
	MODER13 MODER = 0x03 << 26 //+
	MODER14 MODER = 0x03 << 28 //+
	MODER15 MODER = 0x03 << 30 //+
)

func (MODER) Field

func (b MODER) Field(mask MODER) int

func (MODER) J

func (mask MODER) J(v int) MODER

type ODR

type ODR uint32
const (
	V0  ODR = 0x01 << 0  //+
	V1  ODR = 0x01 << 1  //+
	V2  ODR = 0x01 << 2  //+
	V3  ODR = 0x01 << 3  //+
	V4  ODR = 0x01 << 4  //+
	V5  ODR = 0x01 << 5  //+
	V6  ODR = 0x01 << 6  //+
	V7  ODR = 0x01 << 7  //+
	V8  ODR = 0x01 << 8  //+
	V9  ODR = 0x01 << 9  //+
	V10 ODR = 0x01 << 10 //+
	V11 ODR = 0x01 << 11 //+
	V12 ODR = 0x01 << 12 //+
	V13 ODR = 0x01 << 13 //+
	V14 ODR = 0x01 << 14 //+
	V15 ODR = 0x01 << 15 //+
)

func (ODR) Field

func (b ODR) Field(mask ODR) int

func (ODR) J

func (mask ODR) J(v int) ODR

type OSPEEDR

type OSPEEDR uint32

func (OSPEEDR) Field

func (b OSPEEDR) Field(mask OSPEEDR) int

func (OSPEEDR) J

func (mask OSPEEDR) J(v int) OSPEEDR

type OTYPER

type OTYPER uint32
const (
	OT_0  OTYPER = 0x01 << 0  //+
	OT_1  OTYPER = 0x01 << 1  //+
	OT_2  OTYPER = 0x01 << 2  //+
	OT_3  OTYPER = 0x01 << 3  //+
	OT_4  OTYPER = 0x01 << 4  //+
	OT_5  OTYPER = 0x01 << 5  //+
	OT_6  OTYPER = 0x01 << 6  //+
	OT_7  OTYPER = 0x01 << 7  //+
	OT_8  OTYPER = 0x01 << 8  //+
	OT_9  OTYPER = 0x01 << 9  //+
	OT_10 OTYPER = 0x01 << 10 //+
	OT_11 OTYPER = 0x01 << 11 //+
	OT_12 OTYPER = 0x01 << 12 //+
	OT_13 OTYPER = 0x01 << 13 //+
	OT_14 OTYPER = 0x01 << 14 //+
	OT_15 OTYPER = 0x01 << 15 //+
)

func (OTYPER) Field

func (b OTYPER) Field(mask OTYPER) int

func (OTYPER) J

func (mask OTYPER) J(v int) OTYPER

type PUPDR

type PUPDR uint32
const (
	PUPDR0  PUPDR = 0x03 << 0  //+
	PUPDR1  PUPDR = 0x03 << 2  //+
	PUPDR2  PUPDR = 0x03 << 4  //+
	PUPDR3  PUPDR = 0x03 << 6  //+
	PUPDR4  PUPDR = 0x03 << 8  //+
	PUPDR5  PUPDR = 0x03 << 10 //+
	PUPDR6  PUPDR = 0x03 << 12 //+
	PUPDR7  PUPDR = 0x03 << 14 //+
	PUPDR8  PUPDR = 0x03 << 16 //+
	PUPDR9  PUPDR = 0x03 << 18 //+
	PUPDR10 PUPDR = 0x03 << 20 //+
	PUPDR11 PUPDR = 0x03 << 22 //+
	PUPDR12 PUPDR = 0x03 << 24 //+
	PUPDR13 PUPDR = 0x03 << 26 //+
	PUPDR14 PUPDR = 0x03 << 28 //+
	PUPDR15 PUPDR = 0x03 << 30 //+
)

func (PUPDR) Field

func (b PUPDR) Field(mask PUPDR) int

func (PUPDR) J

func (mask PUPDR) J(v int) PUPDR

type RAFR

type RAFR struct{ mmio.U32 }

func (*RAFR) AtomicClearBits

func (r *RAFR) AtomicClearBits(mask AFR)

func (*RAFR) AtomicSetBits

func (r *RAFR) AtomicSetBits(mask AFR)

func (*RAFR) AtomicStoreBits

func (r *RAFR) AtomicStoreBits(mask, b AFR)

func (*RAFR) Bits

func (r *RAFR) Bits(mask AFR) AFR

func (*RAFR) ClearBits

func (r *RAFR) ClearBits(mask AFR)

func (*RAFR) Load

func (r *RAFR) Load() AFR

func (*RAFR) SetBits

func (r *RAFR) SetBits(mask AFR)

func (*RAFR) Store

func (r *RAFR) Store(b AFR)

func (*RAFR) StoreBits

func (r *RAFR) StoreBits(mask, b AFR)

type RBRR

type RBRR struct{ mmio.U32 }

func (*RBRR) AtomicClearBits

func (r *RBRR) AtomicClearBits(mask BRR)

func (*RBRR) AtomicSetBits

func (r *RBRR) AtomicSetBits(mask BRR)

func (*RBRR) AtomicStoreBits

func (r *RBRR) AtomicStoreBits(mask, b BRR)

func (*RBRR) Bits

func (r *RBRR) Bits(mask BRR) BRR

func (*RBRR) ClearBits

func (r *RBRR) ClearBits(mask BRR)

func (*RBRR) Load

func (r *RBRR) Load() BRR

func (*RBRR) SetBits

func (r *RBRR) SetBits(mask BRR)

func (*RBRR) Store

func (r *RBRR) Store(b BRR)

func (*RBRR) StoreBits

func (r *RBRR) StoreBits(mask, b BRR)

type RBSRR

type RBSRR struct{ mmio.U32 }

func (*RBSRR) AtomicClearBits

func (r *RBSRR) AtomicClearBits(mask BSRR)

func (*RBSRR) AtomicSetBits

func (r *RBSRR) AtomicSetBits(mask BSRR)

func (*RBSRR) AtomicStoreBits

func (r *RBSRR) AtomicStoreBits(mask, b BSRR)

func (*RBSRR) Bits

func (r *RBSRR) Bits(mask BSRR) BSRR

func (*RBSRR) ClearBits

func (r *RBSRR) ClearBits(mask BSRR)

func (*RBSRR) Load

func (r *RBSRR) Load() BSRR

func (*RBSRR) SetBits

func (r *RBSRR) SetBits(mask BSRR)

func (*RBSRR) Store

func (r *RBSRR) Store(b BSRR)

func (*RBSRR) StoreBits

func (r *RBSRR) StoreBits(mask, b BSRR)

type RIDR

type RIDR struct{ mmio.U32 }

func (*RIDR) AtomicClearBits

func (r *RIDR) AtomicClearBits(mask IDR)

func (*RIDR) AtomicSetBits

func (r *RIDR) AtomicSetBits(mask IDR)

func (*RIDR) AtomicStoreBits

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

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 RLCKR

type RLCKR struct{ mmio.U32 }

func (*RLCKR) AtomicClearBits

func (r *RLCKR) AtomicClearBits(mask LCKR)

func (*RLCKR) AtomicSetBits

func (r *RLCKR) AtomicSetBits(mask LCKR)

func (*RLCKR) AtomicStoreBits

func (r *RLCKR) AtomicStoreBits(mask, b LCKR)

func (*RLCKR) Bits

func (r *RLCKR) Bits(mask LCKR) LCKR

func (*RLCKR) ClearBits

func (r *RLCKR) ClearBits(mask LCKR)

func (*RLCKR) Load

func (r *RLCKR) Load() LCKR

func (*RLCKR) SetBits

func (r *RLCKR) SetBits(mask LCKR)

func (*RLCKR) Store

func (r *RLCKR) Store(b LCKR)

func (*RLCKR) StoreBits

func (r *RLCKR) StoreBits(mask, b LCKR)

type RMAFR

type RMAFR struct{ mmio.UM32 }

func (RMAFR) Load

func (rm RMAFR) Load() AFR

func (RMAFR) Store

func (rm RMAFR) Store(b AFR)

type RMBRR

type RMBRR struct{ mmio.UM32 }

func (RMBRR) Load

func (rm RMBRR) Load() BRR

func (RMBRR) Store

func (rm RMBRR) Store(b BRR)

type RMBSRR

type RMBSRR struct{ mmio.UM32 }

func (RMBSRR) Load

func (rm RMBSRR) Load() BSRR

func (RMBSRR) Store

func (rm RMBSRR) Store(b BSRR)

type RMIDR

type RMIDR struct{ mmio.UM32 }

func (RMIDR) Load

func (rm RMIDR) Load() IDR

func (RMIDR) Store

func (rm RMIDR) Store(b IDR)

type RMLCKR

type RMLCKR struct{ mmio.UM32 }

func (RMLCKR) Load

func (rm RMLCKR) Load() LCKR

func (RMLCKR) Store

func (rm RMLCKR) Store(b LCKR)

type RMMODER

type RMMODER struct{ mmio.UM32 }

func (RMMODER) Load

func (rm RMMODER) Load() MODER

func (RMMODER) Store

func (rm RMMODER) Store(b MODER)

type RMODER

type RMODER struct{ mmio.U32 }

func (*RMODER) AtomicClearBits

func (r *RMODER) AtomicClearBits(mask MODER)

func (*RMODER) AtomicSetBits

func (r *RMODER) AtomicSetBits(mask MODER)

func (*RMODER) AtomicStoreBits

func (r *RMODER) AtomicStoreBits(mask, b MODER)

func (*RMODER) Bits

func (r *RMODER) Bits(mask MODER) MODER

func (*RMODER) ClearBits

func (r *RMODER) ClearBits(mask MODER)

func (*RMODER) Load

func (r *RMODER) Load() MODER

func (*RMODER) SetBits

func (r *RMODER) SetBits(mask MODER)

func (*RMODER) Store

func (r *RMODER) Store(b MODER)

func (*RMODER) StoreBits

func (r *RMODER) StoreBits(mask, b MODER)

type RMODR

type RMODR struct{ mmio.UM32 }

func (RMODR) Load

func (rm RMODR) Load() ODR

func (RMODR) Store

func (rm RMODR) Store(b ODR)

type RMOSPEEDR

type RMOSPEEDR struct{ mmio.UM32 }

func (RMOSPEEDR) Load

func (rm RMOSPEEDR) Load() OSPEEDR

func (RMOSPEEDR) Store

func (rm RMOSPEEDR) Store(b OSPEEDR)

type RMOTYPER

type RMOTYPER struct{ mmio.UM32 }

func (RMOTYPER) Load

func (rm RMOTYPER) Load() OTYPER

func (RMOTYPER) Store

func (rm RMOTYPER) Store(b OTYPER)

type RMPUPDR

type RMPUPDR struct{ mmio.UM32 }

func (RMPUPDR) Load

func (rm RMPUPDR) Load() PUPDR

func (RMPUPDR) Store

func (rm RMPUPDR) Store(b PUPDR)

type RODR

type RODR struct{ mmio.U32 }

func (*RODR) AtomicClearBits

func (r *RODR) AtomicClearBits(mask ODR)

func (*RODR) AtomicSetBits

func (r *RODR) AtomicSetBits(mask ODR)

func (*RODR) AtomicStoreBits

func (r *RODR) AtomicStoreBits(mask, b ODR)

func (*RODR) Bits

func (r *RODR) Bits(mask ODR) ODR

func (*RODR) ClearBits

func (r *RODR) ClearBits(mask ODR)

func (*RODR) Load

func (r *RODR) Load() ODR

func (*RODR) SetBits

func (r *RODR) SetBits(mask ODR)

func (*RODR) Store

func (r *RODR) Store(b ODR)

func (*RODR) StoreBits

func (r *RODR) StoreBits(mask, b ODR)

type ROSPEEDR

type ROSPEEDR struct{ mmio.U32 }

func (*ROSPEEDR) AtomicClearBits

func (r *ROSPEEDR) AtomicClearBits(mask OSPEEDR)

func (*ROSPEEDR) AtomicSetBits

func (r *ROSPEEDR) AtomicSetBits(mask OSPEEDR)

func (*ROSPEEDR) AtomicStoreBits

func (r *ROSPEEDR) AtomicStoreBits(mask, b OSPEEDR)

func (*ROSPEEDR) Bits

func (r *ROSPEEDR) Bits(mask OSPEEDR) OSPEEDR

func (*ROSPEEDR) ClearBits

func (r *ROSPEEDR) ClearBits(mask OSPEEDR)

func (*ROSPEEDR) Load

func (r *ROSPEEDR) Load() OSPEEDR

func (*ROSPEEDR) SetBits

func (r *ROSPEEDR) SetBits(mask OSPEEDR)

func (*ROSPEEDR) Store

func (r *ROSPEEDR) Store(b OSPEEDR)

func (*ROSPEEDR) StoreBits

func (r *ROSPEEDR) StoreBits(mask, b OSPEEDR)

type ROTYPER

type ROTYPER struct{ mmio.U32 }

func (*ROTYPER) AtomicClearBits

func (r *ROTYPER) AtomicClearBits(mask OTYPER)

func (*ROTYPER) AtomicSetBits

func (r *ROTYPER) AtomicSetBits(mask OTYPER)

func (*ROTYPER) AtomicStoreBits

func (r *ROTYPER) AtomicStoreBits(mask, b OTYPER)

func (*ROTYPER) Bits

func (r *ROTYPER) Bits(mask OTYPER) OTYPER

func (*ROTYPER) ClearBits

func (r *ROTYPER) ClearBits(mask OTYPER)

func (*ROTYPER) Load

func (r *ROTYPER) Load() OTYPER

func (*ROTYPER) SetBits

func (r *ROTYPER) SetBits(mask OTYPER)

func (*ROTYPER) Store

func (r *ROTYPER) Store(b OTYPER)

func (*ROTYPER) StoreBits

func (r *ROTYPER) StoreBits(mask, b OTYPER)

type RPUPDR

type RPUPDR struct{ mmio.U32 }

func (*RPUPDR) AtomicClearBits

func (r *RPUPDR) AtomicClearBits(mask PUPDR)

func (*RPUPDR) AtomicSetBits

func (r *RPUPDR) AtomicSetBits(mask PUPDR)

func (*RPUPDR) AtomicStoreBits

func (r *RPUPDR) AtomicStoreBits(mask, b PUPDR)

func (*RPUPDR) Bits

func (r *RPUPDR) Bits(mask PUPDR) PUPDR

func (*RPUPDR) ClearBits

func (r *RPUPDR) ClearBits(mask PUPDR)

func (*RPUPDR) Load

func (r *RPUPDR) Load() PUPDR

func (*RPUPDR) SetBits

func (r *RPUPDR) SetBits(mask PUPDR)

func (*RPUPDR) Store

func (r *RPUPDR) Store(b PUPDR)

func (*RPUPDR) StoreBits

func (r *RPUPDR) StoreBits(mask, b PUPDR)

Jump to

Keyboard shortcuts

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