CTRE Phoenix 6 C++ 25.2.1
Loading...
Searching...
No Matches
ctre::phoenix6::signals::S1CloseStateValue Class Reference

What value the Signal 1 input (S1IN) needs to be for the CANdi to detect as Closed. More...

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

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

Public Member Functions

constexpr S1CloseStateValue (int value)
 
constexpr S1CloseStateValue ()
 
constexpr bool operator== (S1CloseStateValue data) const
 
constexpr bool operator== (int data) const
 
constexpr bool operator!= (S1CloseStateValue data) const
 
constexpr bool operator!= (int data) const
 
constexpr bool operator< (S1CloseStateValue data) const
 
constexpr bool operator< (int data) const
 
std::string ToString () const
 Gets the string representation of this enum.
 
std::string Serialize () const
 
- Public Member Functions inherited from ctre::phoenix6::ISerializable

Public Attributes

int value
 

Static Public Attributes

static constexpr int CloseWhenNotFloating = 0
 The S1 input will be treated as closed when it is not floating.
 
static constexpr int CloseWhenFloating = 1
 The S1 input will be treated as closed when it is floating.
 
static constexpr int CloseWhenNotHigh = 2
 The S1 input will be treated as closed when it is not High.
 
static constexpr int CloseWhenHigh = 3
 The S1 input will be treated as closed when it is High.
 
static constexpr int CloseWhenNotLow = 4
 The S1 input will be treated as closed when it is not Low.
 
static constexpr int CloseWhenLow = 5
 The S1 input will be treated as closed when it is Low.
 

Friends

std::ostream & operator<< (std::ostream &os, S1CloseStateValue data)
 

Detailed Description

What value the Signal 1 input (S1IN) needs to be for the CANdi to detect as Closed.

Devices using the S1 input as a remote limit switch will treat the switch as closed when the S1 input is this state.

Constructor & Destructor Documentation

◆ S1CloseStateValue() [1/2]

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

◆ S1CloseStateValue() [2/2]

ctre::phoenix6::signals::S1CloseStateValue::S1CloseStateValue ( )
inlineconstexpr

Member Function Documentation

◆ operator!=() [1/2]

bool ctre::phoenix6::signals::S1CloseStateValue::operator!= ( int data) const
inlineconstexpr

◆ operator!=() [2/2]

bool ctre::phoenix6::signals::S1CloseStateValue::operator!= ( S1CloseStateValue data) const
inlineconstexpr

◆ operator<() [1/2]

bool ctre::phoenix6::signals::S1CloseStateValue::operator< ( int data) const
inlineconstexpr

◆ operator<() [2/2]

bool ctre::phoenix6::signals::S1CloseStateValue::operator< ( S1CloseStateValue data) const
inlineconstexpr

◆ operator==() [1/2]

bool ctre::phoenix6::signals::S1CloseStateValue::operator== ( int data) const
inlineconstexpr

◆ operator==() [2/2]

bool ctre::phoenix6::signals::S1CloseStateValue::operator== ( S1CloseStateValue data) const
inlineconstexpr

◆ Serialize()

std::string ctre::phoenix6::signals::S1CloseStateValue::Serialize ( ) const
inlinevirtual

◆ ToString()

std::string ctre::phoenix6::signals::S1CloseStateValue::ToString ( ) const
inline

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Symbol Documentation

◆ operator<<

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

Member Data Documentation

◆ CloseWhenFloating

int ctre::phoenix6::signals::S1CloseStateValue::CloseWhenFloating = 1
staticconstexpr

The S1 input will be treated as closed when it is floating.

◆ CloseWhenHigh

int ctre::phoenix6::signals::S1CloseStateValue::CloseWhenHigh = 3
staticconstexpr

The S1 input will be treated as closed when it is High.

◆ CloseWhenLow

int ctre::phoenix6::signals::S1CloseStateValue::CloseWhenLow = 5
staticconstexpr

The S1 input will be treated as closed when it is Low.

◆ CloseWhenNotFloating

int ctre::phoenix6::signals::S1CloseStateValue::CloseWhenNotFloating = 0
staticconstexpr

The S1 input will be treated as closed when it is not floating.

◆ CloseWhenNotHigh

int ctre::phoenix6::signals::S1CloseStateValue::CloseWhenNotHigh = 2
staticconstexpr

The S1 input will be treated as closed when it is not High.

◆ CloseWhenNotLow

int ctre::phoenix6::signals::S1CloseStateValue::CloseWhenNotLow = 4
staticconstexpr

The S1 input will be treated as closed when it is not Low.

◆ value

int ctre::phoenix6::signals::S1CloseStateValue::value

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