SPI function polls SPI status register to determine when receive is done instead of using a delay function