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 010public class PowerJNI extends JNIWrapper { 011 public static native double getVinVoltage(); 012 013 public static native double getVinCurrent(); 014 015 public static native double getUserVoltage6V(); 016 017 public static native double getUserCurrent6V(); 018 019 public static native boolean getUserActive6V(); 020 021 public static native int getUserCurrentFaults6V(); 022 023 public static native double getUserVoltage5V(); 024 025 public static native double getUserCurrent5V(); 026 027 public static native boolean getUserActive5V(); 028 029 public static native int getUserCurrentFaults5V(); 030 031 public static native double getUserVoltage3V3(); 032 033 public static native double getUserCurrent3V3(); 034 035 public static native boolean getUserActive3V3(); 036 037 public static native int getUserCurrentFaults3V3(); 038}