krüe :: avrforth :: spi

spi

Serial Peripheral Interface.

words

word stack description
spiint ( -- bit ) transfer complete interrupt enable
spiflag ( -- bit ) transfer complete interrupt flag
spimode ( x -- ) mode configuration
spiclk ( x -- ) clock prescaler configuration
spi ( -- ) enable spi
/spi ( -- ) disable spi
spiorder ( x -- ) bit order configuration
spicol ( -- bit ) write collision flag
spimaster ( -- ) configure master mode
spislave ( -- ) configure slave mode
spidata ( -- a ) data register
spix ( c1 -- c2 ) transfer byte
spitx ( c -- ) transmit byte
spirx ( -- c ) receive byte

constants

clock prescaler

These constants can be passed to spiclk to configure the clock prescaler divisor.

bit order

These constant can be passed to spiorder to select the order in which bits are transferred.