blob: 03b35f7b464908698c7e0286357300e6c3c92eb2 [file] [log] [blame]
Austin Schuh812d0d12021-11-04 20:16:48 -07001// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
Brian Silverman8fce7482020-01-05 13:18:21 -08004
5#include "hal/SimDevice.h"
6
7extern "C" {
8
Austin Schuh812d0d12021-11-04 20:16:48 -07009HAL_SimDeviceHandle HAL_CreateSimDevice(const char* name) {
10 return 0;
11}
Brian Silverman8fce7482020-01-05 13:18:21 -080012
13void HAL_FreeSimDevice(HAL_SimDeviceHandle handle) {}
14
James Kuszmaulb13e13f2023-11-22 20:44:04 -080015const char* HAL_GetSimDeviceName(HAL_SimDeviceHandle handle) {
16 return "";
17}
18
Brian Silverman8fce7482020-01-05 13:18:21 -080019HAL_SimValueHandle HAL_CreateSimValue(HAL_SimDeviceHandle device,
Austin Schuh812d0d12021-11-04 20:16:48 -070020 const char* name, int32_t direction,
Brian Silverman8fce7482020-01-05 13:18:21 -080021 const struct HAL_Value* initialValue) {
22 return 0;
23}
24
25HAL_SimValueHandle HAL_CreateSimValueEnum(HAL_SimDeviceHandle device,
Austin Schuh812d0d12021-11-04 20:16:48 -070026 const char* name, int32_t direction,
Brian Silverman8fce7482020-01-05 13:18:21 -080027 int32_t numOptions,
28 const char** options,
29 int32_t initialValue) {
30 return 0;
31}
32
Austin Schuh812d0d12021-11-04 20:16:48 -070033HAL_SimValueHandle HAL_CreateSimValueEnumDouble(
34 HAL_SimDeviceHandle device, const char* name, int32_t direction,
35 int32_t numOptions, const char** options, const double* optionValues,
36 int32_t initialValue) {
37 return 0;
38}
39
Brian Silverman8fce7482020-01-05 13:18:21 -080040void HAL_GetSimValue(HAL_SimValueHandle handle, struct HAL_Value* value) {
41 value->type = HAL_UNASSIGNED;
42}
43
44void HAL_SetSimValue(HAL_SimValueHandle handle, const struct HAL_Value* value) {
45}
46
Austin Schuh812d0d12021-11-04 20:16:48 -070047void HAL_ResetSimValue(HAL_SimValueHandle handle) {}
48
Brian Silverman8fce7482020-01-05 13:18:21 -080049hal::SimDevice::SimDevice(const char* name, int index) {}
50
51hal::SimDevice::SimDevice(const char* name, int index, int channel) {}
52
53} // extern "C"