Structs used by the driver.
- Note
- This is example show how to instantiate SPI with spi_instance_t and spi_hwreg_t.
#define SPI (spi_hwreg_t*)SYSTEM_SPI_0_IO_CTRL
.hwreg = SPI,
.clkDivider = 2,
.ssSetup = 5,
.ssHold = 2,
.ssDisable = 7
},
@ FULL_DUPLEX_SINGLE_LINE
Full-duplex mode using single data lin.
@ LOW
Clock is low when id.
@ DATA_SAMPLED_RISE_EDGE
Data sampled on rising clock ed.
void spi_applyConfig(spi_instance_t *inst)
Applies the current configuration settings stored in the spi_instance_t structure to the SPI hardware...
SPI instance. Holds the software registers and hardware pointer.