WPILibC++ 2023.4.3
frc::DigitalSource Class Referenceabstract

DigitalSource Interface. More...

#include <frc/DigitalSource.h>

Inheritance diagram for frc::DigitalSource:
frc::AnalogTriggerOutput frc::DigitalInput frc::DigitalOutput

Public Member Functions

 DigitalSource ()=default
 
 DigitalSource (DigitalSource &&)=default
 
DigitalSourceoperator= (DigitalSource &&)=default
 
virtual HAL_Handle GetPortHandleForRouting () const =0
 
virtual AnalogTriggerType GetAnalogTriggerTypeForRouting () const =0
 
virtual bool IsAnalogTrigger () const =0
 
virtual int GetChannel () const =0
 

Detailed Description

DigitalSource Interface.

The DigitalSource represents all the possible inputs for a counter or a quadrature encoder. The source may be either a digital input or an analog input. If the caller just provides a channel, then a digital input will be constructed and freed when finished for the source. The source can either be a digital input or analog trigger but not both.

Constructor & Destructor Documentation

◆ DigitalSource() [1/2]

frc::DigitalSource::DigitalSource ( )
default

◆ DigitalSource() [2/2]

frc::DigitalSource::DigitalSource ( DigitalSource &&  )
default

Member Function Documentation

◆ GetAnalogTriggerTypeForRouting()

virtual AnalogTriggerType frc::DigitalSource::GetAnalogTriggerTypeForRouting ( ) const
pure virtual

◆ GetChannel()

virtual int frc::DigitalSource::GetChannel ( ) const
pure virtual

◆ GetPortHandleForRouting()

virtual HAL_Handle frc::DigitalSource::GetPortHandleForRouting ( ) const
pure virtual

◆ IsAnalogTrigger()

virtual bool frc::DigitalSource::IsAnalogTrigger ( ) const
pure virtual

◆ operator=()

DigitalSource & frc::DigitalSource::operator= ( DigitalSource &&  )
default

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