001package com.ctre.phoenix; 002 003/** 004 * Faults available to CANifier (Currently has none) 005 */ 006public class CANifierFaults { 007 /** 008 * @return true if any faults are tripped 009 */ 010 public boolean hasAnyFault() { 011 return false; 012 } 013 /** 014 * @return Current fault list as a bit field 015 */ 016 public int toBitfield() { 017 int retval = 0; 018 return retval; 019 } 020 /** 021 * Updates current fault list with specified bit field of faults 022 * 023 * @param bits bit field of faults to update with 024 */ 025 public void update(int bits) { 026 } 027 public CANifierFaults() { 028 } 029};