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

State of the Signal 2 input (S2IN). More...

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

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

Public Member Functions

constexpr S2StateValue (int value)
 
constexpr S2StateValue ()
 
constexpr bool operator== (S2StateValue data) const
 
constexpr bool operator== (int data) const
 
constexpr bool operator!= (S2StateValue data) const
 
constexpr bool operator!= (int data) const
 
constexpr bool operator< (S2StateValue 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 Floating = 0
 Input is not driven high or low, it is disconnected from load.
 
static constexpr int Low = 1
 Input is driven low (below 0.5V).
 
static constexpr int High = 2
 Input is driven high (above 3V).
 

Friends

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

Detailed Description

State of the Signal 2 input (S2IN).

Constructor & Destructor Documentation

◆ S2StateValue() [1/2]

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

◆ S2StateValue() [2/2]

ctre::phoenix6::signals::S2StateValue::S2StateValue ( )
inlineconstexpr

Member Function Documentation

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator<() [1/2]

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

◆ operator<() [2/2]

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ Serialize()

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

◆ ToString()

std::string ctre::phoenix6::signals::S2StateValue::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,
S2StateValue data )
friend

Member Data Documentation

◆ Floating

int ctre::phoenix6::signals::S2StateValue::Floating = 0
staticconstexpr

Input is not driven high or low, it is disconnected from load.

◆ High

int ctre::phoenix6::signals::S2StateValue::High = 2
staticconstexpr

Input is driven high (above 3V).

◆ Low

int ctre::phoenix6::signals::S2StateValue::Low = 1
staticconstexpr

Input is driven low (below 0.5V).

◆ value

int ctre::phoenix6::signals::S2StateValue::value

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