86 const char*
name, int32_t direction,
104 int32_t initialValue) {
124 int64_t initialValue) {
144 double initialValue) {
166 const char*
name, int32_t direction,
168 const char** options,
169 int32_t initialValue);
190 int32_t numOptions,
const char** options,
const double* optionValues,
191 int32_t initialValue);
@ name
Definition base.h:690
HAL_SimValueHandle HAL_CreateSimValueEnumDouble(HAL_SimDeviceHandle device, const char *name, int32_t direction, int32_t numOptions, const char **options, const double *optionValues, int32_t initialValue)
Creates an enumerated value on a simulated device with double values.
HAL_SimValueHandle HAL_CreateSimValueInt(HAL_SimDeviceHandle device, const char *name, int32_t direction, int32_t initialValue)
Creates an int value on a simulated device.
Definition SimDevice.h:101
double HAL_GetSimValueDouble(HAL_SimValueHandle handle)
Gets a simulated value (double).
Definition SimDevice.h:251
HAL_SimValueHandle HAL_CreateSimValue(HAL_SimDeviceHandle device, const char *name, int32_t direction, const struct HAL_Value *initialValue)
Creates a value on a simulated device.
int32_t HAL_GetSimValueEnum(HAL_SimValueHandle handle)
Gets a simulated value (enum).
Definition SimDevice.h:263
HAL_SimValueHandle HAL_CreateSimValueBoolean(HAL_SimDeviceHandle device, const char *name, int32_t direction, HAL_Bool initialValue)
Creates a boolean value on a simulated device.
Definition SimDevice.h:205
void HAL_SetSimValueEnum(HAL_SimValueHandle handle, int32_t value)
Sets a simulated value (enum).
Definition SimDevice.h:328
void HAL_SetSimValueDouble(HAL_SimValueHandle handle, double value)
Sets a simulated value (double).
Definition SimDevice.h:317
void HAL_FreeSimDevice(HAL_SimDeviceHandle handle)
Frees a simulated device.
void HAL_SetSimValue(HAL_SimValueHandle handle, const struct HAL_Value *value)
Sets a simulated value.
void HAL_SetSimValueLong(HAL_SimValueHandle handle, int64_t value)
Sets a simulated value (long).
Definition SimDevice.h:306
HAL_SimDeviceHandle HAL_CreateSimDevice(const char *name)
Creates a simulated device.
HAL_SimValueHandle HAL_CreateSimValueEnum(HAL_SimDeviceHandle device, const char *name, int32_t direction, int32_t numOptions, const char **options, int32_t initialValue)
Creates an enumerated value on a simulated device.
HAL_SimValueHandle HAL_CreateSimValueDouble(HAL_SimDeviceHandle device, const char *name, int32_t direction, double initialValue)
Creates a double value on a simulated device.
Definition SimDevice.h:141
HAL_SimValueHandle HAL_CreateSimValueLong(HAL_SimDeviceHandle device, const char *name, int32_t direction, int64_t initialValue)
Creates a long value on a simulated device.
Definition SimDevice.h:121
void HAL_SetSimValueInt(HAL_SimValueHandle handle, int value)
Sets a simulated value (int).
Definition SimDevice.h:295
HAL_SimValueDirection
Direction of a simulated value (from the perspective of user code).
Definition SimDevice.h:27
HAL_Bool HAL_GetSimValueBoolean(HAL_SimValueHandle handle)
Gets a simulated value (boolean).
Definition SimDevice.h:275
void HAL_GetSimValue(HAL_SimValueHandle handle, struct HAL_Value *value)
Gets a simulated value.
int64_t HAL_GetSimValueLong(HAL_SimValueHandle handle)
Gets a simulated value (long).
Definition SimDevice.h:239
const char * HAL_GetSimDeviceName(HAL_SimDeviceHandle handle)
Get the name of a simulated device.
void HAL_SetSimValueBoolean(HAL_SimValueHandle handle, HAL_Bool value)
Sets a simulated value (boolean).
Definition SimDevice.h:339
int32_t HAL_GetSimValueInt(HAL_SimValueHandle handle)
Gets a simulated value (int).
Definition SimDevice.h:227
void HAL_ResetSimValue(HAL_SimValueHandle handle)
Resets a simulated double or integral value to 0.
@ HAL_SimValueBidir
bidirectional between user code and simulator
Definition SimDevice.h:30
@ HAL_SimValueOutput
output from user code to the simulator
Definition SimDevice.h:29
@ HAL_SimValueInput
input to user code from the simulator
Definition SimDevice.h:28
int32_t HAL_Bool
Definition Types.h:75
HAL_Handle HAL_SimDeviceHandle
Definition Types.h:53
#define HAL_ENUM(name)
Definition Types.h:90
HAL_Handle HAL_SimValueHandle
Definition Types.h:55
struct HAL_Value HAL_MakeBoolean(HAL_Bool v)
Build a HAL boolean value.
Definition Value.h:46
struct HAL_Value HAL_MakeDouble(double v)
Build a HAL double value.
Definition Value.h:98
struct HAL_Value HAL_MakeEnum(int v)
Build a HAL enum value.
Definition Value.h:59
struct HAL_Value HAL_MakeInt(int v)
Build a HAL int value.
Definition Value.h:72
struct HAL_Value HAL_MakeLong(int64_t v)
Build a HAL long value.
Definition Value.h:85
@ HAL_DOUBLE
Double.
Definition Value.h:16
@ HAL_LONG
Long.
Definition Value.h:22
@ HAL_BOOLEAN
Boolean.
Definition Value.h:14
@ HAL_INT
Int.
Definition Value.h:20
HAL Entry Value.
Definition Value.h:26
double v_double
Definition Value.h:32
union HAL_Value::@312327364243022352044307226257102247016122023071 data
int64_t v_long
Definition Value.h:31
HAL_Bool v_boolean
Definition Value.h:28
int32_t v_int
Definition Value.h:30
enum HAL_Type type
Definition Value.h:34
int32_t v_enum
Definition Value.h:29