Package com.diozero.internal.spi
Interface InternalDeviceInterface
-
- All Superinterfaces:
AutoCloseable
,DeviceInterface
- All Known Subinterfaces:
AnalogDeviceInterface
,AnalogInputDeviceInterface
,AnalogOutputDeviceInterface
,GpioDeviceInterface
,GpioDigitalDeviceInterface
,GpioDigitalInputDeviceInterface
,GpioDigitalInputOutputDeviceInterface
,GpioDigitalOutputDeviceInterface
,InternalI2CDeviceInterface
,InternalPwmOutputDeviceInterface
,InternalSerialDeviceInterface
,InternalServoDeviceInterface
,InternalSpiDeviceInterface
- All Known Implementing Classes:
AbstractDevice
,AbstractInputDevice
,DefaultNativeSerialDevice
,DefaultNativeSpiDevice
,MCP23xxxDigitalInputDevice
,MCP23xxxDigitalInputOutputDevice
,MCP23xxxDigitalOutputDevice
,NativeGpioInputDevice
,NativeGpioInputOutputDevice
,NativeGpioOutputDevice
,NativeI2CDeviceJavaRaf
,NativeI2CDeviceSMBus
,OdroidC2SysFsPwmOutputDevice
,PiconZero.PiconZeroAnalogInputDevice
,PiconZero.PiconZeroAnalogOutputDevice
,PiconZero.PiconZeroDigitalInputDevice
,PiconZero.PiconZeroDigitalOutputDevice
,PiconZero.PiconZeroPwmOutputDevice
,PiconZero.PiconZeroServoDevice
,PwmServoDevice
,SoftwarePwmOutputDevice
,SysFsAnalogInputDevice
,SysFsDigitalInputDevice
,SysFsDigitalInputOutputDevice
,SysFsDigitalOutputDevice
,SysFsPwmOutputDevice
public interface InternalDeviceInterface extends DeviceInterface
Fundamental interface for all low-level device types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getKey()
Get the unique device identifier for this deviceboolean
isChild()
Check if this is a child / wrapped device.boolean
isOpen()
Check if this device is open or closedvoid
setChild(boolean child)
-
Methods inherited from interface com.diozero.api.DeviceInterface
close
-
-
-
-
Method Detail
-
getKey
String getKey()
Get the unique device identifier for this device- Returns:
- unique device identifier
-
isOpen
boolean isOpen()
Check if this device is open or closed- Returns:
- true if this device is open
-
isChild
boolean isChild()
Check if this is a child / wrapped device. Child devices are assumed to be closed by the parent device. Key example is a software PWM output device that uses a digital output device.- Returns:
- true if this a child / wrapped device
-
setChild
void setChild(boolean child)
-
-