P- the device type the configuration is defined for.
public interface DeviceConfig<P extends Device<? super P>>
DeviceConfigclass is a tagging interface for all device configuration classes. A device configuration contains the following elements:
Devicesub-interfaces. Examples are a UART baud rate or the current direction of a bidirectional GPIO pin.
DeviceConfiginstances should be immutable.
DeviceConfiginstance cannot be altered while it is handling it and SHOULD either create its own private copy of the instance or of the information it contains. Some hardware addressing parameter, and static and dynamic configuration parameters may be set to
DEFAULT. Whether such default settings are supported is platform- as well as device driver-dependent. An instance of
DeviceConfigcan be passed to the
DeviceManager.open(Class, DeviceConfig)method to open the designated device device with the specified configuration. A
InvalidDeviceConfigExceptionis thrown when attempting to open a device with an invalid or unsupported configuration.
|Modifier and Type||Interface and Description|
|Modifier and Type||Field and Description|
Used to indicate that the default value of a configuration parameter should be used.
static final int DEFAULT
Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.