CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
ctre::phoenix6::signals::DeviceEnableValue Class Reference

Whether the device is enabled. More...

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

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

Public Member Functions

constexpr DeviceEnableValue (int value)
 
constexpr DeviceEnableValue ()
 
constexpr bool operator== (DeviceEnableValue data) const
 
constexpr bool operator== (int data) const
 
constexpr bool operator!= (DeviceEnableValue data) const
 
constexpr bool operator!= (int data) const
 
constexpr bool operator< (DeviceEnableValue data) const
 
constexpr bool operator< (int data) const
 
std::string ToString () const
 Gets the string representation of this enum.
 
std::string Serialize () const
 

Public Attributes

int value
 

Static Public Attributes

static constexpr int Enabled = 1
 
static constexpr int Disabled = 0
 

Friends

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

Detailed Description

Whether the device is enabled.

Constructor & Destructor Documentation

◆ DeviceEnableValue() [1/2]

constexpr ctre::phoenix6::signals::DeviceEnableValue::DeviceEnableValue ( int value)
inlineconstexpr

◆ DeviceEnableValue() [2/2]

constexpr ctre::phoenix6::signals::DeviceEnableValue::DeviceEnableValue ( )
inlineconstexpr

Member Function Documentation

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator<() [1/2]

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

◆ operator<() [2/2]

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ Serialize()

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

◆ ToString()

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

Member Data Documentation

◆ Disabled

constexpr int ctre::phoenix6::signals::DeviceEnableValue::Disabled = 0
staticconstexpr

◆ Enabled

constexpr int ctre::phoenix6::signals::DeviceEnableValue::Enabled = 1
staticconstexpr

◆ value

int ctre::phoenix6::signals::DeviceEnableValue::value

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