add class for SPIDevice.java