Move HAL classes to their own base package (#1317)

Needed for modularization.
This commit is contained in:
Thad House
2018-09-20 21:59:46 -07:00
committed by Peter Johnson
parent 0068b6aea3
commit e210073044
194 changed files with 1027 additions and 1102 deletions

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class AccelerometerJNI extends JNIWrapper {
public static native void setAccelerometerActive(boolean active);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj;
package edu.wpi.first.hal;
/**
* Structure for holding the values stored in an accumulator.

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public enum AllianceStationID {
Red1, Red2, Red3, Blue1, Blue2, Blue3

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class AnalogGyroJNI extends JNIWrapper {
public static native int initializeAnalogGyro(int halAnalogInputHandle);

View File

@@ -5,12 +5,10 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
import java.nio.IntBuffer;
import edu.wpi.first.wpilibj.AccumulatorResult;
public class AnalogJNI extends JNIWrapper {
/**
* <i>native declaration : AthenaJava\target\native\include\HAL\Analog.h:58</i><br> enum values

View File

@@ -5,9 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
import edu.wpi.first.wpilibj.CANData;
package edu.wpi.first.hal;
@SuppressWarnings("AbbreviationAsWordInName")
public class CANAPIJNI extends JNIWrapper {

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj;
package edu.wpi.first.hal;
public class CANData {
@SuppressWarnings("MemberName")

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class CompressorJNI extends JNIWrapper {
public static native int initializeCompressor(byte module);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class ConstantsJNI extends JNIWrapper {
public static native int getSystemClockTicksPerMicrosecond();

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
/**
* A wrapper for the HALControlWord bitfield.

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
import java.nio.IntBuffer;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
@SuppressWarnings("AbbreviationAsWordInName")
public class DIOJNI extends JNIWrapper {

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class DigitalGlitchFilterJNI extends JNIWrapper {
public static native void setFilterSelect(int digitalPortHandle, int filterIndex);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class EncoderJNI extends JNIWrapper {
public static native int initializeEncoder(int digitalSourceHandleA, int analogTriggerTypeA,

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
import java.nio.ByteBuffer;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
@SuppressWarnings("AbbreviationAsWordInName")
public final class HALUtil extends JNIWrapper {

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
import java.nio.ByteBuffer;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class InterruptJNI extends JNIWrapper {
public static final int HalInvalidHandle = 0;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
import java.io.IOException;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
/**
* Structure for holding the match info data request.

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
/**
* The NotifierJNI class directly wraps the C++ HAL Notifier.

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
@SuppressWarnings("AbbreviationAsWordInName")
public class PDPJNI extends JNIWrapper {

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj;
package edu.wpi.first.hal;
/**
* Structure for holding the config data result for PWM.

View File

@@ -5,9 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
import edu.wpi.first.wpilibj.PWMConfigDataResult;
package edu.wpi.first.hal;
@SuppressWarnings("AbbreviationAsWordInName")
public class PWMJNI extends DIOJNI {

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class PortsJNI extends JNIWrapper {
public static native int getNumAccumulators();

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class PowerJNI extends JNIWrapper {
public static native double getVinVoltage();

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class RelayJNI extends DIOJNI {
public static native int initializeRelayPort(int halPortHandle, boolean forward);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
import java.nio.ByteBuffer;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class SerialPortJNI extends JNIWrapper {
public static native void serialInitializePort(byte port);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class SolenoidJNI extends JNIWrapper {
public static native int initializeSolenoidPort(int halPortHandle);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.hal;
package edu.wpi.first.hal;
public class ThreadsJNI extends JNIWrapper {
public static native int getCurrentThreadPriority();

View File

@@ -5,10 +5,10 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.can;
package edu.wpi.first.hal.can;
import edu.wpi.first.wpilibj.communication.NIRioStatus;
import edu.wpi.first.wpilibj.util.UncleanStatusException;
import edu.wpi.first.hal.communication.NIRioStatus;
import edu.wpi.first.hal.util.UncleanStatusException;
public final class CANExceptionFactory {
// FRC Error codes

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.can;
package edu.wpi.first.hal.can;
/**
* Exception indicating that a CAN driver library entry-point was passed an invalid buffer.

View File

@@ -5,12 +5,12 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.can;
package edu.wpi.first.hal.can;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.JNIWrapper;
@SuppressWarnings("AbbreviationAsWordInName")
public class CANJNI extends JNIWrapper {

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.can;
package edu.wpi.first.hal.can;
/**
* Exception indicating that the Jaguar CAN Driver layer refused to send a restricted message ID to

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.can;
package edu.wpi.first.hal.can;
/**
* Exception indicating that a can message is not available from Network Communications. This

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.can;
package edu.wpi.first.hal.can;
/**
* Exception indicating that the CAN driver layer has not been initialized. This happens when an

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.can;
package edu.wpi.first.hal.can;
/**
* Structure for holding the result of a CAN Status request.

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.communication;
package edu.wpi.first.hal.communication;
public class NIRioStatus {
public static final int kRioStatusOffset = -63000;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.AccelerometerDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.AnalogGyroDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.AnalogInDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.AnalogOutDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.AnalogTriggerDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
public interface BufferCallback {
void callback(String name, byte[] buffer, int count);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
public class CallbackStore implements AutoCloseable {
interface CancelCallbackFunc {

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
public interface ConstBufferCallback {
void callback(String name, byte[] buffer, int count);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.DIODataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.DigitalPWMDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.DriverStationDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.EncoderDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.I2CDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
public interface NotifyCallback {
void callback(String name, SimValue value);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.PCMDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.PDPDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.PWMDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.RelayDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.RoboRioDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.SPIAccelerometerDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.SPIDataJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
import edu.wpi.first.hal.sim.mockdata.SimulatorJNI;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
public final class SimValue {
private boolean m_boolean;

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.sim;
package edu.wpi.first.hal.sim;
public interface SpiReadAutoReceiveBufferCallback {
int callback(String name, byte[] buffer, int numToRead);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class AccelerometerDataJNI extends JNIWrapper {
public static native int registerActiveCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class AnalogGyroDataJNI extends JNIWrapper {
public static native int registerAngleCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class AnalogInDataJNI extends JNIWrapper {
public static native int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class AnalogOutDataJNI extends JNIWrapper {
public static native int registerVoltageCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class AnalogTriggerDataJNI extends JNIWrapper {
public static native int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class DIODataJNI extends JNIWrapper {
public static native int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class DigitalPWMDataJNI extends JNIWrapper {
public static native int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
public class DriverStationDataJNI extends JNIWrapper {
public static native int registerEnabledCallback(NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class EncoderDataJNI extends JNIWrapper {
public static native int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,10 +7,10 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.BufferCallback;
import edu.wpi.first.wpilibj.sim.ConstBufferCallback;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.BufferCallback;
import edu.wpi.first.hal.sim.ConstBufferCallback;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class I2CDataJNI extends JNIWrapper {
public static native int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class PCMDataJNI extends JNIWrapper {
public static native int registerSolenoidInitializedCallback(int index, int channel, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class PDPDataJNI extends JNIWrapper {
public static native int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class PWMDataJNI extends JNIWrapper {
public static native int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class RelayDataJNI extends JNIWrapper {
public static native int registerInitializedForwardCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class RoboRioDataJNI extends JNIWrapper {
public static native int registerFPGAButtonCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,8 +7,8 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.JNIWrapper;
public class SPIAccelerometerDataJNI extends JNIWrapper {
public static native int registerActiveCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,11 +7,11 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.sim.BufferCallback;
import edu.wpi.first.wpilibj.sim.ConstBufferCallback;
import edu.wpi.first.wpilibj.sim.NotifyCallback;
import edu.wpi.first.wpilibj.sim.SpiReadAutoReceiveBufferCallback;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.sim.BufferCallback;
import edu.wpi.first.hal.sim.ConstBufferCallback;
import edu.wpi.first.hal.sim.NotifyCallback;
import edu.wpi.first.hal.sim.SpiReadAutoReceiveBufferCallback;
import edu.wpi.first.hal.JNIWrapper;
public class SPIDataJNI extends JNIWrapper {
public static native int registerInitializedCallback(int index, NotifyCallback callback, boolean initialNotify);

View File

@@ -7,7 +7,7 @@
package edu.wpi.first.hal.sim.mockdata;
import edu.wpi.first.wpilibj.hal.JNIWrapper;
import edu.wpi.first.hal.JNIWrapper;
public class SimulatorJNI extends JNIWrapper {
public static native void waitForProgramStart();

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.util;
package edu.wpi.first.hal.util;
/**
* Exception indicating that the resource is already allocated.

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.util;
package edu.wpi.first.hal.util;
/**
* This exception represents an error in which a lower limit was set as higher than an upper limit.

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.util;
package edu.wpi.first.hal.util;
/**
* Exception indicating that the resource is already allocated This is meant to be thrown by the

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.util;
package edu.wpi.first.hal.util;
/**
* Exception indicating that an error has occured with a HAL Handle.

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
package edu.wpi.first.wpilibj.util;
package edu.wpi.first.hal.util;
/**
* Exception for bad status codes from the chip object.