001/*----------------------------------------------------------------------------*/ 002/* Copyright (c) FIRST 2016-2017. All Rights Reserved. */ 003/* Open Source Software - may be modified and shared by FRC teams. The code */ 004/* must be accompanied by the FIRST BSD license file in the root directory of */ 005/* the project. */ 006/*----------------------------------------------------------------------------*/ 007 008package edu.wpi.first.wpilibj.hal; 009 010@SuppressWarnings("AbbreviationAsWordInName") 011public class PDPJNI extends JNIWrapper { 012 public static native void initializePDP(int module); 013 014 public static native boolean checkPDPModule(int module); 015 016 public static native boolean checkPDPChannel(int channel); 017 018 public static native double getPDPTemperature(int module); 019 020 public static native double getPDPVoltage(int module); 021 022 public static native double getPDPChannelCurrent(byte channel, int module); 023 024 public static native double getPDPTotalCurrent(int module); 025 026 public static native double getPDPTotalPower(int module); 027 028 public static native double getPDPTotalEnergy(int module); 029 030 public static native void resetPDPTotalEnergy(int module); 031 032 public static native void clearPDPStickyFaults(int module); 033}