CTRE Phoenix 6 C++ 26.0.0-beta-1
Loading...
Searching...
No Matches
ctre::phoenix6::signals::S1CloseStateValue Struct Reference

What value the Signal 1 input (S1IN) needs to be for the CTR Electronics' 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 other) const
 
constexpr auto operator<=> (S1CloseStateValue 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 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

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

Detailed Description

What value the Signal 1 input (S1IN) needs to be for the CTR Electronics' 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<=>()

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

◆ operator==()

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

◆ Serialize()

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

◆ ToString()

std::string_view ctre::phoenix6::signals::S1CloseStateValue::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,
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 struct was generated from the following file: