Added support for half-duplex spi in xfer.