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