Documentation ¶
Overview ¶
Package flash provides interface to FLASH Registers.
Peripheral: FLASH_Periph FLASH Registers. Instances:
FLASH mmap.FLASH_R_BASE
Registers:
0x00 32 ACR Access control register. 0x04 32 KEYR Key register. 0x08 32 OPTKEYR Option key register. 0x0C 32 SR Status register. 0x10 32 CR Control register. 0x14 32 OPTCR[2] Option control registers.
Import:
stm32/o/f746xx/mmap
Index ¶
- Constants
- Variables
- type ACR
- type CR
- type FLASH_Periph
- func (p *FLASH_Periph) ARTEN() RMACR
- func (p *FLASH_Periph) ARTRST() RMACR
- func (p *FLASH_Periph) BOR_LEV(n int) RMOPTCR
- func (p *FLASH_Periph) BSY() RMSR
- func (p *FLASH_Periph) BaseAddr() uintptr
- func (p *FLASH_Periph) EOP() RMSR
- func (p *FLASH_Periph) EOPIE() RMCR
- func (p *FLASH_Periph) ERRIE() RMCR
- func (p *FLASH_Periph) ERSERR() RMSR
- func (p *FLASH_Periph) IWDG_STDBY(n int) RMOPTCR
- func (p *FLASH_Periph) IWDG_STOP(n int) RMOPTCR
- func (p *FLASH_Periph) IWDG_SW(n int) RMOPTCR
- func (p *FLASH_Periph) LATENCY() RMACR
- func (p *FLASH_Periph) LOCK() RMCR
- func (p *FLASH_Periph) MER() RMCR
- func (p *FLASH_Periph) OPERR() RMSR
- func (p *FLASH_Periph) OPTLOCK(n int) RMOPTCR
- func (p *FLASH_Periph) OPTSTRT(n int) RMOPTCR
- func (p *FLASH_Periph) PG() RMCR
- func (p *FLASH_Periph) PGAERR() RMSR
- func (p *FLASH_Periph) PGPERR() RMSR
- func (p *FLASH_Periph) PRFTEN() RMACR
- func (p *FLASH_Periph) PSIZE() RMCR
- func (p *FLASH_Periph) RDP(n int) RMOPTCR
- func (p *FLASH_Periph) SER() RMCR
- func (p *FLASH_Periph) SNB() RMCR
- func (p *FLASH_Periph) STRT() RMCR
- func (p *FLASH_Periph) WRPERR() RMSR
- func (p *FLASH_Periph) WWDG_SW(n int) RMOPTCR
- type KEYR
- type OPTCR
- type OPTKEYR
- type RACR
- func (r *RACR) AtomicClearBits(mask ACR)
- func (r *RACR) AtomicSetBits(mask ACR)
- func (r *RACR) AtomicStoreBits(mask, b ACR)
- func (r *RACR) Bits(mask ACR) ACR
- func (r *RACR) ClearBits(mask ACR)
- func (r *RACR) Load() ACR
- func (r *RACR) SetBits(mask ACR)
- func (r *RACR) Store(b ACR)
- func (r *RACR) StoreBits(mask, b ACR)
- type RCR
- type RKEYR
- func (r *RKEYR) AtomicClearBits(mask KEYR)
- func (r *RKEYR) AtomicSetBits(mask KEYR)
- func (r *RKEYR) AtomicStoreBits(mask, b KEYR)
- func (r *RKEYR) Bits(mask KEYR) KEYR
- func (r *RKEYR) ClearBits(mask KEYR)
- func (r *RKEYR) Load() KEYR
- func (r *RKEYR) SetBits(mask KEYR)
- func (r *RKEYR) Store(b KEYR)
- func (r *RKEYR) StoreBits(mask, b KEYR)
- type RMACR
- type RMCR
- type RMKEYR
- type RMOPTCR
- type RMOPTKEYR
- type RMSR
- type ROPTCR
- func (r *ROPTCR) AtomicClearBits(mask OPTCR)
- func (r *ROPTCR) AtomicSetBits(mask OPTCR)
- func (r *ROPTCR) AtomicStoreBits(mask, b OPTCR)
- func (r *ROPTCR) Bits(mask OPTCR) OPTCR
- func (r *ROPTCR) ClearBits(mask OPTCR)
- func (r *ROPTCR) Load() OPTCR
- func (r *ROPTCR) SetBits(mask OPTCR)
- func (r *ROPTCR) Store(b OPTCR)
- func (r *ROPTCR) StoreBits(mask, b OPTCR)
- type ROPTKEYR
- func (r *ROPTKEYR) AtomicClearBits(mask OPTKEYR)
- func (r *ROPTKEYR) AtomicSetBits(mask OPTKEYR)
- func (r *ROPTKEYR) AtomicStoreBits(mask, b OPTKEYR)
- func (r *ROPTKEYR) Bits(mask OPTKEYR) OPTKEYR
- func (r *ROPTKEYR) ClearBits(mask OPTKEYR)
- func (r *ROPTKEYR) Load() OPTKEYR
- func (r *ROPTKEYR) SetBits(mask OPTKEYR)
- func (r *ROPTKEYR) Store(b OPTKEYR)
- func (r *ROPTKEYR) StoreBits(mask, b OPTKEYR)
- type RSR
- type SR
Constants ¶
View Source
const ( LATENCYn = 0 PRFTENn = 8 ARTENn = 9 ARTRSTn = 11 )
View Source
const ( EOPn = 0 OPERRn = 1 WRPERRn = 4 PGAERRn = 5 PGPERRn = 6 ERSERRn = 7 BSYn = 16 )
View Source
const ( PGn = 0 SERn = 1 MERn = 2 SNBn = 3 PSIZEn = 8 STRTn = 16 EOPIEn = 24 ERRIEn = 25 LOCKn = 31 )
View Source
const ( OPTLOCKn = 0 OPTSTRTn = 1 BOR_LEVn = 2 WWDG_SWn = 4 IWDG_SWn = 5 RDPn = 8 IWDG_STDBYn = 30 IWDG_STOPn = 31 )
Variables ¶
View Source
var FLASH = (*FLASH_Periph)(unsafe.Pointer(uintptr(mmap.FLASH_R_BASE)))
Functions ¶
This section is empty.
Types ¶
type ACR ¶
type ACR uint32
const ( LATENCY ACR = 0x0F << 0 //+ LATENCY_0WS ACR = 0x00 << 0 LATENCY_1WS ACR = 0x01 << 0 LATENCY_2WS ACR = 0x02 << 0 LATENCY_3WS ACR = 0x03 << 0 LATENCY_4WS ACR = 0x04 << 0 LATENCY_5WS ACR = 0x05 << 0 LATENCY_6WS ACR = 0x06 << 0 LATENCY_7WS ACR = 0x07 << 0 LATENCY_8WS ACR = 0x08 << 0 LATENCY_9WS ACR = 0x09 << 0 LATENCY_10WS ACR = 0x0A << 0 LATENCY_11WS ACR = 0x0B << 0 LATENCY_12WS ACR = 0x0C << 0 LATENCY_13WS ACR = 0x0D << 0 LATENCY_14WS ACR = 0x0E << 0 LATENCY_15WS ACR = 0x0F << 0 PRFTEN ACR = 0x01 << 8 //+ ARTEN ACR = 0x01 << 9 //+ ARTRST ACR = 0x01 << 11 //+ )
type CR ¶
type CR uint32
const ( PG CR = 0x01 << 0 //+ SER CR = 0x01 << 1 //+ MER CR = 0x01 << 2 //+ SNB CR = 0x0F << 3 //+ SNB_0 CR = 0x01 << 3 SNB_1 CR = 0x02 << 3 SNB_2 CR = 0x04 << 3 SNB_3 CR = 0x08 << 3 PSIZE CR = 0x03 << 8 //+ PSIZE_0 CR = 0x01 << 8 PSIZE_1 CR = 0x02 << 8 STRT CR = 0x01 << 16 //+ EOPIE CR = 0x01 << 24 //+ ERRIE CR = 0x01 << 25 //+ LOCK CR = 0x01 << 31 //+ )
type FLASH_Periph ¶
func (*FLASH_Periph) ARTEN ¶
func (p *FLASH_Periph) ARTEN() RMACR
func (*FLASH_Periph) ARTRST ¶
func (p *FLASH_Periph) ARTRST() RMACR
func (*FLASH_Periph) BOR_LEV ¶
func (p *FLASH_Periph) BOR_LEV(n int) RMOPTCR
func (*FLASH_Periph) BSY ¶
func (p *FLASH_Periph) BSY() RMSR
func (*FLASH_Periph) BaseAddr ¶
func (p *FLASH_Periph) BaseAddr() uintptr
func (*FLASH_Periph) EOP ¶
func (p *FLASH_Periph) EOP() RMSR
func (*FLASH_Periph) EOPIE ¶
func (p *FLASH_Periph) EOPIE() RMCR
func (*FLASH_Periph) ERRIE ¶
func (p *FLASH_Periph) ERRIE() RMCR
func (*FLASH_Periph) ERSERR ¶
func (p *FLASH_Periph) ERSERR() RMSR
func (*FLASH_Periph) IWDG_STDBY ¶
func (p *FLASH_Periph) IWDG_STDBY(n int) RMOPTCR
func (*FLASH_Periph) IWDG_STOP ¶
func (p *FLASH_Periph) IWDG_STOP(n int) RMOPTCR
func (*FLASH_Periph) IWDG_SW ¶
func (p *FLASH_Periph) IWDG_SW(n int) RMOPTCR
func (*FLASH_Periph) LATENCY ¶
func (p *FLASH_Periph) LATENCY() RMACR
func (*FLASH_Periph) LOCK ¶
func (p *FLASH_Periph) LOCK() RMCR
func (*FLASH_Periph) MER ¶
func (p *FLASH_Periph) MER() RMCR
func (*FLASH_Periph) OPERR ¶
func (p *FLASH_Periph) OPERR() RMSR
func (*FLASH_Periph) OPTLOCK ¶
func (p *FLASH_Periph) OPTLOCK(n int) RMOPTCR
func (*FLASH_Periph) OPTSTRT ¶
func (p *FLASH_Periph) OPTSTRT(n int) RMOPTCR
func (*FLASH_Periph) PG ¶
func (p *FLASH_Periph) PG() RMCR
func (*FLASH_Periph) PGAERR ¶
func (p *FLASH_Periph) PGAERR() RMSR
func (*FLASH_Periph) PGPERR ¶
func (p *FLASH_Periph) PGPERR() RMSR
func (*FLASH_Periph) PRFTEN ¶
func (p *FLASH_Periph) PRFTEN() RMACR
func (*FLASH_Periph) PSIZE ¶
func (p *FLASH_Periph) PSIZE() RMCR
func (*FLASH_Periph) RDP ¶
func (p *FLASH_Periph) RDP(n int) RMOPTCR
func (*FLASH_Periph) SER ¶
func (p *FLASH_Periph) SER() RMCR
func (*FLASH_Periph) SNB ¶
func (p *FLASH_Periph) SNB() RMCR
func (*FLASH_Periph) STRT ¶
func (p *FLASH_Periph) STRT() RMCR
func (*FLASH_Periph) WRPERR ¶
func (p *FLASH_Periph) WRPERR() RMSR
func (*FLASH_Periph) WWDG_SW ¶
func (p *FLASH_Periph) WWDG_SW(n int) RMOPTCR
type OPTCR ¶
type OPTCR uint32
const ( OPTLOCK OPTCR = 0x01 << 0 //+ OPTSTRT OPTCR = 0x01 << 1 //+ BOR_LEV OPTCR = 0x03 << 2 //+ BOR_LEV_0 OPTCR = 0x01 << 2 BOR_LEV_1 OPTCR = 0x02 << 2 WWDG_SW OPTCR = 0x01 << 4 //+ IWDG_SW OPTCR = 0x01 << 5 //+ RDP OPTCR = 0xFF << 8 //+ RDP_0 OPTCR = 0x01 << 8 RDP_1 OPTCR = 0x02 << 8 RDP_2 OPTCR = 0x04 << 8 RDP_3 OPTCR = 0x08 << 8 RDP_4 OPTCR = 0x10 << 8 RDP_5 OPTCR = 0x20 << 8 RDP_6 OPTCR = 0x40 << 8 RDP_7 OPTCR = 0x80 << 8 IWDG_STDBY OPTCR = 0x01 << 30 //+ IWDG_STOP OPTCR = 0x01 << 31 //+ )
type RACR ¶
func (*RACR) AtomicClearBits ¶
func (*RACR) AtomicSetBits ¶
func (*RACR) AtomicStoreBits ¶
type RKEYR ¶
func (*RKEYR) AtomicClearBits ¶
func (*RKEYR) AtomicSetBits ¶
func (*RKEYR) AtomicStoreBits ¶
type ROPTCR ¶
func (*ROPTCR) AtomicClearBits ¶
func (*ROPTCR) AtomicSetBits ¶
func (*ROPTCR) AtomicStoreBits ¶
type ROPTKEYR ¶
func (*ROPTKEYR) AtomicClearBits ¶
func (*ROPTKEYR) AtomicSetBits ¶
func (*ROPTKEYR) AtomicStoreBits ¶
Click to show internal directories.
Click to hide internal directories.