> > I'm no SPI expert, but a bit of googling suggests that it's > > a synchronous duplex bus, so you always send a byte of data > > to the slave and get one back in return (even if for some slaves > > it might be random garbage).
Waitaminute. So this is just basic synchronous serial? We already have an API for this. hw/spi.c. If you're building higer level protocols they should be layered on top of the SPI, same as smbus is a protocol layer on top of I2C. Paul