Added SPI send_command and receive_response functions