// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

package org.wpilib.hardware.hal.simulation;

import org.wpilib.hardware.hal.JNIWrapper;

/** JNI for digital PWM data. */
public class DigitalPWMDataJNI extends JNIWrapper {
  public static native int registerInitializedCallback(
      int index, NotifyCallback callback, boolean initialNotify);

  public static native void cancelInitializedCallback(int index, int uid);

  public static native boolean getInitialized(int index);

  public static native void setInitialized(int index, boolean initialized);

  public static native int registerDutyCycleCallback(
      int index, NotifyCallback callback, boolean initialNotify);

  public static native void cancelDutyCycleCallback(int index, int uid);

  public static native double getDutyCycle(int index);

  public static native void setDutyCycle(int index, double dutyCycle);

  public static native int registerPinCallback(
      int index, NotifyCallback callback, boolean initialNotify);

  public static native void cancelPinCallback(int index, int uid);

  public static native int getPin(int index);

  public static native void setPin(int index, int pin);

  public static native void resetData(int index);

  public static native int findForChannel(int channel);

  /** Utility class. */
  private DigitalPWMDataJNI() {}
}
