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 LEDJNI extends JNIWrapper { 008 public static final int RADIO_LED_STATE_OFF = 0; 009 public static final int RADIO_LED_STATE_GREEN = 1; 010 public static final int RADIO_LED_STATE_RED = 2; 011 public static final int RADIO_LED_STATE_ORANGE = 3; 012 013 /** 014 * Set the state of the "Radio" LED. 015 * 016 * @param state The state to set the LED to. 017 * @see "HAL_SetRadioLEDState" 018 */ 019 public static native void setRadioLEDState(int state); 020 021 /** 022 * Get the state of the "Radio" LED. 023 * 024 * @return The state of the LED. 025 * @see "HAL_GetRadioLEDState" 026 */ 027 public static native int getRadioLEDState(); 028 029 /** Utility class. */ 030 private LEDJNI() {} 031}