rtc

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 rtc provides interface to Real-Time Clock.

Peripheral: RTC_Periph Real-Time Clock. Instances:

RTC  mmap.RTC_BASE

Registers:

0x00 32  TR         Time register.
0x04 32  DR         Date register.
0x08 32  CR         Control register.
0x0C 32  ISR        Initialization and status register.
0x10 32  PRER       Prescaler register.
0x14 32  WUTR       Wakeup timer register.
0x1C 32  ALRMR[2]   Alarm A, B registers.
0x24 32  WPR        Write protection register.
0x28 32  SSR        Sub second register.
0x2C 32  SHIFTR     Shift control register.
0x30 32  TSTR       Time stamp time register.
0x34 32  TSDR       Time stamp date register.
0x38 32  TSSSR      Time-stamp sub second register.
0x3C 32  CALR       Calibration register.
0x40 32  TAFCR      Tamper and alternate function configuration register.
0x44 32  ALRMSSR[2] Alarm A, B subsecond registers.
0x50 32  BKPR[16]   Backup registers.

Import:

stm32/o/f303xe/mmap

Index

Constants

View Source
const (
	PMn  = 22
	HTn  = 20
	HUn  = 16
	MNTn = 12
	MNUn = 8
	STn  = 4
	SUn  = 0
)
View Source
const (
	YTn  = 20
	YUn  = 16
	WDUn = 13
	MTn  = 12
	MUn  = 8
	DTn  = 4
	DUn  = 0
)
View Source
const (
	COEn     = 23
	OSELn    = 21
	POLn     = 20
	COSELn   = 19
	BKPn     = 18
	SUB1Hn   = 17
	ADD1Hn   = 16
	TSIEn    = 15
	WUTIEn   = 14
	ALRBIEn  = 13
	ALRAIEn  = 12
	TSEn     = 11
	WUTEn    = 10
	ALRBEn   = 9
	ALRAEn   = 8
	FMTn     = 6
	BYPSHADn = 5
	REFCKONn = 4
	TSEDGEn  = 3
	WUCKSELn = 0
)
View Source
const (
	RECALPFn = 16
	TAMP3Fn  = 15
	TAMP2Fn  = 14
	TAMP1Fn  = 13
	TSOVFn   = 12
	TSFn     = 11
	WUTFn    = 10
	ALRBFn   = 9
	ALRAFn   = 8
	INITn    = 7
	INITFn   = 6
	RSFn     = 5
	INITSn   = 4
	SHPFn    = 3
	WUTWFn   = 2
	ALRBWFn  = 1
	ALRAWFn  = 0
)
View Source
const (
	PREDIV_An = 16
	PREDIV_Sn = 0
)
View Source
const (
	AMSK4n  = 31
	AWDSELn = 30
	ADTn    = 28
	ADUn    = 24
	AMSK3n  = 23
	APMn    = 22
	AHTn    = 20
	AHUn    = 16
	AMSK2n  = 15
	AMNTn   = 12
	AMNUn   = 8
	AMSK1n  = 7
	ASTn    = 4
	ASUn    = 0
)
View Source
const (
	SUBFSn = 0
	ADD1Sn = 31
)
View Source
const (
	TPMn  = 22
	THTn  = 20
	THUn  = 16
	TMNTn = 12
	TMNUn = 8
	TSTn  = 4
	TSUn  = 0
)
View Source
const (
	TWDUn = 13
	TMTn  = 12
	TMUn  = 8
	TDTn  = 4
	TDUn  = 0
)
View Source
const (
	CALPn   = 15
	CALW8n  = 14
	CALW16n = 13
	CALMn   = 0
)
View Source
const (
	PC15MODEn  = 23
	PC15VALUEn = 22
	PC14MODEn  = 21
	PC14VALUEn = 20
	PC13MODEn  = 19
	PC13VALUEn = 18
	TAMPPUDISn = 15
	TAMPPRCHn  = 13
	TAMPFLTn   = 11
	TAMPFREQn  = 8
	TAMPTSn    = 7
	TAMP3TRGn  = 6
	TAMP3En    = 5
	TAMP2TRGn  = 4
	TAMP2En    = 3
	TAMPIEn    = 2
	TAMP1TRGn  = 1
	TAMP1En    = 0
)
View Source
const (
	AMASKSSn = 24
	ASSn     = 0
)
View Source
const (
	KEYn = 0
)
View Source
const (
	SSn = 0
)
View Source
const (
	TSSn = 0
)
View Source
const (
	WUTn = 0
)

Variables

Functions

This section is empty.

Types

type ALRMR

type ALRMR uint32
const (
	AMSK4  ALRMR = 0x01 << 31 //+
	AWDSEL ALRMR = 0x01 << 30 //+
	ADT    ALRMR = 0x03 << 28 //+
	ADU    ALRMR = 0x0F << 24 //+
	AMSK3  ALRMR = 0x01 << 23 //+
	APM    ALRMR = 0x01 << 22 //+
	AHT    ALRMR = 0x03 << 20 //+
	AHU    ALRMR = 0x0F << 16 //+
	AMSK2  ALRMR = 0x01 << 15 //+
	AMNT   ALRMR = 0x07 << 12 //+
	AMNU   ALRMR = 0x0F << 8  //+
	AMSK1  ALRMR = 0x01 << 7  //+
	AST    ALRMR = 0x07 << 4  //+
	ASU    ALRMR = 0x0F << 0  //+
)

func (ALRMR) Field

func (b ALRMR) Field(mask ALRMR) int

func (ALRMR) J

func (mask ALRMR) J(v int) ALRMR

type ALRMSSR

type ALRMSSR uint32
const (
	AMASKSS ALRMSSR = 0x0F << 24  //+
	ASS     ALRMSSR = 0x7FFF << 0 //+
)

func (ALRMSSR) Field

func (b ALRMSSR) Field(mask ALRMSSR) int

func (ALRMSSR) J

func (mask ALRMSSR) J(v int) ALRMSSR

type BKPR

type BKPR uint32

func (BKPR) Field

func (b BKPR) Field(mask BKPR) int

func (BKPR) J

func (mask BKPR) J(v int) BKPR

type CALR

type CALR uint32
const (
	CALP   CALR = 0x01 << 15 //+
	CALW8  CALR = 0x01 << 14 //+
	CALW16 CALR = 0x01 << 13 //+
	CALM   CALR = 0x1FF << 0 //+
)

func (CALR) Field

func (b CALR) Field(mask CALR) int

func (CALR) J

func (mask CALR) J(v int) CALR

type CR

type CR uint32
const (
	COE     CR = 0x01 << 23 //+
	OSEL    CR = 0x03 << 21 //+
	POL     CR = 0x01 << 20 //+
	COSEL   CR = 0x01 << 19 //+
	BKP     CR = 0x01 << 18 //+
	SUB1H   CR = 0x01 << 17 //+
	ADD1H   CR = 0x01 << 16 //+
	TSIE    CR = 0x01 << 15 //+
	WUTIE   CR = 0x01 << 14 //+
	ALRBIE  CR = 0x01 << 13 //+
	ALRAIE  CR = 0x01 << 12 //+
	TSE     CR = 0x01 << 11 //+
	WUTE    CR = 0x01 << 10 //+
	ALRBE   CR = 0x01 << 9  //+
	ALRAE   CR = 0x01 << 8  //+
	FMT     CR = 0x01 << 6  //+
	BYPSHAD CR = 0x01 << 5  //+
	REFCKON CR = 0x01 << 4  //+
	TSEDGE  CR = 0x01 << 3  //+
	WUCKSEL CR = 0x07 << 0  //+
)

func (CR) Field

func (b CR) Field(mask CR) int

func (CR) J

func (mask CR) J(v int) CR

type DR

type DR uint32
const (
	YT  DR = 0x0F << 20 //+
	YU  DR = 0x0F << 16 //+
	WDU DR = 0x07 << 13 //+
	MT  DR = 0x01 << 12 //+
	MU  DR = 0x0F << 8  //+
	DT  DR = 0x03 << 4  //+
	DU  DR = 0x0F << 0  //+
)

func (DR) Field

func (b DR) Field(mask DR) int

func (DR) J

func (mask DR) J(v int) DR

type ISR

type ISR uint32
const (
	RECALPF ISR = 0x01 << 16 //+
	TAMP3F  ISR = 0x01 << 15 //+
	TAMP2F  ISR = 0x01 << 14 //+
	TAMP1F  ISR = 0x01 << 13 //+
	TSOVF   ISR = 0x01 << 12 //+
	TSF     ISR = 0x01 << 11 //+
	WUTF    ISR = 0x01 << 10 //+
	ALRBF   ISR = 0x01 << 9  //+
	ALRAF   ISR = 0x01 << 8  //+
	INIT    ISR = 0x01 << 7  //+
	INITF   ISR = 0x01 << 6  //+
	RSF     ISR = 0x01 << 5  //+
	INITS   ISR = 0x01 << 4  //+
	SHPF    ISR = 0x01 << 3  //+
	WUTWF   ISR = 0x01 << 2  //+
	ALRBWF  ISR = 0x01 << 1  //+
	ALRAWF  ISR = 0x01 << 0  //+
)

func (ISR) Field

func (b ISR) Field(mask ISR) int

func (ISR) J

func (mask ISR) J(v int) ISR

type PRER

type PRER uint32
const (
	PREDIV_A PRER = 0x7F << 16  //+
	PREDIV_S PRER = 0x7FFF << 0 //+
)

func (PRER) Field

func (b PRER) Field(mask PRER) int

func (PRER) J

func (mask PRER) J(v int) PRER

type RALRMR

type RALRMR struct{ mmio.U32 }

func (*RALRMR) AtomicClearBits

func (r *RALRMR) AtomicClearBits(mask ALRMR)

func (*RALRMR) AtomicSetBits

func (r *RALRMR) AtomicSetBits(mask ALRMR)

func (*RALRMR) AtomicStoreBits

func (r *RALRMR) AtomicStoreBits(mask, b ALRMR)

func (*RALRMR) Bits

func (r *RALRMR) Bits(mask ALRMR) ALRMR

func (*RALRMR) ClearBits

func (r *RALRMR) ClearBits(mask ALRMR)

func (*RALRMR) Load

func (r *RALRMR) Load() ALRMR

func (*RALRMR) SetBits

func (r *RALRMR) SetBits(mask ALRMR)

func (*RALRMR) Store

func (r *RALRMR) Store(b ALRMR)

func (*RALRMR) StoreBits

func (r *RALRMR) StoreBits(mask, b ALRMR)

type RALRMSSR

type RALRMSSR struct{ mmio.U32 }

func (*RALRMSSR) AtomicClearBits

func (r *RALRMSSR) AtomicClearBits(mask ALRMSSR)

func (*RALRMSSR) AtomicSetBits

func (r *RALRMSSR) AtomicSetBits(mask ALRMSSR)

func (*RALRMSSR) AtomicStoreBits

func (r *RALRMSSR) AtomicStoreBits(mask, b ALRMSSR)

func (*RALRMSSR) Bits

func (r *RALRMSSR) Bits(mask ALRMSSR) ALRMSSR

func (*RALRMSSR) ClearBits

func (r *RALRMSSR) ClearBits(mask ALRMSSR)

func (*RALRMSSR) Load

func (r *RALRMSSR) Load() ALRMSSR

func (*RALRMSSR) SetBits

func (r *RALRMSSR) SetBits(mask ALRMSSR)

func (*RALRMSSR) Store

func (r *RALRMSSR) Store(b ALRMSSR)

func (*RALRMSSR) StoreBits

func (r *RALRMSSR) StoreBits(mask, b ALRMSSR)

type RBKPR

type RBKPR struct{ mmio.U32 }

func (*RBKPR) AtomicClearBits

func (r *RBKPR) AtomicClearBits(mask BKPR)

func (*RBKPR) AtomicSetBits

func (r *RBKPR) AtomicSetBits(mask BKPR)

func (*RBKPR) AtomicStoreBits

func (r *RBKPR) AtomicStoreBits(mask, b BKPR)

func (*RBKPR) Bits

func (r *RBKPR) Bits(mask BKPR) BKPR

func (*RBKPR) ClearBits

func (r *RBKPR) ClearBits(mask BKPR)

func (*RBKPR) Load

func (r *RBKPR) Load() BKPR

func (*RBKPR) SetBits

func (r *RBKPR) SetBits(mask BKPR)

func (*RBKPR) Store

func (r *RBKPR) Store(b BKPR)

func (*RBKPR) StoreBits

func (r *RBKPR) StoreBits(mask, b BKPR)

type RCALR

type RCALR struct{ mmio.U32 }

func (*RCALR) AtomicClearBits

func (r *RCALR) AtomicClearBits(mask CALR)

func (*RCALR) AtomicSetBits

func (r *RCALR) AtomicSetBits(mask CALR)

func (*RCALR) AtomicStoreBits

func (r *RCALR) AtomicStoreBits(mask, b CALR)

func (*RCALR) Bits

func (r *RCALR) Bits(mask CALR) CALR

func (*RCALR) ClearBits

func (r *RCALR) ClearBits(mask CALR)

func (*RCALR) Load

func (r *RCALR) Load() CALR

func (*RCALR) SetBits

func (r *RCALR) SetBits(mask CALR)

func (*RCALR) Store

func (r *RCALR) Store(b CALR)

func (*RCALR) StoreBits

func (r *RCALR) StoreBits(mask, b CALR)

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 RISR

type RISR struct{ mmio.U32 }

func (*RISR) AtomicClearBits

func (r *RISR) AtomicClearBits(mask ISR)

func (*RISR) AtomicSetBits

func (r *RISR) AtomicSetBits(mask ISR)

func (*RISR) AtomicStoreBits

func (r *RISR) AtomicStoreBits(mask, b ISR)

func (*RISR) Bits

func (r *RISR) Bits(mask ISR) ISR

func (*RISR) ClearBits

func (r *RISR) ClearBits(mask ISR)

func (*RISR) Load

func (r *RISR) Load() ISR

func (*RISR) SetBits

func (r *RISR) SetBits(mask ISR)

func (*RISR) Store

func (r *RISR) Store(b ISR)

func (*RISR) StoreBits

func (r *RISR) StoreBits(mask, b ISR)

type RMALRMR

type RMALRMR struct{ mmio.UM32 }

func (RMALRMR) Load

func (rm RMALRMR) Load() ALRMR

func (RMALRMR) Store

func (rm RMALRMR) Store(b ALRMR)

type RMALRMSSR

type RMALRMSSR struct{ mmio.UM32 }

func (RMALRMSSR) Load

func (rm RMALRMSSR) Load() ALRMSSR

func (RMALRMSSR) Store

func (rm RMALRMSSR) Store(b ALRMSSR)

type RMBKPR

type RMBKPR struct{ mmio.UM32 }

func (RMBKPR) Load

func (rm RMBKPR) Load() BKPR

func (RMBKPR) Store

func (rm RMBKPR) Store(b BKPR)

type RMCALR

type RMCALR struct{ mmio.UM32 }

func (RMCALR) Load

func (rm RMCALR) Load() CALR

func (RMCALR) Store

func (rm RMCALR) Store(b CALR)

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 RMISR

type RMISR struct{ mmio.UM32 }

func (RMISR) Load

func (rm RMISR) Load() ISR

func (RMISR) Store

func (rm RMISR) Store(b ISR)

type RMPRER

type RMPRER struct{ mmio.UM32 }

func (RMPRER) Load

func (rm RMPRER) Load() PRER

func (RMPRER) Store

func (rm RMPRER) Store(b PRER)

type RMSHIFTR

type RMSHIFTR struct{ mmio.UM32 }

func (RMSHIFTR) Load

func (rm RMSHIFTR) Load() SHIFTR

func (RMSHIFTR) Store

func (rm RMSHIFTR) Store(b SHIFTR)

type RMSSR

type RMSSR struct{ mmio.UM32 }

func (RMSSR) Load

func (rm RMSSR) Load() SSR

func (RMSSR) Store

func (rm RMSSR) Store(b SSR)

type RMTAFCR

type RMTAFCR struct{ mmio.UM32 }

func (RMTAFCR) Load

func (rm RMTAFCR) Load() TAFCR

func (RMTAFCR) Store

func (rm RMTAFCR) Store(b TAFCR)

type RMTR

type RMTR struct{ mmio.UM32 }

func (RMTR) Load

func (rm RMTR) Load() TR

func (RMTR) Store

func (rm RMTR) Store(b TR)

type RMTSDR

type RMTSDR struct{ mmio.UM32 }

func (RMTSDR) Load

func (rm RMTSDR) Load() TSDR

func (RMTSDR) Store

func (rm RMTSDR) Store(b TSDR)

type RMTSSSR

type RMTSSSR struct{ mmio.UM32 }

func (RMTSSSR) Load

func (rm RMTSSSR) Load() TSSSR

func (RMTSSSR) Store

func (rm RMTSSSR) Store(b TSSSR)

type RMTSTR

type RMTSTR struct{ mmio.UM32 }

func (RMTSTR) Load

func (rm RMTSTR) Load() TSTR

func (RMTSTR) Store

func (rm RMTSTR) Store(b TSTR)

type RMWPR

type RMWPR struct{ mmio.UM32 }

func (RMWPR) Load

func (rm RMWPR) Load() WPR

func (RMWPR) Store

func (rm RMWPR) Store(b WPR)

type RMWUTR

type RMWUTR struct{ mmio.UM32 }

func (RMWUTR) Load

func (rm RMWUTR) Load() WUTR

func (RMWUTR) Store

func (rm RMWUTR) Store(b WUTR)

type RPRER

type RPRER struct{ mmio.U32 }

func (*RPRER) AtomicClearBits

func (r *RPRER) AtomicClearBits(mask PRER)

func (*RPRER) AtomicSetBits

func (r *RPRER) AtomicSetBits(mask PRER)

func (*RPRER) AtomicStoreBits

func (r *RPRER) AtomicStoreBits(mask, b PRER)

func (*RPRER) Bits

func (r *RPRER) Bits(mask PRER) PRER

func (*RPRER) ClearBits

func (r *RPRER) ClearBits(mask PRER)

func (*RPRER) Load

func (r *RPRER) Load() PRER

func (*RPRER) SetBits

func (r *RPRER) SetBits(mask PRER)

func (*RPRER) Store

func (r *RPRER) Store(b PRER)

func (*RPRER) StoreBits

func (r *RPRER) StoreBits(mask, b PRER)

type RSHIFTR

type RSHIFTR struct{ mmio.U32 }

func (*RSHIFTR) AtomicClearBits

func (r *RSHIFTR) AtomicClearBits(mask SHIFTR)

func (*RSHIFTR) AtomicSetBits

func (r *RSHIFTR) AtomicSetBits(mask SHIFTR)

func (*RSHIFTR) AtomicStoreBits

func (r *RSHIFTR) AtomicStoreBits(mask, b SHIFTR)

func (*RSHIFTR) Bits

func (r *RSHIFTR) Bits(mask SHIFTR) SHIFTR

func (*RSHIFTR) ClearBits

func (r *RSHIFTR) ClearBits(mask SHIFTR)

func (*RSHIFTR) Load

func (r *RSHIFTR) Load() SHIFTR

func (*RSHIFTR) SetBits

func (r *RSHIFTR) SetBits(mask SHIFTR)

func (*RSHIFTR) Store

func (r *RSHIFTR) Store(b SHIFTR)

func (*RSHIFTR) StoreBits

func (r *RSHIFTR) StoreBits(mask, b SHIFTR)

type RSSR

type RSSR struct{ mmio.U32 }

func (*RSSR) AtomicClearBits

func (r *RSSR) AtomicClearBits(mask SSR)

func (*RSSR) AtomicSetBits

func (r *RSSR) AtomicSetBits(mask SSR)

func (*RSSR) AtomicStoreBits

func (r *RSSR) AtomicStoreBits(mask, b SSR)

func (*RSSR) Bits

func (r *RSSR) Bits(mask SSR) SSR

func (*RSSR) ClearBits

func (r *RSSR) ClearBits(mask SSR)

func (*RSSR) Load

func (r *RSSR) Load() SSR

func (*RSSR) SetBits

func (r *RSSR) SetBits(mask SSR)

func (*RSSR) Store

func (r *RSSR) Store(b SSR)

func (*RSSR) StoreBits

func (r *RSSR) StoreBits(mask, b SSR)

type RTAFCR

type RTAFCR struct{ mmio.U32 }

func (*RTAFCR) AtomicClearBits

func (r *RTAFCR) AtomicClearBits(mask TAFCR)

func (*RTAFCR) AtomicSetBits

func (r *RTAFCR) AtomicSetBits(mask TAFCR)

func (*RTAFCR) AtomicStoreBits

func (r *RTAFCR) AtomicStoreBits(mask, b TAFCR)

func (*RTAFCR) Bits

func (r *RTAFCR) Bits(mask TAFCR) TAFCR

func (*RTAFCR) ClearBits

func (r *RTAFCR) ClearBits(mask TAFCR)

func (*RTAFCR) Load

func (r *RTAFCR) Load() TAFCR

func (*RTAFCR) SetBits

func (r *RTAFCR) SetBits(mask TAFCR)

func (*RTAFCR) Store

func (r *RTAFCR) Store(b TAFCR)

func (*RTAFCR) StoreBits

func (r *RTAFCR) StoreBits(mask, b TAFCR)

type RTC_Periph

type RTC_Periph struct {
	TR   RTR
	DR   RDR
	CR   RCR
	ISR  RISR
	PRER RPRER
	WUTR RWUTR

	ALRMR   [2]RALRMR
	WPR     RWPR
	SSR     RSSR
	SHIFTR  RSHIFTR
	TSTR    RTSTR
	TSDR    RTSDR
	TSSSR   RTSSSR
	CALR    RCALR
	TAFCR   RTAFCR
	ALRMSSR [2]RALRMSSR

	BKPR [16]RBKPR
	// contains filtered or unexported fields
}

func (*RTC_Periph) ADD1H

func (p *RTC_Periph) ADD1H() RMCR

func (*RTC_Periph) ADD1S

func (p *RTC_Periph) ADD1S() RMSHIFTR

func (*RTC_Periph) ADT

func (p *RTC_Periph) ADT(n int) RMALRMR

func (*RTC_Periph) ADU

func (p *RTC_Periph) ADU(n int) RMALRMR

func (*RTC_Periph) AHT

func (p *RTC_Periph) AHT(n int) RMALRMR

func (*RTC_Periph) AHU

func (p *RTC_Periph) AHU(n int) RMALRMR

func (*RTC_Periph) ALRAE

func (p *RTC_Periph) ALRAE() RMCR

func (*RTC_Periph) ALRAF

func (p *RTC_Periph) ALRAF() RMISR

func (*RTC_Periph) ALRAIE

func (p *RTC_Periph) ALRAIE() RMCR

func (*RTC_Periph) ALRAWF

func (p *RTC_Periph) ALRAWF() RMISR

func (*RTC_Periph) ALRBE

func (p *RTC_Periph) ALRBE() RMCR

func (*RTC_Periph) ALRBF

func (p *RTC_Periph) ALRBF() RMISR

func (*RTC_Periph) ALRBIE

func (p *RTC_Periph) ALRBIE() RMCR

func (*RTC_Periph) ALRBWF

func (p *RTC_Periph) ALRBWF() RMISR

func (*RTC_Periph) AMASKSS

func (p *RTC_Periph) AMASKSS(n int) RMALRMSSR

func (*RTC_Periph) AMNT

func (p *RTC_Periph) AMNT(n int) RMALRMR

func (*RTC_Periph) AMNU

func (p *RTC_Periph) AMNU(n int) RMALRMR

func (*RTC_Periph) AMSK1

func (p *RTC_Periph) AMSK1(n int) RMALRMR

func (*RTC_Periph) AMSK2

func (p *RTC_Periph) AMSK2(n int) RMALRMR

func (*RTC_Periph) AMSK3

func (p *RTC_Periph) AMSK3(n int) RMALRMR

func (*RTC_Periph) AMSK4

func (p *RTC_Periph) AMSK4(n int) RMALRMR

func (*RTC_Periph) APM

func (p *RTC_Periph) APM(n int) RMALRMR

func (*RTC_Periph) ASS

func (p *RTC_Periph) ASS(n int) RMALRMSSR

func (*RTC_Periph) AST

func (p *RTC_Periph) AST(n int) RMALRMR

func (*RTC_Periph) ASU

func (p *RTC_Periph) ASU(n int) RMALRMR

func (*RTC_Periph) AWDSEL

func (p *RTC_Periph) AWDSEL(n int) RMALRMR

func (*RTC_Periph) BKP

func (p *RTC_Periph) BKP() RMCR

func (*RTC_Periph) BYPSHAD

func (p *RTC_Periph) BYPSHAD() RMCR

func (*RTC_Periph) BaseAddr

func (p *RTC_Periph) BaseAddr() uintptr

func (*RTC_Periph) CALM

func (p *RTC_Periph) CALM() RMCALR

func (*RTC_Periph) CALP

func (p *RTC_Periph) CALP() RMCALR

func (*RTC_Periph) CALW16

func (p *RTC_Periph) CALW16() RMCALR

func (*RTC_Periph) CALW8

func (p *RTC_Periph) CALW8() RMCALR

func (*RTC_Periph) COE

func (p *RTC_Periph) COE() RMCR

func (*RTC_Periph) COSEL

func (p *RTC_Periph) COSEL() RMCR

func (*RTC_Periph) DT

func (p *RTC_Periph) DT() RMDR

func (*RTC_Periph) DU

func (p *RTC_Periph) DU() RMDR

func (*RTC_Periph) FMT

func (p *RTC_Periph) FMT() RMCR

func (*RTC_Periph) HT

func (p *RTC_Periph) HT() RMTR

func (*RTC_Periph) HU

func (p *RTC_Periph) HU() RMTR

func (*RTC_Periph) INIT

func (p *RTC_Periph) INIT() RMISR

func (*RTC_Periph) INITF

func (p *RTC_Periph) INITF() RMISR

func (*RTC_Periph) INITS

func (p *RTC_Periph) INITS() RMISR

func (*RTC_Periph) KEY

func (p *RTC_Periph) KEY() RMWPR

func (*RTC_Periph) MNT

func (p *RTC_Periph) MNT() RMTR

func (*RTC_Periph) MNU

func (p *RTC_Periph) MNU() RMTR

func (*RTC_Periph) MT

func (p *RTC_Periph) MT() RMDR

func (*RTC_Periph) MU

func (p *RTC_Periph) MU() RMDR

func (*RTC_Periph) OSEL

func (p *RTC_Periph) OSEL() RMCR

func (*RTC_Periph) PC13MODE

func (p *RTC_Periph) PC13MODE() RMTAFCR

func (*RTC_Periph) PC13VALUE

func (p *RTC_Periph) PC13VALUE() RMTAFCR

func (*RTC_Periph) PC14MODE

func (p *RTC_Periph) PC14MODE() RMTAFCR

func (*RTC_Periph) PC14VALUE

func (p *RTC_Periph) PC14VALUE() RMTAFCR

func (*RTC_Periph) PC15MODE

func (p *RTC_Periph) PC15MODE() RMTAFCR

func (*RTC_Periph) PC15VALUE

func (p *RTC_Periph) PC15VALUE() RMTAFCR

func (*RTC_Periph) PM

func (p *RTC_Periph) PM() RMTR

func (*RTC_Periph) POL

func (p *RTC_Periph) POL() RMCR

func (*RTC_Periph) PREDIV_A

func (p *RTC_Periph) PREDIV_A() RMPRER

func (*RTC_Periph) PREDIV_S

func (p *RTC_Periph) PREDIV_S() RMPRER

func (*RTC_Periph) RECALPF

func (p *RTC_Periph) RECALPF() RMISR

func (*RTC_Periph) REFCKON

func (p *RTC_Periph) REFCKON() RMCR

func (*RTC_Periph) RSF

func (p *RTC_Periph) RSF() RMISR

func (*RTC_Periph) SHPF

func (p *RTC_Periph) SHPF() RMISR

func (*RTC_Periph) SS

func (p *RTC_Periph) SS() RMSSR

func (*RTC_Periph) ST

func (p *RTC_Periph) ST() RMTR

func (*RTC_Periph) SU

func (p *RTC_Periph) SU() RMTR

func (*RTC_Periph) SUB1H

func (p *RTC_Periph) SUB1H() RMCR

func (*RTC_Periph) SUBFS

func (p *RTC_Periph) SUBFS() RMSHIFTR

func (*RTC_Periph) TAMP1E

func (p *RTC_Periph) TAMP1E() RMTAFCR

func (*RTC_Periph) TAMP1F

func (p *RTC_Periph) TAMP1F() RMISR

func (*RTC_Periph) TAMP1TRG

func (p *RTC_Periph) TAMP1TRG() RMTAFCR

func (*RTC_Periph) TAMP2E

func (p *RTC_Periph) TAMP2E() RMTAFCR

func (*RTC_Periph) TAMP2F

func (p *RTC_Periph) TAMP2F() RMISR

func (*RTC_Periph) TAMP2TRG

func (p *RTC_Periph) TAMP2TRG() RMTAFCR

func (*RTC_Periph) TAMP3E

func (p *RTC_Periph) TAMP3E() RMTAFCR

func (*RTC_Periph) TAMP3F

func (p *RTC_Periph) TAMP3F() RMISR

func (*RTC_Periph) TAMP3TRG

func (p *RTC_Periph) TAMP3TRG() RMTAFCR

func (*RTC_Periph) TAMPFLT

func (p *RTC_Periph) TAMPFLT() RMTAFCR

func (*RTC_Periph) TAMPFREQ

func (p *RTC_Periph) TAMPFREQ() RMTAFCR

func (*RTC_Periph) TAMPIE

func (p *RTC_Periph) TAMPIE() RMTAFCR

func (*RTC_Periph) TAMPPRCH

func (p *RTC_Periph) TAMPPRCH() RMTAFCR

func (*RTC_Periph) TAMPPUDIS

func (p *RTC_Periph) TAMPPUDIS() RMTAFCR

func (*RTC_Periph) TAMPTS

func (p *RTC_Periph) TAMPTS() RMTAFCR

func (*RTC_Periph) TDT

func (p *RTC_Periph) TDT() RMTSDR

func (*RTC_Periph) TDU

func (p *RTC_Periph) TDU() RMTSDR

func (*RTC_Periph) THT

func (p *RTC_Periph) THT() RMTSTR

func (*RTC_Periph) THU

func (p *RTC_Periph) THU() RMTSTR

func (*RTC_Periph) TMNT

func (p *RTC_Periph) TMNT() RMTSTR

func (*RTC_Periph) TMNU

func (p *RTC_Periph) TMNU() RMTSTR

func (*RTC_Periph) TMT

func (p *RTC_Periph) TMT() RMTSDR

func (*RTC_Periph) TMU

func (p *RTC_Periph) TMU() RMTSDR

func (*RTC_Periph) TPM

func (p *RTC_Periph) TPM() RMTSTR

func (*RTC_Periph) TSE

func (p *RTC_Periph) TSE() RMCR

func (*RTC_Periph) TSEDGE

func (p *RTC_Periph) TSEDGE() RMCR

func (*RTC_Periph) TSF

func (p *RTC_Periph) TSF() RMISR

func (*RTC_Periph) TSIE

func (p *RTC_Periph) TSIE() RMCR

func (*RTC_Periph) TSOVF

func (p *RTC_Periph) TSOVF() RMISR

func (*RTC_Periph) TSS

func (p *RTC_Periph) TSS() RMTSSSR

func (*RTC_Periph) TST

func (p *RTC_Periph) TST() RMTSTR

func (*RTC_Periph) TSU

func (p *RTC_Periph) TSU() RMTSTR

func (*RTC_Periph) TWDU

func (p *RTC_Periph) TWDU() RMTSDR

func (*RTC_Periph) WDU

func (p *RTC_Periph) WDU() RMDR

func (*RTC_Periph) WUCKSEL

func (p *RTC_Periph) WUCKSEL() RMCR

func (*RTC_Periph) WUT

func (p *RTC_Periph) WUT() RMWUTR

func (*RTC_Periph) WUTE

func (p *RTC_Periph) WUTE() RMCR

func (*RTC_Periph) WUTF

func (p *RTC_Periph) WUTF() RMISR

func (*RTC_Periph) WUTIE

func (p *RTC_Periph) WUTIE() RMCR

func (*RTC_Periph) WUTWF

func (p *RTC_Periph) WUTWF() RMISR

func (*RTC_Periph) YT

func (p *RTC_Periph) YT() RMDR

func (*RTC_Periph) YU

func (p *RTC_Periph) YU() RMDR

type RTR

type RTR struct{ mmio.U32 }

func (*RTR) AtomicClearBits

func (r *RTR) AtomicClearBits(mask TR)

func (*RTR) AtomicSetBits

func (r *RTR) AtomicSetBits(mask TR)

func (*RTR) AtomicStoreBits

func (r *RTR) AtomicStoreBits(mask, b TR)

func (*RTR) Bits

func (r *RTR) Bits(mask TR) TR

func (*RTR) ClearBits

func (r *RTR) ClearBits(mask TR)

func (*RTR) Load

func (r *RTR) Load() TR

func (*RTR) SetBits

func (r *RTR) SetBits(mask TR)

func (*RTR) Store

func (r *RTR) Store(b TR)

func (*RTR) StoreBits

func (r *RTR) StoreBits(mask, b TR)

type RTSDR

type RTSDR struct{ mmio.U32 }

func (*RTSDR) AtomicClearBits

func (r *RTSDR) AtomicClearBits(mask TSDR)

func (*RTSDR) AtomicSetBits

func (r *RTSDR) AtomicSetBits(mask TSDR)

func (*RTSDR) AtomicStoreBits

func (r *RTSDR) AtomicStoreBits(mask, b TSDR)

func (*RTSDR) Bits

func (r *RTSDR) Bits(mask TSDR) TSDR

func (*RTSDR) ClearBits

func (r *RTSDR) ClearBits(mask TSDR)

func (*RTSDR) Load

func (r *RTSDR) Load() TSDR

func (*RTSDR) SetBits

func (r *RTSDR) SetBits(mask TSDR)

func (*RTSDR) Store

func (r *RTSDR) Store(b TSDR)

func (*RTSDR) StoreBits

func (r *RTSDR) StoreBits(mask, b TSDR)

type RTSSSR

type RTSSSR struct{ mmio.U32 }

func (*RTSSSR) AtomicClearBits

func (r *RTSSSR) AtomicClearBits(mask TSSSR)

func (*RTSSSR) AtomicSetBits

func (r *RTSSSR) AtomicSetBits(mask TSSSR)

func (*RTSSSR) AtomicStoreBits

func (r *RTSSSR) AtomicStoreBits(mask, b TSSSR)

func (*RTSSSR) Bits

func (r *RTSSSR) Bits(mask TSSSR) TSSSR

func (*RTSSSR) ClearBits

func (r *RTSSSR) ClearBits(mask TSSSR)

func (*RTSSSR) Load

func (r *RTSSSR) Load() TSSSR

func (*RTSSSR) SetBits

func (r *RTSSSR) SetBits(mask TSSSR)

func (*RTSSSR) Store

func (r *RTSSSR) Store(b TSSSR)

func (*RTSSSR) StoreBits

func (r *RTSSSR) StoreBits(mask, b TSSSR)

type RTSTR

type RTSTR struct{ mmio.U32 }

func (*RTSTR) AtomicClearBits

func (r *RTSTR) AtomicClearBits(mask TSTR)

func (*RTSTR) AtomicSetBits

func (r *RTSTR) AtomicSetBits(mask TSTR)

func (*RTSTR) AtomicStoreBits

func (r *RTSTR) AtomicStoreBits(mask, b TSTR)

func (*RTSTR) Bits

func (r *RTSTR) Bits(mask TSTR) TSTR

func (*RTSTR) ClearBits

func (r *RTSTR) ClearBits(mask TSTR)

func (*RTSTR) Load

func (r *RTSTR) Load() TSTR

func (*RTSTR) SetBits

func (r *RTSTR) SetBits(mask TSTR)

func (*RTSTR) Store

func (r *RTSTR) Store(b TSTR)

func (*RTSTR) StoreBits

func (r *RTSTR) StoreBits(mask, b TSTR)

type RWPR

type RWPR struct{ mmio.U32 }

func (*RWPR) AtomicClearBits

func (r *RWPR) AtomicClearBits(mask WPR)

func (*RWPR) AtomicSetBits

func (r *RWPR) AtomicSetBits(mask WPR)

func (*RWPR) AtomicStoreBits

func (r *RWPR) AtomicStoreBits(mask, b WPR)

func (*RWPR) Bits

func (r *RWPR) Bits(mask WPR) WPR

func (*RWPR) ClearBits

func (r *RWPR) ClearBits(mask WPR)

func (*RWPR) Load

func (r *RWPR) Load() WPR

func (*RWPR) SetBits

func (r *RWPR) SetBits(mask WPR)

func (*RWPR) Store

func (r *RWPR) Store(b WPR)

func (*RWPR) StoreBits

func (r *RWPR) StoreBits(mask, b WPR)

type RWUTR

type RWUTR struct{ mmio.U32 }

func (*RWUTR) AtomicClearBits

func (r *RWUTR) AtomicClearBits(mask WUTR)

func (*RWUTR) AtomicSetBits

func (r *RWUTR) AtomicSetBits(mask WUTR)

func (*RWUTR) AtomicStoreBits

func (r *RWUTR) AtomicStoreBits(mask, b WUTR)

func (*RWUTR) Bits

func (r *RWUTR) Bits(mask WUTR) WUTR

func (*RWUTR) ClearBits

func (r *RWUTR) ClearBits(mask WUTR)

func (*RWUTR) Load

func (r *RWUTR) Load() WUTR

func (*RWUTR) SetBits

func (r *RWUTR) SetBits(mask WUTR)

func (*RWUTR) Store

func (r *RWUTR) Store(b WUTR)

func (*RWUTR) StoreBits

func (r *RWUTR) StoreBits(mask, b WUTR)

type SHIFTR

type SHIFTR uint32
const (
	SUBFS SHIFTR = 0x7FFF << 0 //+
	ADD1S SHIFTR = 0x01 << 31  //+
)

func (SHIFTR) Field

func (b SHIFTR) Field(mask SHIFTR) int

func (SHIFTR) J

func (mask SHIFTR) J(v int) SHIFTR

type SSR

type SSR uint32
const (
	SS SSR = 0xFFFF << 0 //+
)

func (SSR) Field

func (b SSR) Field(mask SSR) int

func (SSR) J

func (mask SSR) J(v int) SSR

type TAFCR

type TAFCR uint32
const (
	PC15MODE  TAFCR = 0x01 << 23 //+
	PC15VALUE TAFCR = 0x01 << 22 //+
	PC14MODE  TAFCR = 0x01 << 21 //+
	PC14VALUE TAFCR = 0x01 << 20 //+
	PC13MODE  TAFCR = 0x01 << 19 //+
	PC13VALUE TAFCR = 0x01 << 18 //+
	TAMPPUDIS TAFCR = 0x01 << 15 //+
	TAMPPRCH  TAFCR = 0x03 << 13 //+
	TAMPFLT   TAFCR = 0x03 << 11 //+
	TAMPFREQ  TAFCR = 0x07 << 8  //+
	TAMPTS    TAFCR = 0x01 << 7  //+
	TAMP3TRG  TAFCR = 0x01 << 6  //+
	TAMP3E    TAFCR = 0x01 << 5  //+
	TAMP2TRG  TAFCR = 0x01 << 4  //+
	TAMP2E    TAFCR = 0x01 << 3  //+
	TAMPIE    TAFCR = 0x01 << 2  //+
	TAMP1TRG  TAFCR = 0x01 << 1  //+
	TAMP1E    TAFCR = 0x01 << 0  //+
)

func (TAFCR) Field

func (b TAFCR) Field(mask TAFCR) int

func (TAFCR) J

func (mask TAFCR) J(v int) TAFCR

type TR

type TR uint32
const (
	PM  TR = 0x01 << 22 //+
	HT  TR = 0x03 << 20 //+
	HU  TR = 0x0F << 16 //+
	MNT TR = 0x07 << 12 //+
	MNU TR = 0x0F << 8  //+
	ST  TR = 0x07 << 4  //+
	SU  TR = 0x0F << 0  //+
)

func (TR) Field

func (b TR) Field(mask TR) int

func (TR) J

func (mask TR) J(v int) TR

type TSDR

type TSDR uint32
const (
	TWDU TSDR = 0x07 << 13 //+
	TMT  TSDR = 0x01 << 12 //+
	TMU  TSDR = 0x0F << 8  //+
	TDT  TSDR = 0x03 << 4  //+
	TDU  TSDR = 0x0F << 0  //+
)

func (TSDR) Field

func (b TSDR) Field(mask TSDR) int

func (TSDR) J

func (mask TSDR) J(v int) TSDR

type TSSSR

type TSSSR uint32
const (
	TSS TSSSR = 0xFFFF << 0 //+
)

func (TSSSR) Field

func (b TSSSR) Field(mask TSSSR) int

func (TSSSR) J

func (mask TSSSR) J(v int) TSSSR

type TSTR

type TSTR uint32
const (
	TPM  TSTR = 0x01 << 22 //+
	THT  TSTR = 0x03 << 20 //+
	THU  TSTR = 0x0F << 16 //+
	TMNT TSTR = 0x07 << 12 //+
	TMNU TSTR = 0x0F << 8  //+
	TST  TSTR = 0x07 << 4  //+
	TSU  TSTR = 0x0F << 0  //+
)

func (TSTR) Field

func (b TSTR) Field(mask TSTR) int

func (TSTR) J

func (mask TSTR) J(v int) TSTR

type WPR

type WPR uint32
const (
	KEY WPR = 0xFF << 0 //+
)

func (WPR) Field

func (b WPR) Field(mask WPR) int

func (WPR) J

func (mask WPR) J(v int) WPR

type WUTR

type WUTR uint32
const (
	WUT WUTR = 0xFFFF << 0 //+
)

func (WUTR) Field

func (b WUTR) Field(mask WUTR) int

func (WUTR) J

func (mask WUTR) J(v int) WUTR

Jump to

Keyboard shortcuts

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