Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 1 | // 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 Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 4 | |
| 5 | #include "hal/SimDevice.h" |
| 6 | |
| 7 | extern "C" { |
| 8 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 9 | HAL_SimDeviceHandle HAL_CreateSimDevice(const char* name) { |
| 10 | return 0; |
| 11 | } |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 12 | |
| 13 | void HAL_FreeSimDevice(HAL_SimDeviceHandle handle) {} |
| 14 | |
James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame^] | 15 | const char* HAL_GetSimDeviceName(HAL_SimDeviceHandle handle) { |
| 16 | return ""; |
| 17 | } |
| 18 | |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 19 | HAL_SimValueHandle HAL_CreateSimValue(HAL_SimDeviceHandle device, |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 20 | const char* name, int32_t direction, |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 21 | const struct HAL_Value* initialValue) { |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | HAL_SimValueHandle HAL_CreateSimValueEnum(HAL_SimDeviceHandle device, |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 26 | const char* name, int32_t direction, |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 27 | int32_t numOptions, |
| 28 | const char** options, |
| 29 | int32_t initialValue) { |
| 30 | return 0; |
| 31 | } |
| 32 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 33 | HAL_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 Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 40 | void HAL_GetSimValue(HAL_SimValueHandle handle, struct HAL_Value* value) { |
| 41 | value->type = HAL_UNASSIGNED; |
| 42 | } |
| 43 | |
| 44 | void HAL_SetSimValue(HAL_SimValueHandle handle, const struct HAL_Value* value) { |
| 45 | } |
| 46 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 47 | void HAL_ResetSimValue(HAL_SimValueHandle handle) {} |
| 48 | |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 49 | hal::SimDevice::SimDevice(const char* name, int index) {} |
| 50 | |
| 51 | hal::SimDevice::SimDevice(const char* name, int index, int channel) {} |
| 52 | |
| 53 | } // extern "C" |