tools and tests of SPI communication