Brian Silverman | 890a32a | 2018-03-11 15:41:56 -0700 | [diff] [blame^] | 1 | package com.ctre.phoenix; |
| 2 | |
| 3 | public enum CANifierStatusFrame { |
| 4 | Status_1_General(0x041400), |
| 5 | Status_2_General(0x041440), |
| 6 | Status_3_PwmInputs0(0x041480), |
| 7 | Status_4_PwmInputs1(0x0414C0), |
| 8 | Status_5_PwmInputs2(0x041500), |
| 9 | Status_6_PwmInputs3(0x041540), |
| 10 | Status_8_Misc(0x0415C0); |
| 11 | |
| 12 | public static CANifierStatusFrame valueOf(int value) { |
| 13 | for (CANifierStatusFrame frame : values()) { |
| 14 | if (frame.value == value) { |
| 15 | return frame; |
| 16 | } |
| 17 | } |
| 18 | return null; |
| 19 | } |
| 20 | |
| 21 | public final int value; |
| 22 | |
| 23 | CANifierStatusFrame(int initValue) { |
| 24 | this.value = initValue; |
| 25 | } |
| 26 | } |