WPILib 2012
WPILibRoboticsLibraryforFRC
|
#include <SolenoidBase.h>
Public Member Functions | |
virtual | ~SolenoidBase () |
UINT8 | GetAll () |
Protected Member Functions | |
SolenoidBase (UINT8 moduleNumber) | |
void | Set (UINT8 value, UINT8 mask) |
virtual void | InitSolenoid ()=0 |
Protected Attributes | |
UINT32 | m_moduleNumber |
Slot number where the module is plugged into the chassis. | |
Static Protected Attributes | |
static Resource * | m_allocated = NULL |
SolenoidBase class is the common base class for the Solenoid and DoubleSolenoid classes.
SolenoidBase::~SolenoidBase | ( | ) | [virtual] |
Destructor.
SolenoidBase::SolenoidBase | ( | UINT8 | moduleNumber | ) | [explicit, protected] |
Constructor
moduleNumber | The solenoid module (1 or 2). |
UINT8 SolenoidBase::GetAll | ( | ) |
Read all 8 solenoids as a single byte
void SolenoidBase::Set | ( | UINT8 | value, |
UINT8 | mask | ||
) | [protected] |
Set the value of a solenoid.
value | The value you want to set on the module. |
mask | The channels you want to be affected. |