Uses of Class
com.diozero.api.DeviceMode
Package | Description |
---|---|
com.diozero.api |
APIs for interfacing with the host board.
|
com.diozero.devices |
Classes representing actual devices such as LEDs, Buttons as well as GPIO,
devices that are connected via I2C, SPI and Serial interfaces.
|
com.diozero.devices.mcp23xxx | |
com.diozero.internal.board.allwinner | |
com.diozero.internal.board.chip | |
com.diozero.internal.board.odroid | |
com.diozero.internal.board.raspberrypi | |
com.diozero.internal.board.tinkerboard | |
com.diozero.internal.provider.builtin |
The built-in default provider supporting GPIO, I2C, SPI and Serial device
communication.
|
com.diozero.internal.provider.builtin.gpio | |
com.diozero.internal.spi |
Service Provider Interface package.
|
com.diozero.sbc |
-
Uses of DeviceMode in com.diozero.api
Fields in com.diozero.api with type parameters of type DeviceMode Modifier and Type Field Description static EnumSet<DeviceMode>
PinInfo. ANALOG_INPUT
static EnumSet<DeviceMode>
PinInfo. ANALOG_OUTPUT
static EnumSet<DeviceMode>
PinInfo. DIGITAL_ANALOG_INPUT
static EnumSet<DeviceMode>
PinInfo. DIGITAL_IN
static EnumSet<DeviceMode>
PinInfo. DIGITAL_IN_OUT
static EnumSet<DeviceMode>
PinInfo. DIGITAL_IN_OUT_PWM
static EnumSet<DeviceMode>
PinInfo. DIGITAL_OUT
static EnumSet<DeviceMode>
PinInfo. DIGITAL_PWM_OUTPUT
static EnumSet<DeviceMode>
PinInfo. PWM_OUTPUT
Methods in com.diozero.api that return DeviceMode Modifier and Type Method Description DeviceMode
DigitalInputOutputDevice. getMode()
Get the input / output modestatic DeviceMode
DeviceMode. valueOf(String name)
Returns the enum constant of this type with the specified name.static DeviceMode[]
DeviceMode. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.diozero.api that return types with arguments of type DeviceMode Modifier and Type Method Description Collection<DeviceMode>
PinInfo. getModes()
Get the set of validmodes
for this pinMethods in com.diozero.api with parameters of type DeviceMode Modifier and Type Method Description boolean
PinInfo. isSupported(DeviceMode mode)
Check if the specifiedmode
is supported by this pinvoid
DigitalInputOutputDevice. setMode(DeviceMode mode)
Set the input / output modeConstructors in com.diozero.api with parameters of type DeviceMode Constructor Description DigitalInputOutputDevice(int gpio, DeviceMode mode)
DigitalInputOutputDevice(GpioDeviceFactoryInterface deviceFactory, int gpio, DeviceMode mode)
DigitalInputOutputDevice(GpioDeviceFactoryInterface deviceFactory, PinInfo pinInfo, DeviceMode mode)
Constructor parameters in com.diozero.api with type arguments of type DeviceMode Constructor Description PinInfo(String keyPrefix, String header, int deviceNumber, int physicalPin, String name, Collection<DeviceMode> modes)
PinInfo(String keyPrefix, String header, int deviceNumber, int physicalPin, String name, Collection<DeviceMode> modes, int sysFsNumber, int chip, int line)
PwmPinInfo(String keyPrefix, String header, int gpioNumber, int pinNumber, int pwmNum, String name, Collection<DeviceMode> modes, int sysFsNumber, int chip, int line)
-
Uses of DeviceMode in com.diozero.devices
Methods in com.diozero.devices with parameters of type DeviceMode Modifier and Type Method Description GpioDigitalInputOutputDeviceInterface
PCF8574. createDigitalInputOutputDevice(String key, PinInfo pinInfo, DeviceMode mode)
GpioDigitalInputOutputDeviceInterface
PiconZero. createDigitalInputOutputDevice(String key, PinInfo pinInfo, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.devices.mcp23xxx
Methods in com.diozero.devices.mcp23xxx that return DeviceMode Modifier and Type Method Description DeviceMode
MCP23xxxDigitalInputOutputDevice. getMode()
Methods in com.diozero.devices.mcp23xxx with parameters of type DeviceMode Modifier and Type Method Description GpioDigitalInputOutputDeviceInterface
MCP23xxx. createDigitalInputOutputDevice(String key, PinInfo pin_info, DeviceMode mode)
void
MCP23xxxDigitalInputOutputDevice. setMode(DeviceMode mode)
Constructors in com.diozero.devices.mcp23xxx with parameters of type DeviceMode Constructor Description MCP23xxxDigitalInputOutputDevice(MCP23xxx mcp23xxx, String key, int gpio, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.internal.board.allwinner
Methods in com.diozero.internal.board.allwinner that return DeviceMode Modifier and Type Method Description DeviceMode
AllwinnerSun8iMmapGpio. getMode(int gpio)
Methods in com.diozero.internal.board.allwinner with parameters of type DeviceMode Modifier and Type Method Description void
AllwinnerSun8iMmapGpio. setMode(int gpio, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.internal.board.chip
Methods in com.diozero.internal.board.chip that return DeviceMode Modifier and Type Method Description DeviceMode
ChipMmapGpio. getMode(int gpio)
Methods in com.diozero.internal.board.chip with parameters of type DeviceMode Modifier and Type Method Description void
ChipMmapGpio. setMode(int gpio, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.internal.board.odroid
Methods in com.diozero.internal.board.odroid that return DeviceMode Modifier and Type Method Description DeviceMode
OdroidC2MmapGpio. getMode(int gpio)
Methods in com.diozero.internal.board.odroid with parameters of type DeviceMode Modifier and Type Method Description void
OdroidC2MmapGpio. setMode(int gpio, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.internal.board.raspberrypi
Methods in com.diozero.internal.board.raspberrypi that return DeviceMode Modifier and Type Method Description DeviceMode
RaspberryPiMmapGpio. getMode(int gpio)
Returns the function of a GPIO: 0=input, 1=output, 4=alt0Methods in com.diozero.internal.board.raspberrypi with parameters of type DeviceMode Modifier and Type Method Description void
RaspberryPiMmapGpio. setMode(int gpio, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.internal.board.tinkerboard
Methods in com.diozero.internal.board.tinkerboard that return DeviceMode Modifier and Type Method Description DeviceMode
TinkerBoardMmapGpio. getMode(int gpio)
Methods in com.diozero.internal.board.tinkerboard with parameters of type DeviceMode Modifier and Type Method Description void
TinkerBoardMmapGpio. setMode(int gpio, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.internal.provider.builtin
Fields in com.diozero.internal.provider.builtin declared as DeviceMode Modifier and Type Field Description protected DeviceMode
SysFsDigitalInputOutputDevice. mode
Methods in com.diozero.internal.provider.builtin that return DeviceMode Modifier and Type Method Description DeviceMode
NativeGpioInputOutputDevice. getMode()
DeviceMode
SysFsDigitalInputOutputDevice. getMode()
Methods in com.diozero.internal.provider.builtin with parameters of type DeviceMode Modifier and Type Method Description GpioDigitalInputOutputDeviceInterface
DefaultDeviceFactory. createDigitalInputOutputDevice(String key, PinInfo pinInfo, DeviceMode mode)
void
NativeGpioInputOutputDevice. setMode(DeviceMode mode)
void
SysFsDigitalInputOutputDevice. setMode(DeviceMode mode)
Constructors in com.diozero.internal.provider.builtin with parameters of type DeviceMode Constructor Description NativeGpioInputOutputDevice(DefaultDeviceFactory deviceFactory, String key, GpioChip chip, PinInfo pinInfo, DeviceMode mode, MmapGpioInterface mmapGpio)
SysFsDigitalInputOutputDevice(DefaultDeviceFactory deviceFactory, String key, PinInfo pinInfo, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.internal.provider.builtin.gpio
Methods in com.diozero.internal.provider.builtin.gpio with parameters of type DeviceMode Modifier and Type Method Description static void
SysFsGpioUtil. export(int gpio, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.internal.spi
Methods in com.diozero.internal.spi that return DeviceMode Modifier and Type Method Description default DeviceMode
AnalogInputDeviceInterface. getMode()
default DeviceMode
AnalogOutputDeviceInterface. getMode()
DeviceMode
GpioDeviceInterface. getMode()
default DeviceMode
GpioDigitalInputDeviceInterface. getMode()
default DeviceMode
GpioDigitalOutputDeviceInterface. getMode()
DeviceMode
MmapGpioInterface. getMode(int gpio)
default DeviceMode
PwmOutputDeviceInterface. getMode()
Methods in com.diozero.internal.spi with parameters of type DeviceMode Modifier and Type Method Description GpioDigitalInputOutputDeviceInterface
GpioDeviceFactoryInterface. createDigitalInputOutputDevice(String key, PinInfo pinInfo, DeviceMode mode)
default GpioDigitalInputOutputDeviceInterface
GpioDeviceFactoryInterface. provisionDigitalInputOutputDevice(PinInfo pinInfo, DeviceMode mode)
void
GpioDigitalInputOutputDeviceInterface. setMode(DeviceMode mode)
void
MmapGpioInterface. setMode(int gpio, DeviceMode mode)
-
Uses of DeviceMode in com.diozero.sbc
Method parameters in com.diozero.sbc with type arguments of type DeviceMode Modifier and Type Method Description PinInfo
BoardPinInfo. addGpioPinInfo(int gpioNum, int physicalPin, Collection<DeviceMode> modes)
PinInfo
BoardPinInfo. addGpioPinInfo(int gpioNum, String name, int physicalPin, Collection<DeviceMode> modes)
PinInfo
BoardPinInfo. addGpioPinInfo(int gpioNum, String name, int physicalPin, Collection<DeviceMode> modes, int chip, int line)
PinInfo
BoardPinInfo. addGpioPinInfo(String header, int gpioNum, int physicalPin, Collection<DeviceMode> modes)
PinInfo
BoardPinInfo. addGpioPinInfo(String header, int gpioNum, String name, int physicalPin, Collection<DeviceMode> modes)
PinInfo
BoardPinInfo. addGpioPinInfo(String header, int gpioNum, String name, int physicalPin, Collection<DeviceMode> modes, int chip, int line)
PinInfo
BoardPinInfo. addPwmPinInfo(int gpioNum, int physicalPin, int pwmNum, Collection<DeviceMode> modes)
PinInfo
BoardPinInfo. addPwmPinInfo(int gpioNum, String name, int physicalPin, int pwmNum, Collection<DeviceMode> modes)
PinInfo
BoardPinInfo. addPwmPinInfo(int gpioNum, String name, int physicalPin, int pwmNum, Collection<DeviceMode> modes, int chip, int line)
PinInfo
BoardPinInfo. addPwmPinInfo(String header, int gpioNumber, String name, int physicalPin, int pwmNum, Collection<DeviceMode> modes)
PinInfo
BoardPinInfo. addPwmPinInfo(String header, int gpioNumber, String name, int physicalPin, int pwmNum, Collection<DeviceMode> modes, int chip, int line)