[hal] Add handle constructor and name getters for sim devices (#4925)

This commit is contained in:
Ryan Blue
2023-01-11 14:45:15 -05:00
committed by GitHub
parent 53d8d33bca
commit dc4355c031
11 changed files with 98 additions and 1 deletions

View File

@@ -26,6 +26,10 @@ void HAL_FreeSimDevice(HAL_SimDeviceHandle handle) {
SimSimDeviceData->FreeDevice(handle);
}
const char* HAL_GetSimDeviceName(HAL_SimDeviceHandle handle) {
return SimSimDeviceData->GetDeviceName(handle);
}
HAL_SimValueHandle HAL_CreateSimValue(HAL_SimDeviceHandle device,
const char* name, int32_t direction,
const struct HAL_Value* initialValue) {