CTRE Phoenix C++ 5.33.1
CANifierFaults.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4namespace ctre {
5namespace phoenix {
6
7/**
8 * Faults available to CANifier (Currently has none)
9 */
11 /**
12 * @return true if any faults are tripped
13 */
14 bool HasAnyFault() const {
15 return false;
16 }
17 /**
18 * @return Current fault list as a bit field
19 */
20 int ToBitfield() const {
21 int retval = 0;
22 return retval;
23 }
24 /**
25 * Updates current fault list with specified bit field of faults
26 *
27 * @param bits bit field of faults to update with
28 */
29 CANifierFaults(int bits) {
30 (void)bits;
31 }
33 }
34};
35
36} // phoenix
37} // ctre
38
namespace ctre
Definition: paramEnum.h:5
Faults available to CANifier (Currently has none)
Definition: CANifierFaults.h:10
CANifierFaults(int bits)
Updates current fault list with specified bit field of faults.
Definition: CANifierFaults.h:29
bool HasAnyFault() const
Definition: CANifierFaults.h:14
int ToBitfield() const
Definition: CANifierFaults.h:20
CANifierFaults()
Definition: CANifierFaults.h:32