P
- the device type the configuration is defined for.public interface DeviceConfig<P extends Device<? super P>>
DeviceConfig
class is a tagging interface for all device configuration
classes.
A device configuration contains the following elements:
Device
sub-interfaces. Examples are a UART baud rate or the current direction of a
bidirectional GPIO pin.DeviceConfig
instances should be immutable. DeviceConfig
instance 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 DeviceConfig
can be passed to the
DeviceManager.open(DeviceConfig)
or
DeviceManager.open(Class, DeviceConfig)
method to open the designated device
device with the specified configuration. A InvalidDeviceConfigException
is thrown
when attempting to open a device with an invalid or unsupported configuration.Modifier and Type | Interface and Description |
---|---|
static interface |
DeviceConfig.HardwareAddressing
The
HardwareAddressing interface defines an abstraction of an hardware addressing
information common on different platforms. |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT
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.
Legal Notices