code: public static SpiDevice getInstance(SpiChannel channel, SpiMode mode) throws IOException {
          return new SpiDeviceImpl(channel, mode);
      }
docs: Create new SpiDevice instance
  
  @param channel
  spi channel to use
  @param mode
  spi mode (see http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus#Mode_numbers)
  
  @return Return a new SpiDevice impl instance.
  
  @throws java.io.IOException