spi: add spi transfer mode, full duplex and half duplex