CTRE Phoenix C++ 5.33.1
ctre::phoenix::CANifierFaults Struct Reference

Faults available to CANifier (Currently has none) More...

#include <ctre/phoenix/CANifierFaults.h>

Public Member Functions

bool HasAnyFault () const
 
int ToBitfield () const
 
 CANifierFaults (int bits)
 Updates current fault list with specified bit field of faults. More...
 
 CANifierFaults ()
 

Detailed Description

Faults available to CANifier (Currently has none)

Constructor & Destructor Documentation

◆ CANifierFaults() [1/2]

ctre::phoenix::CANifierFaults::CANifierFaults ( int  bits)
inline

Updates current fault list with specified bit field of faults.

Parameters
bitsbit field of faults to update with

◆ CANifierFaults() [2/2]

ctre::phoenix::CANifierFaults::CANifierFaults ( )
inline

Member Function Documentation

◆ HasAnyFault()

bool ctre::phoenix::CANifierFaults::HasAnyFault ( ) const
inline
Returns
true if any faults are tripped

◆ ToBitfield()

int ctre::phoenix::CANifierFaults::ToBitfield ( ) const
inline
Returns
Current fault list as a bit field

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