P
- the peripheral type the descriptor is defined for.public interface PeripheralDescriptor<P extends Peripheral<? super P>>
PeripheralDescriptor
interface encapsulates the identifying and descriptive
information of a peripheral device as well as its registered configuration (hardware addressing
parameters, and static and dynamic configuration parameters).Modifier and Type | Field and Description |
---|---|
static int |
UNDEFINED_ID
Undefined peripheral numerical ID.
|
Modifier and Type | Method and Description |
---|---|
<C extends PeripheralConfig<? super P>> |
getConfiguration()
Returns the registered configuration of the peripheral device.
|
int |
getID()
Returns the numerical ID of the peripheral device.
|
java.lang.Class<P> |
getInterface()
Returns the interface (sub-interface of
Peripheral ) of the peripheral device. |
java.lang.String |
getName()
Returns the name of the peripheral device.
|
java.lang.String[] |
getProperties()
Returns the properties of the peripheral device.
|
static final int UNDEFINED_ID
int getID()
PeripheralManager.open(java.lang.Class, com.oracle.deviceaccess.PeripheralConfig)
this peripheral's numerical ID is undefined.0
)
or UNDEFINED_ID
if none is defined.java.lang.String getName()
null
if none is defined.java.lang.String[] getProperties()
String
array (a defensive copy) of the peripheral device properties or an
empty String
array if none are defined.java.lang.Class<P> getInterface()
Peripheral
) of the peripheral device.Peripheral
) of the peripheral device.<C extends PeripheralConfig<? super P>> C getConfiguration()
C
- the peripheral configuration type.PeripheralConfig
which encapsulates the hardware addressing
information, and static and dynamic configuration parameters of this peripheral
device; or null
if none is defined.Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.
Legal Notices