blob: 3a15f4605639b35161e3930e6b151bea49733c2e [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
15HAL_SimValueHandle HAL_CreateSimValue(HAL_SimDeviceHandle device,
Austin Schuh812d0d12021-11-04 20:16:48 -070016 const char* name, int32_t direction,
Brian Silverman8fce7482020-01-05 13:18:21 -080017 const struct HAL_Value* initialValue) {
18 return 0;
19}
20
21HAL_SimValueHandle HAL_CreateSimValueEnum(HAL_SimDeviceHandle device,
Austin Schuh812d0d12021-11-04 20:16:48 -070022 const char* name, int32_t direction,
Brian Silverman8fce7482020-01-05 13:18:21 -080023 int32_t numOptions,
24 const char** options,
25 int32_t initialValue) {
26 return 0;
27}
28
Austin Schuh812d0d12021-11-04 20:16:48 -070029HAL_SimValueHandle HAL_CreateSimValueEnumDouble(
30 HAL_SimDeviceHandle device, const char* name, int32_t direction,
31 int32_t numOptions, const char** options, const double* optionValues,
32 int32_t initialValue) {
33 return 0;
34}
35
Brian Silverman8fce7482020-01-05 13:18:21 -080036void HAL_GetSimValue(HAL_SimValueHandle handle, struct HAL_Value* value) {
37 value->type = HAL_UNASSIGNED;
38}
39
40void HAL_SetSimValue(HAL_SimValueHandle handle, const struct HAL_Value* value) {
41}
42
Austin Schuh812d0d12021-11-04 20:16:48 -070043void HAL_ResetSimValue(HAL_SimValueHandle handle) {}
44
Brian Silverman8fce7482020-01-05 13:18:21 -080045hal::SimDevice::SimDevice(const char* name, int index) {}
46
47hal::SimDevice::SimDevice(const char* name, int index, int channel) {}
48
49} // extern "C"