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.simulation;
006
007import edu.wpi.first.hal.HALValue;
008
009@FunctionalInterface
010public interface SimValueCallback {
011  void callback(String name, int handle, int direction, HALValue value);
012
013  default void callbackNative(
014      String name, int handle, int direction, int type, long value1, double value2) {
015    callback(name, handle, direction, HALValue.fromNative(type, value1, value2));
016  }
017}