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()mode.channel()channel.chipSelect.flags()flags.default IntegergetBaud()getBaud.default SpiBusgetBus()getMode.default IntegergetFlags.default SpiChipSelectgetFlags.default LonggetFlags()getFlags.default SpiModegetMode()getMode.mode()mode.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()mode.
- Returns:
- a
SpiBusobject.
-
getBus
getMode.
- Returns:
- a
SpiBusobject.
-
mode
SpiMode mode()mode.
- Returns:
- a
SpiModeobject.
-
getMode
getMode.
- Returns:
- a
SpiModeobject.
-
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.
-