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

State of the Signal 1 input (S1IN). More...

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

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

Public Member Functions

constexpr S1StateValue (int value)
 
constexpr S1StateValue ()
 
constexpr bool operator== (S1StateValue data) const
 
constexpr bool operator== (int data) const
 
constexpr bool operator!= (S1StateValue data) const
 
constexpr bool operator!= (int data) const
 
constexpr bool operator< (S1StateValue 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, S1StateValue data)
 

Detailed Description

State of the Signal 1 input (S1IN).

Constructor & Destructor Documentation

◆ S1StateValue() [1/2]

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

◆ S1StateValue() [2/2]

ctre::phoenix6::signals::S1StateValue::S1StateValue ( )
inlineconstexpr

Member Function Documentation

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator<() [1/2]

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

◆ operator<() [2/2]

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ Serialize()

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

◆ ToString()

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

Member Data Documentation

◆ Floating

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

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

◆ High

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

Input is driven high (above 3V).

◆ Low

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

Input is driven low (below 0.5V).

◆ value

int ctre::phoenix6::signals::S1StateValue::value

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