public class LynxDigitalChannelController extends LynxController
LynxDigitalChannelController
provides access to the digital IO pins on a Lynx module.Modifier and Type | Class and Description |
---|---|
protected class |
LynxDigitalChannelController.PinProperties |
LynxController.PretendLynxModule
Modifier and Type | Field and Description |
---|---|
static int |
apiPinFirst |
static int |
apiPinLast |
protected LynxDigitalChannelController.PinProperties[] |
pins |
static java.lang.String |
TAG |
context, hardwareDeviceHealth, isEngaged, isHardwareInitialized, isHooked, registeredCallbacks
tag
Constructor and Description |
---|
LynxDigitalChannelController(android.content.Context context,
LynxModule module) |
Modifier and Type | Method and Description |
---|---|
void |
forgetLastKnown() |
java.lang.String |
getDeviceName() |
DigitalChannel.Mode |
getDigitalChannelMode(int pin) |
boolean |
getDigitalChannelState(int pin) |
SerialNumber |
getSerialNumber() |
protected java.lang.String |
getTag() |
void |
initializeHardware() |
void |
setDigitalChannelMode(int pin,
DigitalChannel.Mode mode) |
void |
setDigitalChannelMode(int pin,
Mode mode)
Deprecated.
|
void |
setDigitalChannelState(int pin,
boolean state) |
adjustHookingToMatchEngagement, close, disengage, doHook, doUnhook, engage, finishConstruction, floatHardware, getArmingState, getConnectionInfo, getHealthStatus, getHealthStatusOverride, getManufacturer, getModule, getVersion, hook, isArmed, isEngaged, moduleNowArmedOrPretending, moduleNowDisarmed, onModuleStateChange, registerCallback, resetDeviceConfigurationForOpMode, setHealthStatus, setHealthyIfArmed, unhook, unregisterCallback
handleException, handleSpecificException, handleSpecificException
public static final java.lang.String TAG
public static final int apiPinFirst
public static final int apiPinLast
protected final LynxDigitalChannelController.PinProperties[] pins
public LynxDigitalChannelController(android.content.Context context, LynxModule module) throws RobotCoreException, java.lang.InterruptedException
RobotCoreException
java.lang.InterruptedException
protected java.lang.String getTag()
getTag
in class LynxController
public void initializeHardware()
initializeHardware
in class LynxController
public void forgetLastKnown()
forgetLastKnown
in class LynxController
public java.lang.String getDeviceName()
getDeviceName
in class LynxController
public SerialNumber getSerialNumber()
getSerialNumber
in class LynxController
public DigitalChannel.Mode getDigitalChannelMode(int pin)
public void setDigitalChannelMode(int pin, DigitalChannel.Mode mode)
@Deprecated public void setDigitalChannelMode(int pin, Mode mode)
public boolean getDigitalChannelState(int pin)
public void setDigitalChannelState(int pin, boolean state)