public int getValue ( final DeviceControllerChannel channel , final boolean nonVolatile ) throws IOException { if ( channel == null ) { throw new RuntimeException ( "null-channel is not allowed. For devices " + "knowing just one wiper Channel.A is mandatory for " + "parameter 'channel'" ) ; } // choose proper memory address (see TABLE 4-1) byte memAddr = nonVolatile ? channel . getNonVolatileMemoryAddress ( ) : channel . getVolatileMemoryAddress ( ) ; // read current value int currentValue = read ( memAddr ) ; return currentValue ; }
Receives the current wiper s value from the device .