CTRE Phoenix 6 C++ 26.3.0
Loading...
Searching...
No Matches
ctre::phoenix6::signals::LossOfSignalBehaviorValue Struct Reference

The behavior of the LEDs when the control signal is lost. More...

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

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

Public Member Functions

constexpr LossOfSignalBehaviorValue (int value)
 
constexpr LossOfSignalBehaviorValue ()
 
constexpr bool operator== (LossOfSignalBehaviorValue other) const
 
constexpr auto operator<=> (LossOfSignalBehaviorValue 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 KeepRunning = 0
 LEDs remain enabled, and animations continue to run.
 
static constexpr int DisableLEDs = 1
 LEDs and animations are disabled after the control signal is lost.
 

Friends

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

Detailed Description

The behavior of the LEDs when the control signal is lost.

Constructor & Destructor Documentation

◆ LossOfSignalBehaviorValue() [1/2]

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

◆ LossOfSignalBehaviorValue() [2/2]

ctre::phoenix6::signals::LossOfSignalBehaviorValue::LossOfSignalBehaviorValue ( )
inlineconstexpr

Member Function Documentation

◆ operator<=>()

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

◆ operator==()

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

◆ Serialize()

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

◆ ToString()

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

Member Data Documentation

◆ DisableLEDs

int ctre::phoenix6::signals::LossOfSignalBehaviorValue::DisableLEDs = 1
staticconstexpr

LEDs and animations are disabled after the control signal is lost.

◆ KeepRunning

int ctre::phoenix6::signals::LossOfSignalBehaviorValue::KeepRunning = 0
staticconstexpr

LEDs remain enabled, and animations continue to run.

◆ value

int ctre::phoenix6::signals::LossOfSignalBehaviorValue::value

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