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