CTRE Phoenix Pro C++ 23.0.12
ctre::phoenixpro::signals::ReverseLimitTypeValue Class Reference

Determines if limit is normally-open (default) or normally-closed. More...

#include <ctre/phoenixpro/signals/SpnEnums.hpp>

Inheritance diagram for ctre::phoenixpro::signals::ReverseLimitTypeValue:
ctre::phoenixpro::ISerializable

Public Member Functions

 ReverseLimitTypeValue (int value)
 
 ReverseLimitTypeValue ()
 
std::string ToString () const
 Gets the string representation of this enum. More...
 
std::string Serialize () const
 
bool operator== (const ReverseLimitTypeValue &data) const
 
bool operator== (int data) const
 
bool operator< (const ReverseLimitTypeValue &data) const
 
bool operator< (int data) const
 
virtual std::string Serialize () const =0
 

Public Attributes

int value
 

Static Public Attributes

static constexpr int NormallyOpen = 0
 
static constexpr int NormallyClosed = 1
 

Friends

std::ostream & operator<< (std::ostream &os, const ReverseLimitTypeValue &data)
 

Detailed Description

Determines if limit is normally-open (default) or normally-closed.

Constructor & Destructor Documentation

◆ ReverseLimitTypeValue() [1/2]

ctre::phoenixpro::signals::ReverseLimitTypeValue::ReverseLimitTypeValue ( int  value)
inline

◆ ReverseLimitTypeValue() [2/2]

ctre::phoenixpro::signals::ReverseLimitTypeValue::ReverseLimitTypeValue ( )
inline

Member Function Documentation

◆ operator<() [1/2]

bool ctre::phoenixpro::signals::ReverseLimitTypeValue::operator< ( const ReverseLimitTypeValue data) const
inline

◆ operator<() [2/2]

bool ctre::phoenixpro::signals::ReverseLimitTypeValue::operator< ( int  data) const
inline

◆ operator==() [1/2]

bool ctre::phoenixpro::signals::ReverseLimitTypeValue::operator== ( const ReverseLimitTypeValue data) const
inline

◆ operator==() [2/2]

bool ctre::phoenixpro::signals::ReverseLimitTypeValue::operator== ( int  data) const
inline

◆ Serialize()

std::string ctre::phoenixpro::signals::ReverseLimitTypeValue::Serialize ( ) const
inlinevirtual

◆ ToString()

std::string ctre::phoenixpro::signals::ReverseLimitTypeValue::ToString ( ) const
inline

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const ReverseLimitTypeValue data 
)
friend

Member Data Documentation

◆ NormallyClosed

constexpr int ctre::phoenixpro::signals::ReverseLimitTypeValue::NormallyClosed = 1
staticconstexpr

◆ NormallyOpen

constexpr int ctre::phoenixpro::signals::ReverseLimitTypeValue::NormallyOpen = 0
staticconstexpr

◆ value

int ctre::phoenixpro::signals::ReverseLimitTypeValue::value

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