James Kuszmaul | 4f3ad3c | 2019-12-01 16:35:21 -0800 | [diff] [blame] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) 2019 FIRST. All Rights Reserved. */ |
| 3 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
| 4 | /* must be accompanied by the FIRST BSD license file in the root directory of */ |
| 5 | /* the project. */ |
| 6 | /*----------------------------------------------------------------------------*/ |
| 7 | |
| 8 | #include "hal/SimDevice.h" |
| 9 | |
| 10 | extern "C" { |
| 11 | |
| 12 | HAL_SimDeviceHandle HAL_CreateSimDevice(const char* name) { return 0; } |
| 13 | |
| 14 | void HAL_FreeSimDevice(HAL_SimDeviceHandle handle) {} |
| 15 | |
| 16 | HAL_SimValueHandle HAL_CreateSimValue(HAL_SimDeviceHandle device, |
| 17 | const char* name, HAL_Bool readonly, |
| 18 | const struct HAL_Value* initialValue) { |
| 19 | return 0; |
| 20 | } |
| 21 | |
| 22 | HAL_SimValueHandle HAL_CreateSimValueEnum(HAL_SimDeviceHandle device, |
| 23 | const char* name, HAL_Bool readonly, |
| 24 | int32_t numOptions, |
| 25 | const char** options, |
| 26 | int32_t initialValue) { |
| 27 | return 0; |
| 28 | } |
| 29 | |
| 30 | void HAL_GetSimValue(HAL_SimValueHandle handle, struct HAL_Value* value) { |
| 31 | value->type = HAL_UNASSIGNED; |
| 32 | } |
| 33 | |
| 34 | void HAL_SetSimValue(HAL_SimValueHandle handle, const struct HAL_Value* value) { |
| 35 | } |
| 36 | |
| 37 | hal::SimDevice::SimDevice(const char* name, int index) {} |
| 38 | |
| 39 | hal::SimDevice::SimDevice(const char* name, int index, int channel) {} |
| 40 | |
| 41 | } // extern "C" |