Package | Description |
---|---|
jdk.dio.counter |
Interfaces and classes for counting pulses (or events) on a digital input line.
|
jdk.dio.gpio |
Interfaces and classes for reading and writing from/to GPIO (General Purpose Input Output) pins
and ports of the device.
|
jdk.dio.pwm |
Interfaces and classes for generating width-modulated pulses - Pulse Width Modulation (PWM) - on a digital output line.
|
Modifier and Type | Method and Description |
---|---|
GPIOPinConfig |
PulseCounterConfig.getSourceConfig()
Gets the configured source (GPIO input pin) configuration on which the pulses are to be
counted/measured.
|
Modifier and Type | Method and Description |
---|---|
PulseCounterConfig.Builder |
PulseCounterConfig.Builder.setSourceConfig(GPIOPinConfig sourceConfig)
Sets the configuration of the source (a GPIO input pin) on which the pulses are to be
counted (default value is
null if not set). |
Constructor and Description |
---|
PulseCounterConfig(int controllerNumber,
int channelNumber,
int type,
GPIOPinConfig source)
Deprecated.
As of 1.1, use
PulseCounterConfig.Builder instead. |
PulseCounterConfig(java.lang.String controllerName,
int channelNumber,
int type,
GPIOPinConfig source)
Deprecated.
As of 1.1, use
PulseCounterConfig.Builder instead. |
Modifier and Type | Method and Description |
---|---|
GPIOPinConfig |
GPIOPinConfig.Builder.build()
Creates a new
GPIOPinConfig instance initialized with the
values set for each configuration parameters. |
static GPIOPinConfig |
GPIOPinConfig.deserialize(java.io.InputStream in)
Creates a new
GPIOPinConfig whose state is deserialized from the specified InputStream . |
GPIOPinConfig[] |
GPIOPortConfig.getPinConfigs()
Gets the configured configurations of the pins composing the port (in the exact same order
they compose the port).
|
Constructor and Description |
---|
GPIOPortConfig(int direction,
int initValue,
GPIOPinConfig... pins)
Creates a new
GPIOPortConfig with the specified hardware addressing information and
configuration parameters. |
Modifier and Type | Method and Description |
---|---|
GPIOPinConfig |
PWMChannelConfig.getOutputConfig()
Gets the configured output configuration on which the pulses are to be generated.
|
Modifier and Type | Method and Description |
---|---|
PWMChannelConfig.Builder |
PWMChannelConfig.Builder.setOutputConfig(GPIOPinConfig outputConfig)
Sets the configuration of the output (a GPIO output pin) on which the
pulses are to be generated (default value is
null if not set). |
Constructor and Description |
---|
PWMChannelConfig(int controllerNumber,
int channelNumber,
int idleState,
int pulsePeriod,
int pulseAlignment,
GPIOPinConfig output)
Deprecated.
As of 1.1, use
PWMChannelConfig.Builder instead. |
PWMChannelConfig(java.lang.String controllerName,
int channelNumber,
int idleState,
int pulsePeriod,
int pulseAlignment,
GPIOPinConfig output)
Deprecated.
As of 1.1, use
PWMChannelConfig.Builder instead. |
Copyright © 2012, 2015, Oracle and/or its affiliates. All rights reserved.
Legal Notices