Function getControl [src]
Retrieves the status of the control bits on a serial device.
Prototype
pub fn getControl(self: *SerialIo) GetControlError!u32
Parameters
self: *SerialIo
Possible Errors
Source
pub fn getControl(self: *SerialIo) GetControlError!u32 {
var control: u32 = undefined;
switch (self._get_control(self, &control)) {
.success => return control,
.device_error => return Error.DeviceError,
else => |status| return uefi.unexpectedStatus(status),
}
}