pub unsafe extern "C" fn SimDevice_SimDevice1(
this: *mut SimDevice,
name: *const c_char,
index: c_int,
channel: c_int,
)Expand description
Creates a simulated device.
The device name must be unique. Returns null if the device name already exists. This is a convenience method that appends index and channel in brackets to the device name, e.g. passing index=1 and channel=2 results in “device[1,2]” for the device name.
If not in simulation, results in an “empty” object that evaluates to false in a boolean context.
@param name device name @param index device index number to append to name @param channel device channel number to append to name