SpiConfig interface.
- Version:
- $Id: $Id
- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantBAUD_KEY="baud"static final StringConstantBUS_KEY="bus"static final StringConstantFLAGS_KEY="flags"static final StringConstantMODE_KEY="mode"Fields inherited from interface com.pi4j.config.AddressConfig
ADDRESS_KEYFields inherited from interface com.pi4j.config.Config
DESCRIPTION_KEY, ID_KEY, NAME_KEYFields inherited from interface com.pi4j.io.IOConfig
PLATFORM_KEY, PROVIDER_KEY -
Method Summary
Modifier and TypeMethodDescriptionbaud()baud.bus()bus.booleanbusUserProvided.channel()channel.chipSelect.flags()flags.default IntegergetBaud()getBaud.default SpiBusgetBus()getBus.default booleangetBusUserProvided.default IntegergetFlags.default SpiChipSelectgetFlags.default LonggetFlags()getFlags.default SpiModegetMode()getMode.default booleanbgetModeUserProvided.mode()mode.booleanmodeUserProvided.static SpiConfigBuildernewBuilder(Context context) newBuilder.Methods inherited from interface com.pi4j.config.AddressConfig
address, getAddressMethods inherited from interface com.pi4j.config.Config
description, getDescription, getId, getName, id, name, properties, validateMethods inherited from interface com.pi4j.io.IOConfig
getPlatform, getProvider, platform, provider
-
Field Details
-
BAUD_KEY
ConstantBAUD_KEY="baud"- See Also:
-
BUS_KEY
ConstantBUS_KEY="bus"- See Also:
-
MODE_KEY
ConstantMODE_KEY="mode"- See Also:
-
FLAGS_KEY
ConstantFLAGS_KEY="flags"- See Also:
-
-
Method Details
-
newBuilder
newBuilder.
- Parameters:
context-Context- Returns:
- a
I2CConfigBuilderobject.
-
baud
Integer baud()baud.
- Returns:
- a
Integerobject.
-
getBaud
getBaud.
- Returns:
- a
Integerobject.
-
bus
SpiBus bus()bus.
If the Bus value is configured, that SpiBus value will be set in the flags
flags()bit 'A' 8- Returns:
- a
SpiBusobject.
-
getBus
getBus.
- Returns:
- a
SpiBusobject.
-
busUserProvided
boolean busUserProvided()busUserProvided.
- Returns:
- a boolean.
-
getBusUserProvided
default boolean getBusUserProvided()getBusUserProvided.
- Returns:
- a
Booleanobject.
-
mode
SpiMode mode()mode.
If the Mode value is configured, that SpiMode value will be set in the flags
mode()bit 'm m' 1:0- Returns:
- a
SpiModeobject.
-
getMode
getMode.
- Returns:
- a
SpiModeobject.
-
modeUserProvided
boolean modeUserProvided()modeUserProvided.
- Returns:
- a boolean.
-
getModeUserProvided
default boolean getModeUserProvided()bgetModeUserProvided.
- Returns:
- a
Booleanobject.
-
flags
Long flags()flags.
- Returns:
- a
Longobject.
-
getFlags
getFlags.
- Returns:
- a
Longobject.
-
channel
Integer channel()channel. (ALIAS for 'address')
- Returns:
- a
Integerobject.
-
getChannel
getFlags. (ALIAS for 'getAddress')
- Returns:
- a
Longobject.
-
chipSelect
SpiChipSelect chipSelect()chipSelect. (ALIAS for 'address')
- Returns:
- a
SpiChipSelectobject.
-
getChipSelect
getFlags. (ALIAS for 'getAddress')
- Returns:
- a
SpiChipSelectobject.
-