Changed the SPI interface for the module due to communication protocol
issue. Added code to clear the TX buffer of the SPI module during data
transfer. Added function to transfer 1 byte of data.