WPILib 2012
WPILibRoboticsLibraryforFRC
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
SolenoidBase Class Reference

#include <SolenoidBase.h>

Inheritance diagram for SolenoidBase:
SensorBase ErrorBase DoubleSolenoid Solenoid

List of all members.

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 Resourcem_allocated = NULL

Detailed Description

SolenoidBase class is the common base class for the Solenoid and DoubleSolenoid classes.


Constructor & Destructor Documentation

SolenoidBase::~SolenoidBase ( ) [virtual]

Destructor.

SolenoidBase::SolenoidBase ( UINT8  moduleNumber) [explicit, protected]

Constructor

Parameters:
moduleNumberThe solenoid module (1 or 2).

Member Function Documentation

UINT8 SolenoidBase::GetAll ( )

Read all 8 solenoids as a single byte

Returns:
The current value of all 8 solenoids on the module.
void SolenoidBase::Set ( UINT8  value,
UINT8  mask 
) [protected]

Set the value of a solenoid.

Parameters:
valueThe value you want to set on the module.
maskThe channels you want to be affected.

The documentation for this class was generated from the following files:
 All Classes Functions Variables