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("MemberName") 008public class REVPHVersion { 009 public final int firmwareMajor; 010 011 public final int firmwareMinor; 012 013 public final int firmwareFix; 014 015 public final int hardwareMinor; 016 017 public final int hardwareMajor; 018 019 public final int uniqueId; 020 021 /** 022 * Constructs a revph version (Called from the HAL). 023 * 024 * @param firmwareMajor firmware major 025 * @param firmwareMinor firmware minor 026 * @param firmwareFix firmware fix 027 * @param hardwareMinor hardware minor 028 * @param hardwareMajor hardware major 029 * @param uniqueId unique id 030 */ 031 public REVPHVersion( 032 int firmwareMajor, 033 int firmwareMinor, 034 int firmwareFix, 035 int hardwareMinor, 036 int hardwareMajor, 037 int uniqueId) { 038 this.firmwareMajor = firmwareMajor; 039 this.firmwareMinor = firmwareMinor; 040 this.firmwareFix = firmwareFix; 041 this.hardwareMinor = hardwareMinor; 042 this.hardwareMajor = hardwareMajor; 043 this.uniqueId = uniqueId; 044 } 045}