/* Receive a sequence of bytes from a USART in SPI mode device. 
All bytes sent out on usart bus are sent as value 0. */
status_code_t usart_spi_read_packet(USART_t *usart, uint8_t *data, size_t len)
/* Receive a sequence of bytes from a USART in SPI mode device. 
All bytes sent out on usart bus are sent as value 0. */
status_code_t usart_spi_read_packet(USART_t *usart, uint8_t *data, size_t len)
{
	while (len) {
		*data = usart_spi_transmit(usart, CONFIG_USART_SPI_DUMMY);
		len--;
		data++;
	}
	return STATUS_OK;
}