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 TAMPCR Tamper configuration register. 0x44 32 ALRMSSR[2] Alarm A, B subsecond registers. 0x4C 32 OR Option register. 0x50 32 BKPR[32] Backup registers.
Import:
stm32/o/f746xx/mmap
Index ¶
- Constants
- Variables
- type ALRMR
- type ALRMSSR
- type BKPR
- type CALR
- type CR
- type DR
- type ISR
- type OR
- type PRER
- type RALRMR
- func (r *RALRMR) AtomicClearBits(mask ALRMR)
- func (r *RALRMR) AtomicSetBits(mask ALRMR)
- func (r *RALRMR) AtomicStoreBits(mask, b ALRMR)
- func (r *RALRMR) Bits(mask ALRMR) ALRMR
- func (r *RALRMR) ClearBits(mask ALRMR)
- func (r *RALRMR) Load() ALRMR
- func (r *RALRMR) SetBits(mask ALRMR)
- func (r *RALRMR) Store(b ALRMR)
- func (r *RALRMR) StoreBits(mask, b ALRMR)
- type RALRMSSR
- func (r *RALRMSSR) AtomicClearBits(mask ALRMSSR)
- func (r *RALRMSSR) AtomicSetBits(mask ALRMSSR)
- func (r *RALRMSSR) AtomicStoreBits(mask, b ALRMSSR)
- func (r *RALRMSSR) Bits(mask ALRMSSR) ALRMSSR
- func (r *RALRMSSR) ClearBits(mask ALRMSSR)
- func (r *RALRMSSR) Load() ALRMSSR
- func (r *RALRMSSR) SetBits(mask ALRMSSR)
- func (r *RALRMSSR) Store(b ALRMSSR)
- func (r *RALRMSSR) StoreBits(mask, b ALRMSSR)
- type RBKPR
- func (r *RBKPR) AtomicClearBits(mask BKPR)
- func (r *RBKPR) AtomicSetBits(mask BKPR)
- func (r *RBKPR) AtomicStoreBits(mask, b BKPR)
- func (r *RBKPR) Bits(mask BKPR) BKPR
- func (r *RBKPR) ClearBits(mask BKPR)
- func (r *RBKPR) Load() BKPR
- func (r *RBKPR) SetBits(mask BKPR)
- func (r *RBKPR) Store(b BKPR)
- func (r *RBKPR) StoreBits(mask, b BKPR)
- type RCALR
- func (r *RCALR) AtomicClearBits(mask CALR)
- func (r *RCALR) AtomicSetBits(mask CALR)
- func (r *RCALR) AtomicStoreBits(mask, b CALR)
- func (r *RCALR) Bits(mask CALR) CALR
- func (r *RCALR) ClearBits(mask CALR)
- func (r *RCALR) Load() CALR
- func (r *RCALR) SetBits(mask CALR)
- func (r *RCALR) Store(b CALR)
- func (r *RCALR) StoreBits(mask, b CALR)
- type RCR
- type RDR
- type RISR
- func (r *RISR) AtomicClearBits(mask ISR)
- func (r *RISR) AtomicSetBits(mask ISR)
- func (r *RISR) AtomicStoreBits(mask, b ISR)
- func (r *RISR) Bits(mask ISR) ISR
- func (r *RISR) ClearBits(mask ISR)
- func (r *RISR) Load() ISR
- func (r *RISR) SetBits(mask ISR)
- func (r *RISR) Store(b ISR)
- func (r *RISR) StoreBits(mask, b ISR)
- type RMALRMR
- type RMALRMSSR
- type RMBKPR
- type RMCALR
- type RMCR
- type RMDR
- type RMISR
- type RMOR
- type RMPRER
- type RMSHIFTR
- type RMSSR
- type RMTAMPCR
- type RMTR
- type RMTSDR
- type RMTSSSR
- type RMTSTR
- type RMWPR
- type RMWUTR
- type ROR
- type RPRER
- func (r *RPRER) AtomicClearBits(mask PRER)
- func (r *RPRER) AtomicSetBits(mask PRER)
- func (r *RPRER) AtomicStoreBits(mask, b PRER)
- func (r *RPRER) Bits(mask PRER) PRER
- func (r *RPRER) ClearBits(mask PRER)
- func (r *RPRER) Load() PRER
- func (r *RPRER) SetBits(mask PRER)
- func (r *RPRER) Store(b PRER)
- func (r *RPRER) StoreBits(mask, b PRER)
- type RSHIFTR
- func (r *RSHIFTR) AtomicClearBits(mask SHIFTR)
- func (r *RSHIFTR) AtomicSetBits(mask SHIFTR)
- func (r *RSHIFTR) AtomicStoreBits(mask, b SHIFTR)
- func (r *RSHIFTR) Bits(mask SHIFTR) SHIFTR
- func (r *RSHIFTR) ClearBits(mask SHIFTR)
- func (r *RSHIFTR) Load() SHIFTR
- func (r *RSHIFTR) SetBits(mask SHIFTR)
- func (r *RSHIFTR) Store(b SHIFTR)
- func (r *RSHIFTR) StoreBits(mask, b SHIFTR)
- type RSSR
- func (r *RSSR) AtomicClearBits(mask SSR)
- func (r *RSSR) AtomicSetBits(mask SSR)
- func (r *RSSR) AtomicStoreBits(mask, b SSR)
- func (r *RSSR) Bits(mask SSR) SSR
- func (r *RSSR) ClearBits(mask SSR)
- func (r *RSSR) Load() SSR
- func (r *RSSR) SetBits(mask SSR)
- func (r *RSSR) Store(b SSR)
- func (r *RSSR) StoreBits(mask, b SSR)
- type RTAMPCR
- func (r *RTAMPCR) AtomicClearBits(mask TAMPCR)
- func (r *RTAMPCR) AtomicSetBits(mask TAMPCR)
- func (r *RTAMPCR) AtomicStoreBits(mask, b TAMPCR)
- func (r *RTAMPCR) Bits(mask TAMPCR) TAMPCR
- func (r *RTAMPCR) ClearBits(mask TAMPCR)
- func (r *RTAMPCR) Load() TAMPCR
- func (r *RTAMPCR) SetBits(mask TAMPCR)
- func (r *RTAMPCR) Store(b TAMPCR)
- func (r *RTAMPCR) StoreBits(mask, b TAMPCR)
- type RTC_Periph
- func (p *RTC_Periph) ADD1H() RMCR
- func (p *RTC_Periph) ADD1S() RMSHIFTR
- func (p *RTC_Periph) ADT(n int) RMALRMR
- func (p *RTC_Periph) ADU(n int) RMALRMR
- func (p *RTC_Periph) AHT(n int) RMALRMR
- func (p *RTC_Periph) AHU(n int) RMALRMR
- func (p *RTC_Periph) ALARMTYPE() RMOR
- func (p *RTC_Periph) ALRAE() RMCR
- func (p *RTC_Periph) ALRAF() RMISR
- func (p *RTC_Periph) ALRAIE() RMCR
- func (p *RTC_Periph) ALRAWF() RMISR
- func (p *RTC_Periph) ALRBE() RMCR
- func (p *RTC_Periph) ALRBF() RMISR
- func (p *RTC_Periph) ALRBIE() RMCR
- func (p *RTC_Periph) ALRBWF() RMISR
- func (p *RTC_Periph) AMASKSS(n int) RMALRMSSR
- func (p *RTC_Periph) AMNT(n int) RMALRMR
- func (p *RTC_Periph) AMNU(n int) RMALRMR
- func (p *RTC_Periph) AMSK1(n int) RMALRMR
- func (p *RTC_Periph) AMSK2(n int) RMALRMR
- func (p *RTC_Periph) AMSK3(n int) RMALRMR
- func (p *RTC_Periph) AMSK4(n int) RMALRMR
- func (p *RTC_Periph) APM(n int) RMALRMR
- func (p *RTC_Periph) ASS(n int) RMALRMSSR
- func (p *RTC_Periph) AST(n int) RMALRMR
- func (p *RTC_Periph) ASU(n int) RMALRMR
- func (p *RTC_Periph) AWDSEL(n int) RMALRMR
- func (p *RTC_Periph) BKP() RMCR
- func (p *RTC_Periph) BYPSHAD() RMCR
- func (p *RTC_Periph) BaseAddr() uintptr
- func (p *RTC_Periph) CALM() RMCALR
- func (p *RTC_Periph) CALP() RMCALR
- func (p *RTC_Periph) CALW16() RMCALR
- func (p *RTC_Periph) CALW8() RMCALR
- func (p *RTC_Periph) COE() RMCR
- func (p *RTC_Periph) COSEL() RMCR
- func (p *RTC_Periph) DT() RMDR
- func (p *RTC_Periph) DU() RMDR
- func (p *RTC_Periph) FMT() RMCR
- func (p *RTC_Periph) HT() RMTR
- func (p *RTC_Periph) HU() RMTR
- func (p *RTC_Periph) INIT() RMISR
- func (p *RTC_Periph) INITF() RMISR
- func (p *RTC_Periph) INITS() RMISR
- func (p *RTC_Periph) ITSE() RMCR
- func (p *RTC_Periph) ITSF() RMISR
- func (p *RTC_Periph) KEY() RMWPR
- func (p *RTC_Periph) MNT() RMTR
- func (p *RTC_Periph) MNU() RMTR
- func (p *RTC_Periph) MT() RMDR
- func (p *RTC_Periph) MU() RMDR
- func (p *RTC_Periph) OSEL() RMCR
- func (p *RTC_Periph) PM() RMTR
- func (p *RTC_Periph) POL() RMCR
- func (p *RTC_Periph) PREDIV_A() RMPRER
- func (p *RTC_Periph) PREDIV_S() RMPRER
- func (p *RTC_Periph) RECALPF() RMISR
- func (p *RTC_Periph) REFCKON() RMCR
- func (p *RTC_Periph) RSF() RMISR
- func (p *RTC_Periph) SHPF() RMISR
- func (p *RTC_Periph) SS() RMSSR
- func (p *RTC_Periph) ST() RMTR
- func (p *RTC_Periph) SU() RMTR
- func (p *RTC_Periph) SUB1H() RMCR
- func (p *RTC_Periph) SUBFS() RMSHIFTR
- func (p *RTC_Periph) TAMP1E() RMTAMPCR
- func (p *RTC_Periph) TAMP1F() RMISR
- func (p *RTC_Periph) TAMP1IE() RMTAMPCR
- func (p *RTC_Periph) TAMP1MF() RMTAMPCR
- func (p *RTC_Periph) TAMP1NOERASE() RMTAMPCR
- func (p *RTC_Periph) TAMP1TRG() RMTAMPCR
- func (p *RTC_Periph) TAMP2E() RMTAMPCR
- func (p *RTC_Periph) TAMP2F() RMISR
- func (p *RTC_Periph) TAMP2IE() RMTAMPCR
- func (p *RTC_Periph) TAMP2MF() RMTAMPCR
- func (p *RTC_Periph) TAMP2NOERASE() RMTAMPCR
- func (p *RTC_Periph) TAMP2TRG() RMTAMPCR
- func (p *RTC_Periph) TAMP3E() RMTAMPCR
- func (p *RTC_Periph) TAMP3F() RMISR
- func (p *RTC_Periph) TAMP3IE() RMTAMPCR
- func (p *RTC_Periph) TAMP3MF() RMTAMPCR
- func (p *RTC_Periph) TAMP3NOERASE() RMTAMPCR
- func (p *RTC_Periph) TAMP3TRG() RMTAMPCR
- func (p *RTC_Periph) TAMPFLT() RMTAMPCR
- func (p *RTC_Periph) TAMPFREQ() RMTAMPCR
- func (p *RTC_Periph) TAMPIE() RMTAMPCR
- func (p *RTC_Periph) TAMPPRCH() RMTAMPCR
- func (p *RTC_Periph) TAMPPUDIS() RMTAMPCR
- func (p *RTC_Periph) TAMPTS() RMTAMPCR
- func (p *RTC_Periph) TDT() RMTSDR
- func (p *RTC_Periph) TDU() RMTSDR
- func (p *RTC_Periph) THT() RMTSTR
- func (p *RTC_Periph) THU() RMTSTR
- func (p *RTC_Periph) TMNT() RMTSTR
- func (p *RTC_Periph) TMNU() RMTSTR
- func (p *RTC_Periph) TMT() RMTSDR
- func (p *RTC_Periph) TMU() RMTSDR
- func (p *RTC_Periph) TPM() RMTSTR
- func (p *RTC_Periph) TSE() RMCR
- func (p *RTC_Periph) TSEDGE() RMCR
- func (p *RTC_Periph) TSF() RMISR
- func (p *RTC_Periph) TSIE() RMCR
- func (p *RTC_Periph) TSINSEL() RMOR
- func (p *RTC_Periph) TSOVF() RMISR
- func (p *RTC_Periph) TSS() RMTSSSR
- func (p *RTC_Periph) TST() RMTSTR
- func (p *RTC_Periph) TSU() RMTSTR
- func (p *RTC_Periph) TWDU() RMTSDR
- func (p *RTC_Periph) WDU() RMDR
- func (p *RTC_Periph) WUCKSEL() RMCR
- func (p *RTC_Periph) WUT() RMWUTR
- func (p *RTC_Periph) WUTE() RMCR
- func (p *RTC_Periph) WUTF() RMISR
- func (p *RTC_Periph) WUTIE() RMCR
- func (p *RTC_Periph) WUTWF() RMISR
- func (p *RTC_Periph) YT() RMDR
- func (p *RTC_Periph) YU() RMDR
- type RTR
- type RTSDR
- func (r *RTSDR) AtomicClearBits(mask TSDR)
- func (r *RTSDR) AtomicSetBits(mask TSDR)
- func (r *RTSDR) AtomicStoreBits(mask, b TSDR)
- func (r *RTSDR) Bits(mask TSDR) TSDR
- func (r *RTSDR) ClearBits(mask TSDR)
- func (r *RTSDR) Load() TSDR
- func (r *RTSDR) SetBits(mask TSDR)
- func (r *RTSDR) Store(b TSDR)
- func (r *RTSDR) StoreBits(mask, b TSDR)
- type RTSSSR
- func (r *RTSSSR) AtomicClearBits(mask TSSSR)
- func (r *RTSSSR) AtomicSetBits(mask TSSSR)
- func (r *RTSSSR) AtomicStoreBits(mask, b TSSSR)
- func (r *RTSSSR) Bits(mask TSSSR) TSSSR
- func (r *RTSSSR) ClearBits(mask TSSSR)
- func (r *RTSSSR) Load() TSSSR
- func (r *RTSSSR) SetBits(mask TSSSR)
- func (r *RTSSSR) Store(b TSSSR)
- func (r *RTSSSR) StoreBits(mask, b TSSSR)
- type RTSTR
- func (r *RTSTR) AtomicClearBits(mask TSTR)
- func (r *RTSTR) AtomicSetBits(mask TSTR)
- func (r *RTSTR) AtomicStoreBits(mask, b TSTR)
- func (r *RTSTR) Bits(mask TSTR) TSTR
- func (r *RTSTR) ClearBits(mask TSTR)
- func (r *RTSTR) Load() TSTR
- func (r *RTSTR) SetBits(mask TSTR)
- func (r *RTSTR) Store(b TSTR)
- func (r *RTSTR) StoreBits(mask, b TSTR)
- type RWPR
- func (r *RWPR) AtomicClearBits(mask WPR)
- func (r *RWPR) AtomicSetBits(mask WPR)
- func (r *RWPR) AtomicStoreBits(mask, b WPR)
- func (r *RWPR) Bits(mask WPR) WPR
- func (r *RWPR) ClearBits(mask WPR)
- func (r *RWPR) Load() WPR
- func (r *RWPR) SetBits(mask WPR)
- func (r *RWPR) Store(b WPR)
- func (r *RWPR) StoreBits(mask, b WPR)
- type RWUTR
- func (r *RWUTR) AtomicClearBits(mask WUTR)
- func (r *RWUTR) AtomicSetBits(mask WUTR)
- func (r *RWUTR) AtomicStoreBits(mask, b WUTR)
- func (r *RWUTR) Bits(mask WUTR) WUTR
- func (r *RWUTR) ClearBits(mask WUTR)
- func (r *RWUTR) Load() WUTR
- func (r *RWUTR) SetBits(mask WUTR)
- func (r *RWUTR) Store(b WUTR)
- func (r *RWUTR) StoreBits(mask, b WUTR)
- type SHIFTR
- type SSR
- type TAMPCR
- type TR
- type TSDR
- type TSSSR
- type TSTR
- type WPR
- type WUTR
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 ( ITSEn = 24 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 ( ITSFn = 17 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 ( TAMP3MFn = 24 TAMP3NOERASEn = 23 TAMP3IEn = 22 TAMP2MFn = 21 TAMP2NOERASEn = 20 TAMP2IEn = 19 TAMP1MFn = 18 TAMP1NOERASEn = 17 TAMP1IEn = 16 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 ( TSINSELn = 1 ALARMTYPEn = 3 )
View Source
const (
KEYn = 0
)
View Source
const (
SSn = 0
)
View Source
const (
TSSn = 0
)
View Source
const (
WUTn = 0
)
Variables ¶
View Source
var RTC = (*RTC_Periph)(unsafe.Pointer(uintptr(mmap.RTC_BASE)))
Functions ¶
This section is empty.
Types ¶
type ALRMR ¶
type ALRMR uint32
const ( AMSK4 ALRMR = 0x01 << 31 //+ AWDSEL ALRMR = 0x01 << 30 //+ ADT ALRMR = 0x03 << 28 //+ ADT_0 ALRMR = 0x01 << 28 ADT_1 ALRMR = 0x02 << 28 ADU ALRMR = 0x0F << 24 //+ ADU_0 ALRMR = 0x01 << 24 ADU_1 ALRMR = 0x02 << 24 ADU_2 ALRMR = 0x04 << 24 ADU_3 ALRMR = 0x08 << 24 AMSK3 ALRMR = 0x01 << 23 //+ APM ALRMR = 0x01 << 22 //+ AHT ALRMR = 0x03 << 20 //+ AHT_0 ALRMR = 0x01 << 20 AHT_1 ALRMR = 0x02 << 20 AHU ALRMR = 0x0F << 16 //+ AHU_0 ALRMR = 0x01 << 16 AHU_1 ALRMR = 0x02 << 16 AHU_2 ALRMR = 0x04 << 16 AHU_3 ALRMR = 0x08 << 16 AMSK2 ALRMR = 0x01 << 15 //+ AMNT ALRMR = 0x07 << 12 //+ AMNT_0 ALRMR = 0x01 << 12 AMNT_1 ALRMR = 0x02 << 12 AMNT_2 ALRMR = 0x04 << 12 AMNU ALRMR = 0x0F << 8 //+ AMNU_0 ALRMR = 0x01 << 8 AMNU_1 ALRMR = 0x02 << 8 AMNU_2 ALRMR = 0x04 << 8 AMNU_3 ALRMR = 0x08 << 8 AMSK1 ALRMR = 0x01 << 7 //+ AST ALRMR = 0x07 << 4 //+ AST_0 ALRMR = 0x01 << 4 AST_1 ALRMR = 0x02 << 4 AST_2 ALRMR = 0x04 << 4 ASU ALRMR = 0x0F << 0 //+ ASU_0 ALRMR = 0x01 << 0 ASU_1 ALRMR = 0x02 << 0 ASU_2 ALRMR = 0x04 << 0 ASU_3 ALRMR = 0x08 << 0 )
type CALR ¶
type CALR uint32
const ( CALP CALR = 0x01 << 15 //+ CALW8 CALR = 0x01 << 14 //+ CALW16 CALR = 0x01 << 13 //+ CALM CALR = 0x1FF << 0 //+ CALM_0 CALR = 0x01 << 0 CALM_1 CALR = 0x02 << 0 CALM_2 CALR = 0x04 << 0 CALM_3 CALR = 0x08 << 0 CALM_4 CALR = 0x10 << 0 CALM_5 CALR = 0x20 << 0 CALM_6 CALR = 0x40 << 0 CALM_7 CALR = 0x80 << 0 CALM_8 CALR = 0x100 << 0 )
type CR ¶
type CR uint32
const ( ITSE CR = 0x01 << 24 //+ COE CR = 0x01 << 23 //+ OSEL CR = 0x03 << 21 //+ OSEL_0 CR = 0x01 << 21 OSEL_1 CR = 0x02 << 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 //+ WUCKSEL_0 CR = 0x01 << 0 WUCKSEL_1 CR = 0x02 << 0 WUCKSEL_2 CR = 0x04 << 0 )
type DR ¶
type DR uint32
const ( YT DR = 0x0F << 20 //+ YT_0 DR = 0x01 << 20 YT_1 DR = 0x02 << 20 YT_2 DR = 0x04 << 20 YT_3 DR = 0x08 << 20 YU DR = 0x0F << 16 //+ YU_0 DR = 0x01 << 16 YU_1 DR = 0x02 << 16 YU_2 DR = 0x04 << 16 YU_3 DR = 0x08 << 16 WDU DR = 0x07 << 13 //+ WDU_0 DR = 0x01 << 13 WDU_1 DR = 0x02 << 13 WDU_2 DR = 0x04 << 13 MT DR = 0x01 << 12 //+ MU DR = 0x0F << 8 //+ MU_0 DR = 0x01 << 8 MU_1 DR = 0x02 << 8 MU_2 DR = 0x04 << 8 MU_3 DR = 0x08 << 8 DT DR = 0x03 << 4 //+ DT_0 DR = 0x01 << 4 DT_1 DR = 0x02 << 4 DU DR = 0x0F << 0 //+ DU_0 DR = 0x01 << 0 DU_1 DR = 0x02 << 0 DU_2 DR = 0x04 << 0 DU_3 DR = 0x08 << 0 )
type ISR ¶
type ISR uint32
const ( ITSF ISR = 0x01 << 17 //+ 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 //+ )
type RALRMR ¶
func (*RALRMR) AtomicClearBits ¶
func (*RALRMR) AtomicSetBits ¶
func (*RALRMR) AtomicStoreBits ¶
type RALRMSSR ¶
func (*RALRMSSR) AtomicClearBits ¶
func (*RALRMSSR) AtomicSetBits ¶
func (*RALRMSSR) AtomicStoreBits ¶
type RBKPR ¶
func (*RBKPR) AtomicClearBits ¶
func (*RBKPR) AtomicSetBits ¶
func (*RBKPR) AtomicStoreBits ¶
type RCALR ¶
func (*RCALR) AtomicClearBits ¶
func (*RCALR) AtomicSetBits ¶
func (*RCALR) AtomicStoreBits ¶
type RISR ¶
func (*RISR) AtomicClearBits ¶
func (*RISR) AtomicSetBits ¶
func (*RISR) AtomicStoreBits ¶
type RPRER ¶
func (*RPRER) AtomicClearBits ¶
func (*RPRER) AtomicSetBits ¶
func (*RPRER) AtomicStoreBits ¶
type RSHIFTR ¶
func (*RSHIFTR) AtomicClearBits ¶
func (*RSHIFTR) AtomicSetBits ¶
func (*RSHIFTR) AtomicStoreBits ¶
type RSSR ¶
func (*RSSR) AtomicClearBits ¶
func (*RSSR) AtomicSetBits ¶
func (*RSSR) AtomicStoreBits ¶
type RTAMPCR ¶
func (*RTAMPCR) AtomicClearBits ¶
func (*RTAMPCR) AtomicSetBits ¶
func (*RTAMPCR) AtomicStoreBits ¶
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 TAMPCR RTAMPCR ALRMSSR [2]RALRMSSR OR ROR BKPR [32]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) ALARMTYPE ¶
func (p *RTC_Periph) ALARMTYPE() RMOR
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) ITSE ¶
func (p *RTC_Periph) ITSE() RMCR
func (*RTC_Periph) ITSF ¶
func (p *RTC_Periph) ITSF() 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) 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() RMTAMPCR
func (*RTC_Periph) TAMP1F ¶
func (p *RTC_Periph) TAMP1F() RMISR
func (*RTC_Periph) TAMP1IE ¶
func (p *RTC_Periph) TAMP1IE() RMTAMPCR
func (*RTC_Periph) TAMP1MF ¶
func (p *RTC_Periph) TAMP1MF() RMTAMPCR
func (*RTC_Periph) TAMP1NOERASE ¶
func (p *RTC_Periph) TAMP1NOERASE() RMTAMPCR
func (*RTC_Periph) TAMP1TRG ¶
func (p *RTC_Periph) TAMP1TRG() RMTAMPCR
func (*RTC_Periph) TAMP2E ¶
func (p *RTC_Periph) TAMP2E() RMTAMPCR
func (*RTC_Periph) TAMP2F ¶
func (p *RTC_Periph) TAMP2F() RMISR
func (*RTC_Periph) TAMP2IE ¶
func (p *RTC_Periph) TAMP2IE() RMTAMPCR
func (*RTC_Periph) TAMP2MF ¶
func (p *RTC_Periph) TAMP2MF() RMTAMPCR
func (*RTC_Periph) TAMP2NOERASE ¶
func (p *RTC_Periph) TAMP2NOERASE() RMTAMPCR
func (*RTC_Periph) TAMP2TRG ¶
func (p *RTC_Periph) TAMP2TRG() RMTAMPCR
func (*RTC_Periph) TAMP3E ¶
func (p *RTC_Periph) TAMP3E() RMTAMPCR
func (*RTC_Periph) TAMP3F ¶
func (p *RTC_Periph) TAMP3F() RMISR
func (*RTC_Periph) TAMP3IE ¶
func (p *RTC_Periph) TAMP3IE() RMTAMPCR
func (*RTC_Periph) TAMP3MF ¶
func (p *RTC_Periph) TAMP3MF() RMTAMPCR
func (*RTC_Periph) TAMP3NOERASE ¶
func (p *RTC_Periph) TAMP3NOERASE() RMTAMPCR
func (*RTC_Periph) TAMP3TRG ¶
func (p *RTC_Periph) TAMP3TRG() RMTAMPCR
func (*RTC_Periph) TAMPFLT ¶
func (p *RTC_Periph) TAMPFLT() RMTAMPCR
func (*RTC_Periph) TAMPFREQ ¶
func (p *RTC_Periph) TAMPFREQ() RMTAMPCR
func (*RTC_Periph) TAMPIE ¶
func (p *RTC_Periph) TAMPIE() RMTAMPCR
func (*RTC_Periph) TAMPPRCH ¶
func (p *RTC_Periph) TAMPPRCH() RMTAMPCR
func (*RTC_Periph) TAMPPUDIS ¶
func (p *RTC_Periph) TAMPPUDIS() RMTAMPCR
func (*RTC_Periph) TAMPTS ¶
func (p *RTC_Periph) TAMPTS() RMTAMPCR
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) TSINSEL ¶
func (p *RTC_Periph) TSINSEL() RMOR
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 RTSDR ¶
func (*RTSDR) AtomicClearBits ¶
func (*RTSDR) AtomicSetBits ¶
func (*RTSDR) AtomicStoreBits ¶
type RTSSSR ¶
func (*RTSSSR) AtomicClearBits ¶
func (*RTSSSR) AtomicSetBits ¶
func (*RTSSSR) AtomicStoreBits ¶
type RTSTR ¶
func (*RTSTR) AtomicClearBits ¶
func (*RTSTR) AtomicSetBits ¶
func (*RTSTR) AtomicStoreBits ¶
type RWPR ¶
func (*RWPR) AtomicClearBits ¶
func (*RWPR) AtomicSetBits ¶
func (*RWPR) AtomicStoreBits ¶
type RWUTR ¶
func (*RWUTR) AtomicClearBits ¶
func (*RWUTR) AtomicSetBits ¶
func (*RWUTR) AtomicStoreBits ¶
type TAMPCR ¶
type TAMPCR uint32
const ( TAMP3MF TAMPCR = 0x01 << 24 //+ TAMP3NOERASE TAMPCR = 0x01 << 23 //+ TAMP3IE TAMPCR = 0x01 << 22 //+ TAMP2MF TAMPCR = 0x01 << 21 //+ TAMP2NOERASE TAMPCR = 0x01 << 20 //+ TAMP2IE TAMPCR = 0x01 << 19 //+ TAMP1MF TAMPCR = 0x01 << 18 //+ TAMP1NOERASE TAMPCR = 0x01 << 17 //+ TAMP1IE TAMPCR = 0x01 << 16 //+ TAMPPUDIS TAMPCR = 0x01 << 15 //+ TAMPPRCH TAMPCR = 0x03 << 13 //+ TAMPPRCH_0 TAMPCR = 0x01 << 13 TAMPPRCH_1 TAMPCR = 0x02 << 13 TAMPFLT TAMPCR = 0x03 << 11 //+ TAMPFLT_0 TAMPCR = 0x01 << 11 TAMPFLT_1 TAMPCR = 0x02 << 11 TAMPFREQ TAMPCR = 0x07 << 8 //+ TAMPFREQ_0 TAMPCR = 0x01 << 8 TAMPFREQ_1 TAMPCR = 0x02 << 8 TAMPFREQ_2 TAMPCR = 0x04 << 8 TAMPTS TAMPCR = 0x01 << 7 //+ TAMP3TRG TAMPCR = 0x01 << 6 //+ TAMP3E TAMPCR = 0x01 << 5 //+ TAMP2TRG TAMPCR = 0x01 << 4 //+ TAMP2E TAMPCR = 0x01 << 3 //+ TAMPIE TAMPCR = 0x01 << 2 //+ TAMP1TRG TAMPCR = 0x01 << 1 //+ TAMP1E TAMPCR = 0x01 << 0 //+ )
type TR ¶
type TR uint32
const ( PM TR = 0x01 << 22 //+ HT TR = 0x03 << 20 //+ HT_0 TR = 0x01 << 20 HT_1 TR = 0x02 << 20 HU TR = 0x0F << 16 //+ HU_0 TR = 0x01 << 16 HU_1 TR = 0x02 << 16 HU_2 TR = 0x04 << 16 HU_3 TR = 0x08 << 16 MNT TR = 0x07 << 12 //+ MNT_0 TR = 0x01 << 12 MNT_1 TR = 0x02 << 12 MNT_2 TR = 0x04 << 12 MNU TR = 0x0F << 8 //+ MNU_0 TR = 0x01 << 8 MNU_1 TR = 0x02 << 8 MNU_2 TR = 0x04 << 8 MNU_3 TR = 0x08 << 8 ST TR = 0x07 << 4 //+ ST_0 TR = 0x01 << 4 ST_1 TR = 0x02 << 4 ST_2 TR = 0x04 << 4 SU TR = 0x0F << 0 //+ SU_0 TR = 0x01 << 0 SU_1 TR = 0x02 << 0 SU_2 TR = 0x04 << 0 SU_3 TR = 0x08 << 0 )
type TSDR ¶
type TSDR uint32
const ( TWDU TSDR = 0x07 << 13 //+ TWDU_0 TSDR = 0x01 << 13 TWDU_1 TSDR = 0x02 << 13 TWDU_2 TSDR = 0x04 << 13 TMT TSDR = 0x01 << 12 //+ TMU TSDR = 0x0F << 8 //+ TMU_0 TSDR = 0x01 << 8 TMU_1 TSDR = 0x02 << 8 TMU_2 TSDR = 0x04 << 8 TMU_3 TSDR = 0x08 << 8 TDT TSDR = 0x03 << 4 //+ TDT_0 TSDR = 0x01 << 4 TDT_1 TSDR = 0x02 << 4 TDU TSDR = 0x0F << 0 //+ TDU_0 TSDR = 0x01 << 0 TDU_1 TSDR = 0x02 << 0 TDU_2 TSDR = 0x04 << 0 TDU_3 TSDR = 0x08 << 0 )
type TSTR ¶
type TSTR uint32
const ( TPM TSTR = 0x01 << 22 //+ THT TSTR = 0x03 << 20 //+ THT_0 TSTR = 0x01 << 20 THT_1 TSTR = 0x02 << 20 THU TSTR = 0x0F << 16 //+ THU_0 TSTR = 0x01 << 16 THU_1 TSTR = 0x02 << 16 THU_2 TSTR = 0x04 << 16 THU_3 TSTR = 0x08 << 16 TMNT TSTR = 0x07 << 12 //+ TMNT_0 TSTR = 0x01 << 12 TMNT_1 TSTR = 0x02 << 12 TMNT_2 TSTR = 0x04 << 12 TMNU TSTR = 0x0F << 8 //+ TMNU_0 TSTR = 0x01 << 8 TMNU_1 TSTR = 0x02 << 8 TMNU_2 TSTR = 0x04 << 8 TMNU_3 TSTR = 0x08 << 8 TST TSTR = 0x07 << 4 //+ TST_0 TSTR = 0x01 << 4 TST_1 TSTR = 0x02 << 4 TST_2 TSTR = 0x04 << 4 TSU TSTR = 0x0F << 0 //+ TSU_0 TSTR = 0x01 << 0 TSU_1 TSTR = 0x02 << 0 TSU_2 TSTR = 0x04 << 0 TSU_3 TSTR = 0x08 << 0 )
Click to show internal directories.
Click to hide internal directories.