Function setControl [src]
Sets the control bits on a serial device.
Prototype
pub fn setControl(self: *SerialIo, control: u32) SetControlError!void
Parameters
self: *SerialIo
control: u32
Possible Errors
Source
pub fn setControl(self: *SerialIo, control: u32) SetControlError!void {
switch (self._set_control(self, control)) {
.success => {},
.unsupported => return Error.Unsupported,
.device_error => return Error.DeviceError,
else => |status| return uefi.unexpectedStatus(status),
}
}