CTRE Phoenix C++ 5.33.0
ctre::phoenix::led::CANdleStickyFaults Struct Reference

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

#include <ctre/phoenix/led/CANdleFaults.h>

Public Member Functions

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

Public Attributes

bool HardwareFault
 Device detects hardware failure. More...
 
bool APIError
 API error detected. More...
 
bool BootDuringEnable
 Boot while receiving an enable frame. More...
 
bool VBatTooLow
 VBat is under 5V. More...
 
bool VBatTooHigh
 VBat is over 30V. More...
 
bool V5TooLow
 5V Line is under 4 V More...
 
bool V5TooHigh
 5V Line is over 6V More...
 
bool SoftwareFuse
 Exceeded output current of 6 amps. More...
 
bool ThermalFault
 Device is over temperature. More...
 
bool ShortCircuit
 Output pin is shorted to something. More...
 

Detailed Description

Faults available to CANdle (Currently has none)

Constructor & Destructor Documentation

◆ CANdleStickyFaults() [1/2]

ctre::phoenix::led::CANdleStickyFaults::CANdleStickyFaults ( int  bits)
inline

Updates current fault list with specified bit field of faults.

Parameters
bitsbit field of faults to update with

◆ CANdleStickyFaults() [2/2]

ctre::phoenix::led::CANdleStickyFaults::CANdleStickyFaults ( )
inline

Member Function Documentation

◆ HasAnyFault()

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

◆ ToBitfield()

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

◆ Update()

void ctre::phoenix::led::CANdleStickyFaults::Update ( uint64_t  bits)
inline

Member Data Documentation

◆ APIError

bool ctre::phoenix::led::CANdleStickyFaults::APIError

API error detected.

Make sure API and firmware versions are compatible.

◆ BootDuringEnable

bool ctre::phoenix::led::CANdleStickyFaults::BootDuringEnable

Boot while receiving an enable frame.

◆ HardwareFault

bool ctre::phoenix::led::CANdleStickyFaults::HardwareFault

Device detects hardware failure.

◆ ShortCircuit

bool ctre::phoenix::led::CANdleStickyFaults::ShortCircuit

Output pin is shorted to something.

◆ SoftwareFuse

bool ctre::phoenix::led::CANdleStickyFaults::SoftwareFuse

Exceeded output current of 6 amps.

◆ ThermalFault

bool ctre::phoenix::led::CANdleStickyFaults::ThermalFault

Device is over temperature.

◆ V5TooHigh

bool ctre::phoenix::led::CANdleStickyFaults::V5TooHigh

5V Line is over 6V

◆ V5TooLow

bool ctre::phoenix::led::CANdleStickyFaults::V5TooLow

5V Line is under 4 V

◆ VBatTooHigh

bool ctre::phoenix::led::CANdleStickyFaults::VBatTooHigh

VBat is over 30V.

◆ VBatTooLow

bool ctre::phoenix::led::CANdleStickyFaults::VBatTooLow

VBat is under 5V.


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