REVLib - C++
rev::SparkLimitSwitch Class Reference

#include <SparkLimitSwitch.h>

Inherits rev::SparkMaxLimitSwitch.

Public Types

enum class  Type { kNormallyOpen = 0 , kNormallyClosed = 1 }
 
- Public Types inherited from rev::SparkMaxLimitSwitch
enum class  Type { kNormallyOpen = 0 , kNormallyClosed = 1 }
 
- Public Types inherited from rev::CANDigitalInput
enum class  LimitSwitchPolarity { kNormallyOpen = 0 , kNormallyClosed = 1 }
 

Public Member Functions

 SparkLimitSwitch (SparkLimitSwitch &&)=default
 
SparkLimitSwitchoperator= (SparkLimitSwitch &&)=default
 
 SparkLimitSwitch (const SparkLimitSwitch &)=default
 
 ~SparkLimitSwitch () override=default
 
- Public Member Functions inherited from rev::SparkMaxLimitSwitch
 SparkMaxLimitSwitch (SparkMaxLimitSwitch &&)=default
 
SparkMaxLimitSwitchoperator= (SparkMaxLimitSwitch &&)=default
 
 SparkMaxLimitSwitch (const SparkMaxLimitSwitch &)=default
 
 ~SparkMaxLimitSwitch () override=default
 
bool Get () const override
 
REVLibError EnableLimitSwitch (bool enable) override
 
bool IsLimitSwitchEnabled () const override
 
- Public Member Functions inherited from rev::CANDigitalInput
virtual ~CANDigitalInput ()
 

Friends

class CANSparkBase
 

Member Enumeration Documentation

◆ Type

enum class rev::SparkLimitSwitch::Type
strong

Represents whether the circuit is open or closed when the switch is not being pressed

Enumerator
kNormallyOpen 
kNormallyClosed 

Constructor & Destructor Documentation

◆ SparkLimitSwitch() [1/2]

rev::SparkLimitSwitch::SparkLimitSwitch ( SparkLimitSwitch &&  )
default

◆ SparkLimitSwitch() [2/2]

rev::SparkLimitSwitch::SparkLimitSwitch ( const SparkLimitSwitch )
default

◆ ~SparkLimitSwitch()

rev::SparkLimitSwitch::~SparkLimitSwitch ( )
overridedefault

Member Function Documentation

◆ operator=()

SparkLimitSwitch & rev::SparkLimitSwitch::operator= ( SparkLimitSwitch &&  )
default

Friends And Related Function Documentation

◆ CANSparkBase

friend class CANSparkBase
friend

The documentation for this class was generated from the following files: