Documentation ¶
Index ¶
- type Config
- type Driver
- type Event
- type Freq
- type Periph
- func (p *Periph) ClearSTALSTAT()
- func (p *Periph) Event(e Event) *te.Event
- func (p *Periph) LoadCONFIG() Config
- func (p *Periph) LoadCSNDUR() int
- func (p *Periph) LoadCSNPOL() int
- func (p *Periph) LoadDCXCNT() int
- func (p *Periph) LoadENABLE() bool
- func (p *Periph) LoadFREQUENCY() Freq
- func (p *Periph) LoadORC() byte
- func (p *Periph) LoadPSEL(s Signal) (psel gpio.PSEL, en bool)
- func (p *Periph) LoadRXDAMOUNT() int
- func (p *Periph) LoadRXDELAY() int
- func (p *Periph) LoadRXDLIST() bool
- func (p *Periph) LoadRXDMAXCNT() int
- func (p *Periph) LoadRXDPTR() uintptr
- func (p *Periph) LoadSHORTS() Shorts
- func (p *Periph) LoadSTALSTAT() (rx, tx bool)
- func (p *Periph) LoadTXDAMOUNT() int
- func (p *Periph) LoadTXDLIST() bool
- func (p *Periph) LoadTXDMAXCNT() int
- func (p *Periph) StoreCONFIG(cfg Config)
- func (p *Periph) StoreCSNDUR(csndur int)
- func (p *Periph) StoreCSNPOL(csnpol int)
- func (p *Periph) StoreDCXCNT(dcxcnt int)
- func (p *Periph) StoreENABLE(en bool)
- func (p *Periph) StoreFREQUENCY(f Freq)
- func (p *Periph) StoreORC(orc byte)
- func (p *Periph) StorePSEL(s Signal, psel gpio.PSEL, en bool)
- func (p *Periph) StoreRXDELAY(rxdelay int)
- func (p *Periph) StoreRXDLIST(arrayListMode bool)
- func (p *Periph) StoreRXDMAXCNT(n int)
- func (p *Periph) StoreRXDPTR(ptr unsafe.Pointer)
- func (p *Periph) StoreSHORTS(s Shorts)
- func (p *Periph) StoreTXDLIST(arrayListMode bool)
- func (p *Periph) StoreTXDMAXCNT(n int)
- func (p *Periph) StoreTXDPTR(ptr unsafe.Pointer)
- func (p *Periph) Task(t Task) *te.Task
- type Shorts
- type Signal
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config uint8
const ( MSBF Config = 0 << 0 // Most significant bit first. LSBF Config = 1 << 0 // Least significant bit first. CPHA0 Config = 0 << 1 // Sample on leading edge. CPHA1 Config = 1 << 1 // Sample on trailing edge. CPOL0 Config = 0 << 2 // Clock idle state is 0. CPOL1 Config = 1 << 2 // Clock idle state is 1. )
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
type Periph ¶
func (*Periph) ClearSTALSTAT ¶
func (p *Periph) ClearSTALSTAT()
ClearSTALSTAT clears stall status. SPIM3 only.
func (*Periph) LoadCONFIG ¶
LoadCONFIG returns the SPI protocol configuration.
func (*Periph) LoadCSNDUR ¶
LoadCSNDUR returns the number of 64 MHz clock cycles of minimum duration between edge of CSN and edge of SCK and minimum duration CSN must stay high between transactions. SPIM3 only.
func (*Periph) LoadCSNPOL ¶
LoadCSNPOL returns CSN polarity (0: active low, 1 active high). SPIM3 only.
func (*Periph) LoadDCXCNT ¶
LoadDCXCNT returns the number of command bytes preceding the data bytes. SPIM3 only.
func (*Periph) LoadENABLE ¶
LoadENABLE reports whether the UART peripheral is enabled.
func (*Periph) LoadFREQUENCY ¶
LoadFREQUENCY returns SPI frequency (SCK clock).
func (*Periph) LoadORC ¶
LoadORC returns the value transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT.
func (*Periph) LoadRXDAMOUNT ¶
LoadRXDAMOUNT returns the Number of bytes transferred in the last Rx transaction
func (*Periph) LoadRXDELAY ¶
LoadRXDELAY returns the number of 64 MHz clock cycles delay from sampling edge of SCK until the input serial data is sampled. SPIM3 only.
func (*Periph) LoadRXDLIST ¶
LoadRXDLIST reports EasyDMA array list mode for received data.
func (*Periph) LoadRXDMAXCNT ¶
LoadRXDMAXCNT returns the maximum number of bytes in receive buffer.
func (*Periph) LoadRXDPTR ¶
LoadRXDPTR returns the Rx data pointer.
func (*Periph) LoadSHORTS ¶
func (*Periph) LoadSTALSTAT ¶
LoadSTALSTAT returns stall status for EasyDMA acesses. SPIM3 only.
func (*Periph) LoadTXDAMOUNT ¶
LoadTXDAMOUNT returns the number of bytes transferred in the last Tx transaction
func (*Periph) LoadTXDLIST ¶
LoadTXDLIST reports EasyDMA array list mode for transmitted data.
func (*Periph) LoadTXDMAXCNT ¶
LoadTXDMAXCNT returns the maximum number of bytes in transmit buffer.
func (*Periph) StoreCONFIG ¶
StoreCONFIG sets the SPI protocol configuration.
func (*Periph) StoreCSNDUR ¶
StoreCSNDUR sets the number of 64 MHz clock cycles [0..255] of minimum duration between edge of CSN and edge of SCK and minimum duration CSn must stay high between transactions. SPIM3 only.
func (*Periph) StoreCSNPOL ¶
StoreCSNPOL sets CSN polarity (0: active low, 1 active high). SPIM3 only.
func (*Periph) StoreDCXCNT ¶
StoreDCXCNT sets the number of command bytes preceding the data bytes. SPIM3 only.
func (*Periph) StoreENABLE ¶
StoreENABLE enables or disables UART peripheral.
func (*Periph) StoreFREQUENCY ¶
StoreFREQUENCY sets SPI frequency (SCK clock).
func (*Periph) StoreORC ¶
StoreORC sets the value transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT.
func (*Periph) StoreRXDELAY ¶
StoreRXDELAY sets the number of 64 MHz clock cycles [0..7] delay from sampling edge of SCK until the input serial data is sampled. SPIM3 only.
func (*Periph) StoreRXDLIST ¶
StoreRXDLIST enables/disables EasyDMA array list mode for received data.
func (*Periph) StoreRXDMAXCNT ¶
StoreRXDMAXCNT sets the maximum number of bytes in receive buffer.
func (*Periph) StoreRXDPTR ¶
StoreRXDPTR sets the Rx data pointer.
func (*Periph) StoreSHORTS ¶
func (*Periph) StoreTXDLIST ¶
StoreTXDLIST enables/disables EasyDMA array list mode for transmitted data.
func (*Periph) StoreTXDMAXCNT ¶
StoreTXDMAXCNT sets the maximum number of bytes in transmit buffer.
func (*Periph) StoreTXDPTR ¶
StoreTXDPTR sets the Tx data pointer.