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