More spi work

Partially implemented SPI circular transmit buffer. Can now write a
record to the buffer. Next, work on taking the top record from the
buffer and transmitting it.