001// Copyright (c) FIRST and other WPILib contributors. 002// Open Source Software; you can modify and/or share it under the terms of 003// the WPILib BSD license file in the root directory of this project. 004 005package edu.wpi.first.hal; 006 007@SuppressWarnings("AbbreviationAsWordInName") 008public class REVPHVersion { 009 @SuppressWarnings("MemberName") 010 public final int firmwareMajor; 011 012 @SuppressWarnings("MemberName") 013 public final int firmwareMinor; 014 015 @SuppressWarnings("MemberName") 016 public final int firmwareFix; 017 018 @SuppressWarnings("MemberName") 019 public final int hardwareMinor; 020 021 @SuppressWarnings("MemberName") 022 public final int hardwareMajor; 023 024 @SuppressWarnings("MemberName") 025 public final int uniqueId; 026 027 /** 028 * Constructs a revph version (Called from the HAL). 029 * 030 * @param firmwareMajor firmware major 031 * @param firmwareMinor firmware minor 032 * @param firmwareFix firmware fix 033 * @param hardwareMinor hardware minor 034 * @param hardwareMajor hardware major 035 * @param uniqueId unique id 036 */ 037 public REVPHVersion( 038 int firmwareMajor, 039 int firmwareMinor, 040 int firmwareFix, 041 int hardwareMinor, 042 int hardwareMajor, 043 int uniqueId) { 044 this.firmwareMajor = firmwareMajor; 045 this.firmwareMinor = firmwareMinor; 046 this.firmwareFix = firmwareFix; 047 this.hardwareMinor = hardwareMinor; 048 this.hardwareMajor = hardwareMajor; 049 this.uniqueId = uniqueId; 050 } 051}