protected void initialize ( final int initialValueForVolatileWipers ) throws IOException { if ( isCapableOfNonVolatileWiper ( ) ) { // the device's volatile-wiper will be set to the value stored // in the non-volatile memory. so for those devices the wiper's // current value has to be retrieved currentValue = controller . getValue ( DeviceControllerChannel . valueOf ( channel ) , false ) ; } else { // check boundaries final int newInitialValueForVolatileWipers = getValueAccordingBoundaries ( initialValueForVolatileWipers ) ; controller . setValue ( DeviceControllerChannel . valueOf ( channel ) , newInitialValueForVolatileWipers , MicrochipPotentiometerDeviceController . VOLATILE_WIPER ) ; currentValue = newInitialValueForVolatileWipers ; } }
Initializes the wiper to a defined status . For devices capable of non - volatile - wipers the non - volatile - value is loaded . For devices not capable the given value is set in the device .