tftdci

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LPSPI

type LPSPI struct {
	// contains filtered or unexported fields
}

LPSPI is an implementation of the display/tft.DCI interface that uses an LPSPI peripheral to communicate with the display in what is known as 4-line serial mode.

func NewLPSPI

func NewLPSPI(drv *lpspi.Master, dc iomux.Pin, mode lpspi.TCR, rclkHz, wclkHz int) *LPSPI

NewLPSPI returns new LPSPI based implementation of tftdrv.DCI. User must provide a configured LPSPI master driver, a DC pin, the required SPI mode (CPOL,CPHA) amd the maximum write, read clock speeds according to the display controller specification. Note that the maximum speed may be limited by th LPSPI peripheral, the bus topology or the specific display design.

func (*LPSPI) Cmd

func (dci *LPSPI) Cmd(p []byte, dataMode int)

func (*LPSPI) Driver

func (dci *LPSPI) Driver() *lpspi.Master

func (*LPSPI) End

func (dci *LPSPI) End()

func (*LPSPI) Err

func (dci *LPSPI) Err(clear bool) error

func (*LPSPI) ReadBytes

func (dci *LPSPI) ReadBytes(p []byte)

func (*LPSPI) WriteByteN

func (dci *LPSPI) WriteByteN(b byte, n int)

func (*LPSPI) WriteBytes

func (dci *LPSPI) WriteBytes(p []uint8)

func (*LPSPI) WriteString

func (dci *LPSPI) WriteString(s string)

func (*LPSPI) WriteWordN

func (dci *LPSPI) WriteWordN(w uint16, n int)

func (*LPSPI) WriteWords

func (dci *LPSPI) WriteWords(p []uint16)

Jump to

Keyboard shortcuts

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