Package | Description |
---|---|
com.pi4j.component.power | |
com.pi4j.component.power.impl |
Modifier and Type | Field and Description |
---|---|
protected PowerState |
PowerStateChangeEvent.newState |
protected PowerState |
PowerStateChangeEvent.oldState |
Modifier and Type | Method and Description |
---|---|
PowerState |
PowerStateChangeEvent.getNewState() |
PowerState |
PowerStateChangeEvent.getOldState() |
abstract PowerState |
PowerBase.getState() |
PowerState |
Power.getState() |
static PowerState |
PowerState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PowerState[] |
PowerState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
PowerBase.setState(PowerState state) |
void |
Power.setState(PowerState state) |
Constructor and Description |
---|
PowerStateChangeEvent(Power power,
PowerState oldState,
PowerState newState) |
Modifier and Type | Method and Description |
---|---|
PowerState |
GpioPowerComponent.getState()
Return the current power state based on the
GPIO digital output pin state.
|
Modifier and Type | Method and Description |
---|---|
void |
GpioPowerComponent.setState(PowerState state)
Set the current GPIO digital output pin state
based on the supplied power state
|
Copyright © 2012–2014 Pi4J. All rights reserved.