SimBoolean¶
- class hal.SimBoolean(handle: int)¶
Bases:
SimValue
Wrapper around a HAL simulator boolean value.
It is not useful to construct these directly – they are returned from
SimDeviceSim.getBoolean()
orSimDevice.createBoolean()
.Wraps a simulated value handle as returned by HAL_CreateSimValueBoolean().
- Parameters:
handle – simulated value handle
- get() bool ¶
Gets the simulated value.
- Returns:
The current value
- set(value: bool) None ¶
Sets the simulated value.
- Parameters:
value – the value to set
- property value¶