|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.first.wpilibj.SensorBase
edu.wpi.first.wpilibj.SolenoidBase
public abstract class SolenoidBase
SolenoidBase class is the common base class for the Solenoid and DoubleSolenoid classes.
Field Summary | |
---|---|
protected static Resource |
m_allocated
|
protected int |
m_moduleNumber
|
Fields inherited from class edu.wpi.first.wpilibj.SensorBase |
---|
kAnalogChannels, kAnalogModules, kDigitalChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond |
Constructor Summary | |
---|---|
SolenoidBase(int moduleNumber)
Constructor. |
Method Summary | |
---|---|
void |
free()
Destructor. |
byte |
getAll()
Read all 8 solenoids from the module used by this solenoid as a single byte |
static byte |
getAllFromDefaultModule()
Read all 8 solenoids in the default solenoid module as a single byte |
static byte |
getAllFromModule(int moduleNumber)
Read all 8 solenoids in the specified solenoid module as a single byte |
protected void |
set(int value,
int mask)
Set the value of a solenoid. |
Methods inherited from class edu.wpi.first.wpilibj.SensorBase |
---|
checkAnalogChannel, checkAnalogModule, checkDigitalChannel, checkDigitalModule, checkPWMChannel, checkPWMModule, checkRelayChannel, checkRelayModule, checkSolenoidChannel, checkSolenoidModule, getDefaultAnalogModule, getDefaultDigitalModule, getDefaultSolenoidModule, setDefaultAnalogModule, setDefaultDigitalModule, setDefaultSolenoidModule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int m_moduleNumber
protected static Resource m_allocated
Constructor Detail |
---|
public SolenoidBase(int moduleNumber)
moduleNumber
- The number of the solenoid module to use.Method Detail |
---|
public void free()
free
in class SensorBase
protected void set(int value, int mask)
value
- The value you want to set on the module.mask
- The channels you want to be affected.public byte getAll()
public static byte getAllFromDefaultModule()
public static byte getAllFromModule(int moduleNumber)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |