const classstuds::SpiConfig

sys::Obj
  studs::SpiConfig

SpiConfig models configuration for a Spi port.

bits

const Int bits := 8

Number of bits per word on the bus (8 or 16; defaults to 8)

delay

const Int delay := 10

The delay between transactions in microseconds (defaults to 10us)

make

new make(|This f)

It-block constructor.

mode

const Int mode := 0

Mode specifies the clock polarity and phase to use (0..3)

speed

const Int speed := 1000000

Bus speed in hertz (defaults to 1 MHz)