CTRE Phoenix 6 C++ 26.3.0
Loading...
Searching...
No Matches
ctre::phoenix6::signals::ReverseLimitTypeValue Struct Reference

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

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

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

Public Member Functions

constexpr ReverseLimitTypeValue (int value)
 
constexpr ReverseLimitTypeValue ()
 
constexpr bool operator== (ReverseLimitTypeValue other) const
 
constexpr auto operator<=> (ReverseLimitTypeValue other) const
 
constexpr std::string_view ToString () const
 Gets the string representation of this enum.
 
std::string Serialize () const override
 
- Public Member Functions inherited from ctre::phoenix6::ISerializable

Public Attributes

int value
 

Static Public Attributes

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

Friends

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

Detailed Description

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

Constructor & Destructor Documentation

◆ ReverseLimitTypeValue() [1/2]

ctre::phoenix6::signals::ReverseLimitTypeValue::ReverseLimitTypeValue ( int value)
inlineconstexpr

◆ ReverseLimitTypeValue() [2/2]

ctre::phoenix6::signals::ReverseLimitTypeValue::ReverseLimitTypeValue ( )
inlineconstexpr

Member Function Documentation

◆ operator<=>()

auto ctre::phoenix6::signals::ReverseLimitTypeValue::operator<=> ( ReverseLimitTypeValue other) const
inlineconstexpr

◆ operator==()

bool ctre::phoenix6::signals::ReverseLimitTypeValue::operator== ( ReverseLimitTypeValue other) const
inlineconstexpr

◆ Serialize()

std::string ctre::phoenix6::signals::ReverseLimitTypeValue::Serialize ( ) const
inlineoverridevirtual

◆ ToString()

std::string_view ctre::phoenix6::signals::ReverseLimitTypeValue::ToString ( ) const
inlineconstexpr

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Symbol Documentation

◆ operator<<

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

Member Data Documentation

◆ NormallyClosed

int ctre::phoenix6::signals::ReverseLimitTypeValue::NormallyClosed = 1
staticconstexpr

◆ NormallyOpen

int ctre::phoenix6::signals::ReverseLimitTypeValue::NormallyOpen = 0
staticconstexpr

◆ value

int ctre::phoenix6::signals::ReverseLimitTypeValue::value

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