2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2020-07-07 21:49:05 -07:00
|
|
|
|
|
|
|
|
#include "hal/simulation/SimDeviceData.h"
|
|
|
|
|
|
|
|
|
|
#include "hal/simulation/SimDataValue.h"
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
|
|
void HALSIM_SetSimDeviceEnabled(const char* prefix, HAL_Bool enabled) {}
|
|
|
|
|
|
2020-12-28 12:58:06 -08:00
|
|
|
HAL_Bool HALSIM_IsSimDeviceEnabled(const char* name) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2020-07-07 21:49:05 -07:00
|
|
|
|
|
|
|
|
int32_t HALSIM_RegisterSimDeviceCreatedCallback(
|
|
|
|
|
const char* prefix, void* param, HALSIM_SimDeviceCallback callback,
|
|
|
|
|
HAL_Bool initialNotify) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HALSIM_CancelSimDeviceCreatedCallback(int32_t uid) {}
|
|
|
|
|
|
2020-11-14 21:04:51 -08:00
|
|
|
int32_t HALSIM_RegisterSimDeviceFreedCallback(const char* prefix, void* param,
|
|
|
|
|
HALSIM_SimDeviceCallback callback,
|
|
|
|
|
HAL_Bool initialNotify) {
|
2020-07-07 21:49:05 -07:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HALSIM_CancelSimDeviceFreedCallback(int32_t uid) {}
|
|
|
|
|
|
2020-12-28 12:58:06 -08:00
|
|
|
HAL_SimDeviceHandle HALSIM_GetSimDeviceHandle(const char* name) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2020-07-07 21:49:05 -07:00
|
|
|
|
2020-12-28 12:58:06 -08:00
|
|
|
const char* HALSIM_GetSimDeviceName(HAL_SimDeviceHandle handle) {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
2020-07-07 21:49:05 -07:00
|
|
|
|
|
|
|
|
HAL_SimDeviceHandle HALSIM_GetSimValueDeviceHandle(HAL_SimValueHandle handle) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HALSIM_EnumerateSimDevices(const char* prefix, void* param,
|
|
|
|
|
HALSIM_SimDeviceCallback callback) {}
|
|
|
|
|
|
|
|
|
|
int32_t HALSIM_RegisterSimValueCreatedCallback(HAL_SimDeviceHandle device,
|
|
|
|
|
void* param,
|
|
|
|
|
HALSIM_SimValueCallback callback,
|
|
|
|
|
HAL_Bool initialNotify) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HALSIM_CancelSimValueCreatedCallback(int32_t uid) {}
|
|
|
|
|
|
|
|
|
|
int32_t HALSIM_RegisterSimValueChangedCallback(HAL_SimValueHandle handle,
|
|
|
|
|
void* param,
|
|
|
|
|
HALSIM_SimValueCallback callback,
|
|
|
|
|
HAL_Bool initialNotify) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HALSIM_CancelSimValueChangedCallback(int32_t uid) {}
|
|
|
|
|
|
2021-01-12 00:38:58 -08:00
|
|
|
int32_t HALSIM_RegisterSimValueResetCallback(HAL_SimValueHandle handle,
|
|
|
|
|
void* param,
|
|
|
|
|
HALSIM_SimValueCallback callback,
|
|
|
|
|
HAL_Bool initialNotify) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HALSIM_CancelSimValueResetCallback(int32_t uid) {}
|
|
|
|
|
|
2020-07-07 21:49:05 -07:00
|
|
|
HAL_SimValueHandle HALSIM_GetSimValueHandle(HAL_SimDeviceHandle device,
|
|
|
|
|
const char* name) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HALSIM_EnumerateSimValues(HAL_SimDeviceHandle device, void* param,
|
|
|
|
|
HALSIM_SimValueCallback callback) {}
|
|
|
|
|
|
|
|
|
|
const char** HALSIM_GetSimValueEnumOptions(HAL_SimValueHandle handle,
|
|
|
|
|
int32_t* numOptions) {
|
|
|
|
|
*numOptions = 0;
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-23 15:54:11 -08:00
|
|
|
const double* HALSIM_GetSimValueEnumDoubleValues(HAL_SimValueHandle handle,
|
|
|
|
|
int32_t* numOptions) {
|
|
|
|
|
*numOptions = 0;
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-07 21:49:05 -07:00
|
|
|
void HALSIM_ResetSimDeviceData(void) {}
|
|
|
|
|
|
|
|
|
|
} // extern "C"
|