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 | |
| 15 | HAL_SimValueHandle HAL_CreateSimValue(HAL_SimDeviceHandle device, |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 16 | const char* name, int32_t direction, |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 17 | const struct HAL_Value* initialValue) { |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | HAL_SimValueHandle HAL_CreateSimValueEnum(HAL_SimDeviceHandle device, |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 22 | const char* name, int32_t direction, |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 23 | int32_t numOptions, |
| 24 | const char** options, |
| 25 | int32_t initialValue) { |
| 26 | return 0; |
| 27 | } |
| 28 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 29 | HAL_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 Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 36 | void HAL_GetSimValue(HAL_SimValueHandle handle, struct HAL_Value* value) { |
| 37 | value->type = HAL_UNASSIGNED; |
| 38 | } |
| 39 | |
| 40 | void HAL_SetSimValue(HAL_SimValueHandle handle, const struct HAL_Value* value) { |
| 41 | } |
| 42 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 43 | void HAL_ResetSimValue(HAL_SimValueHandle handle) {} |
| 44 | |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 45 | hal::SimDevice::SimDevice(const char* name, int index) {} |
| 46 | |
| 47 | hal::SimDevice::SimDevice(const char* name, int index, int channel) {} |
| 48 | |
| 49 | } // extern "C" |