SPI
Bit-banged SPI mode-0 master.
import "lib/spi.nbl";
spi_init() selects bank 0, drives CS high, and clears SCLK and MOSI. Pin
constants are in Board constants. Transfers are MSB first and sample MISO on the
rising edge. spi_begin() asserts CS; spi_end() releases it.
Functions
Call |
Returns |
Notes |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Exchange one byte, MSB first, mode 0 (sample MISO on the rising edge). |