P- the peripheral type the configuration is defined for.
public interface PeripheralConfig<P extends Peripheral<? super P>>
PeripheralConfigclass is a tagging interface for all peripheral configuration classes. A peripheral configuration contains the following elements:
Peripheralsub-interfaces. Examples are a UART baud rate or the current direction of a bidirectional GPIO pin.
PeripheralConfiginstances should be immutable.
PeripheralConfiginstance 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 peripheral driver-dependent. An instance of
PeripheralConfigcan be passed to the
PeripheralManager.open(Class, PeripheralConfig)method to open the designated peripheral device with the specified configuration. A
PeripheralConfigInvalidExceptionis thrown when attempting to open a peripheral 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, 2013, Oracle and/or its affiliates. All rights reserved.