Function setControl [src]

Sets the control bits on a serial device.

Prototype

pub fn setControl(self: *SerialIo, control: u32) SetControlError!void

Parameters

self: *SerialIocontrol: u32

Possible Errors

DeviceError
Unexpected UnexpectedError
Unsupported

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), } }