extern structstd.os.uefi.device_path.DevicePath.Messaging.UartDevicePath[src]

Fields

type: DevicePath.Type
subtype: Subtype
length: u16 align(1)
reserved: u32 align(1)
baud_rate: u64 align(1)
data_bits: u8
parity: Parity
stop_bits: StopBits

Source Code

Source code
pub const UartDevicePath = extern struct {
    pub const Parity = enum(u8) {
        default = 0,
        none = 1,
        even = 2,
        odd = 3,
        mark = 4,
        space = 5,
        _,
    };

    pub const StopBits = enum(u8) {
        default = 0,
        one = 1,
        one_and_a_half = 2,
        two = 3,
        _,
    };

    type: DevicePath.Type,
    subtype: Subtype,
    length: u16 align(1),
    reserved: u32 align(1),
    baud_rate: u64 align(1),
    data_bits: u8,
    parity: Parity,
    stop_bits: StopBits,
}