CTRE_Phoenix  5.19.4
ctre::phoenix::CANifierStickyFaults Struct Reference

#include <CANifierStickyFaults.h>

Public Member Functions

bool HasAnyFault () const
 
int ToBitfield () const
 
 CANifierStickyFaults (int bits)
 

Detailed Description

Sticky Faults for CANifier (Currently has none)

Constructor & Destructor Documentation

◆ CANifierStickyFaults()

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

Updates current fault list with specified bit field of faults

Parameters
bitsbit field of faults to update with

Member Function Documentation

◆ HasAnyFault()

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

◆ ToBitfield()

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

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