Documentation ¶
Overview ¶
Package sai provides interface to Serial Audio Interface.
Peripheral: SAI_Periph Serial Audio Interface. Instances:
SAI1 mmap.SAI1_BASE SAI2 mmap.SAI2_BASE
Registers:
0x00 32 GCR Global configuration register.
Import:
stm32/o/f746xx/mmap
Peripheral: SAI_Block_Periph Serial Audio Interface. Instances:
SAI1_Block_A mmap.SAI1_Block_A_BASE SAI1_Block_B mmap.SAI1_Block_B_BASE SAI2_Block_A mmap.SAI2_Block_A_BASE SAI2_Block_B mmap.SAI2_Block_B_BASE
Registers:
0x00 32 CR1 SAI block x configuration register 1. 0x04 32 CR2 SAI block x configuration register 2. 0x08 32 FRCR SAI block x frame configuration register. 0x0C 32 SLOTR SAI block x slot register. 0x10 32 IMR SAI block x interrupt mask register. 0x14 32 SR SAI block x status register. 0x18 32 CLRFR SAI block x clear flag register. 0x1C 32 DR SAI block x data register.
Import:
stm32/o/f746xx/mmap
Index ¶
- Constants
- Variables
- type CLRFR
- type CR1
- type CR2
- type DR
- type FRCR
- type GCR
- type IMR
- type RCLRFR
- func (r *RCLRFR) AtomicClearBits(mask CLRFR)
- func (r *RCLRFR) AtomicSetBits(mask CLRFR)
- func (r *RCLRFR) AtomicStoreBits(mask, b CLRFR)
- func (r *RCLRFR) Bits(mask CLRFR) CLRFR
- func (r *RCLRFR) ClearBits(mask CLRFR)
- func (r *RCLRFR) Load() CLRFR
- func (r *RCLRFR) SetBits(mask CLRFR)
- func (r *RCLRFR) Store(b CLRFR)
- func (r *RCLRFR) StoreBits(mask, b CLRFR)
- type RCR1
- func (r *RCR1) AtomicClearBits(mask CR1)
- func (r *RCR1) AtomicSetBits(mask CR1)
- func (r *RCR1) AtomicStoreBits(mask, b CR1)
- func (r *RCR1) Bits(mask CR1) CR1
- func (r *RCR1) ClearBits(mask CR1)
- func (r *RCR1) Load() CR1
- func (r *RCR1) SetBits(mask CR1)
- func (r *RCR1) Store(b CR1)
- func (r *RCR1) StoreBits(mask, b CR1)
- type RCR2
- func (r *RCR2) AtomicClearBits(mask CR2)
- func (r *RCR2) AtomicSetBits(mask CR2)
- func (r *RCR2) AtomicStoreBits(mask, b CR2)
- func (r *RCR2) Bits(mask CR2) CR2
- func (r *RCR2) ClearBits(mask CR2)
- func (r *RCR2) Load() CR2
- func (r *RCR2) SetBits(mask CR2)
- func (r *RCR2) Store(b CR2)
- func (r *RCR2) StoreBits(mask, b CR2)
- type RDR
- type RFRCR
- func (r *RFRCR) AtomicClearBits(mask FRCR)
- func (r *RFRCR) AtomicSetBits(mask FRCR)
- func (r *RFRCR) AtomicStoreBits(mask, b FRCR)
- func (r *RFRCR) Bits(mask FRCR) FRCR
- func (r *RFRCR) ClearBits(mask FRCR)
- func (r *RFRCR) Load() FRCR
- func (r *RFRCR) SetBits(mask FRCR)
- func (r *RFRCR) Store(b FRCR)
- func (r *RFRCR) StoreBits(mask, b FRCR)
- type RGCR
- func (r *RGCR) AtomicClearBits(mask GCR)
- func (r *RGCR) AtomicSetBits(mask GCR)
- func (r *RGCR) AtomicStoreBits(mask, b GCR)
- func (r *RGCR) Bits(mask GCR) GCR
- func (r *RGCR) ClearBits(mask GCR)
- func (r *RGCR) Load() GCR
- func (r *RGCR) SetBits(mask GCR)
- func (r *RGCR) Store(b GCR)
- func (r *RGCR) StoreBits(mask, b GCR)
- type RIMR
- func (r *RIMR) AtomicClearBits(mask IMR)
- func (r *RIMR) AtomicSetBits(mask IMR)
- func (r *RIMR) AtomicStoreBits(mask, b IMR)
- func (r *RIMR) Bits(mask IMR) IMR
- func (r *RIMR) ClearBits(mask IMR)
- func (r *RIMR) Load() IMR
- func (r *RIMR) SetBits(mask IMR)
- func (r *RIMR) Store(b IMR)
- func (r *RIMR) StoreBits(mask, b IMR)
- type RMCLRFR
- type RMCR1
- type RMCR2
- type RMDR
- type RMFRCR
- type RMGCR
- type RMIMR
- type RMSLOTR
- type RMSR
- type RSLOTR
- func (r *RSLOTR) AtomicClearBits(mask SLOTR)
- func (r *RSLOTR) AtomicSetBits(mask SLOTR)
- func (r *RSLOTR) AtomicStoreBits(mask, b SLOTR)
- func (r *RSLOTR) Bits(mask SLOTR) SLOTR
- func (r *RSLOTR) ClearBits(mask SLOTR)
- func (r *RSLOTR) Load() SLOTR
- func (r *RSLOTR) SetBits(mask SLOTR)
- func (r *RSLOTR) Store(b SLOTR)
- func (r *RSLOTR) StoreBits(mask, b SLOTR)
- type RSR
- type SAI_Block_Periph
- type SAI_Periph
- type SLOTR
- type SR
Constants ¶
View Source
const ( SYNCINn = 0 SYNCOUTn = 4 )
Variables ¶
View Source
var SAI1 = (*SAI_Periph)(unsafe.Pointer(uintptr(mmap.SAI1_BASE)))
View Source
var SAI1_Block_A = (*SAI_Block_Periph)(unsafe.Pointer(uintptr(mmap.SAI1_Block_A_BASE)))
View Source
var SAI1_Block_B = (*SAI_Block_Periph)(unsafe.Pointer(uintptr(mmap.SAI1_Block_B_BASE)))
View Source
var SAI2 = (*SAI_Periph)(unsafe.Pointer(uintptr(mmap.SAI2_BASE)))
View Source
var SAI2_Block_A = (*SAI_Block_Periph)(unsafe.Pointer(uintptr(mmap.SAI2_Block_A_BASE)))
View Source
var SAI2_Block_B = (*SAI_Block_Periph)(unsafe.Pointer(uintptr(mmap.SAI2_Block_B_BASE)))
Functions ¶
This section is empty.
Types ¶
type RCLRFR ¶
func (*RCLRFR) AtomicClearBits ¶
func (*RCLRFR) AtomicSetBits ¶
func (*RCLRFR) AtomicStoreBits ¶
type RCR1 ¶
func (*RCR1) AtomicClearBits ¶
func (*RCR1) AtomicSetBits ¶
func (*RCR1) AtomicStoreBits ¶
type RCR2 ¶
func (*RCR2) AtomicClearBits ¶
func (*RCR2) AtomicSetBits ¶
func (*RCR2) AtomicStoreBits ¶
type RFRCR ¶
func (*RFRCR) AtomicClearBits ¶
func (*RFRCR) AtomicSetBits ¶
func (*RFRCR) AtomicStoreBits ¶
type RGCR ¶
func (*RGCR) AtomicClearBits ¶
func (*RGCR) AtomicSetBits ¶
func (*RGCR) AtomicStoreBits ¶
type RIMR ¶
func (*RIMR) AtomicClearBits ¶
func (*RIMR) AtomicSetBits ¶
func (*RIMR) AtomicStoreBits ¶
type RSLOTR ¶
func (*RSLOTR) AtomicClearBits ¶
func (*RSLOTR) AtomicSetBits ¶
func (*RSLOTR) AtomicStoreBits ¶
type SAI_Block_Periph ¶
type SAI_Block_Periph struct { CR1 RCR1 CR2 RCR2 FRCR RFRCR SLOTR RSLOTR IMR RIMR SR RSR CLRFR RCLRFR DR RDR }
func (*SAI_Block_Periph) BaseAddr ¶
func (p *SAI_Block_Periph) BaseAddr() uintptr
type SAI_Periph ¶
type SAI_Periph struct {
GCR RGCR
}
func (*SAI_Periph) BaseAddr ¶
func (p *SAI_Periph) BaseAddr() uintptr
func (*SAI_Periph) SYNCIN ¶
func (p *SAI_Periph) SYNCIN() RMGCR
func (*SAI_Periph) SYNCOUT ¶
func (p *SAI_Periph) SYNCOUT() RMGCR
Click to show internal directories.
Click to hide internal directories.