XU XUv0.16.0

#core/uart

import: #core/uart

counts: 3 functions, 12 methods, 3 types, 0 constants, 0 method sets

Standard library package `#core/uart`.

struct Uart16550Port

XuAPI
pub struct Uart16550Port {
    pub port u16
}

Purpose

Structure encapsulating port.

Public fields

port u16
port

uart16550_port_new

XuAPI
pub fn uart16550_port_new(port u16) Uart16550Port

Purpose

Uart16550 port new.

Parameters

port u16
port (u16)

Returns

Uart16550Port — a value of this type

(Uart16550Port) init

XuAPI
pub fn (u Uart16550Port) init()

Purpose

Initialize internal state and default parameters.

Parameters

u Uart16550Port
The Uart16550Port instance used by this call (value receiver).

Returns

This call does not return a value.

(Uart16550Port) putc

XuAPI
pub fn (u Uart16550Port) putc(b u8)

Purpose

Execute putc on Uart16550Port.

Parameters

u Uart16550Port
The Uart16550Port instance used by this call (value receiver).
b u8
b (u8)

Returns

This call does not return a value.

(Uart16550Port) puts

XuAPI
pub fn (u Uart16550Port) puts(s &string)

Purpose

Execute puts on Uart16550Port.

Parameters

u Uart16550Port
The Uart16550Port instance used by this call (value receiver).
s &string
source string (read-only borrow; caller keeps the original; type &string)

Returns

This call does not return a value.

(Uart16550Port) try_getc

XuAPI
pub fn (u Uart16550Port) try_getc() int

Purpose

Operation on Uart16550Port: try getc.

Parameters

u Uart16550Port
The Uart16550Port instance used by this call (value receiver).

Returns

int — a value of this type

struct Uart16550Mmio

XuAPI
pub struct Uart16550Mmio {
    pub base u64
}

Purpose

Structure encapsulating base.

Public fields

base u64
numeric base

uart16550_mmio_new

XuAPI
pub fn uart16550_mmio_new(base u64) Uart16550Mmio

Purpose

Uart16550 mmio new.

Parameters

base u64
numeric base (u64)

Returns

Uart16550Mmio — a value of this type

(Uart16550Mmio) init

XuAPI
pub fn (u Uart16550Mmio) init()

Purpose

Initialize internal state and default parameters.

Parameters

u Uart16550Mmio
The Uart16550Mmio instance used by this call (value receiver).

Returns

This call does not return a value.

(Uart16550Mmio) putc

XuAPI
pub fn (u Uart16550Mmio) putc(b u8)

Purpose

Execute putc on Uart16550Mmio.

Parameters

u Uart16550Mmio
The Uart16550Mmio instance used by this call (value receiver).
b u8
b (u8)

Returns

This call does not return a value.

(Uart16550Mmio) puts

XuAPI
pub fn (u Uart16550Mmio) puts(s &string)

Purpose

Execute puts on Uart16550Mmio.

Parameters

u Uart16550Mmio
The Uart16550Mmio instance used by this call (value receiver).
s &string
source string (read-only borrow; caller keeps the original; type &string)

Returns

This call does not return a value.

(Uart16550Mmio) try_getc

XuAPI
pub fn (u Uart16550Mmio) try_getc() int

Purpose

Operation on Uart16550Mmio: try getc.

Parameters

u Uart16550Mmio
The Uart16550Mmio instance used by this call (value receiver).

Returns

int — a value of this type

struct UartPl011

XuAPI
pub struct UartPl011 {
    pub base u64
}

Purpose

Structure encapsulating base.

Public fields

base u64
numeric base

uart_pl011_new

XuAPI
pub fn uart_pl011_new(base u64) UartPl011

Purpose

Uart pl011 new.

Parameters

base u64
numeric base (u64)

Returns

UartPl011 — a value of this type

(UartPl011) init

XuAPI
pub fn (u UartPl011) init()

Purpose

Initialize internal state and default parameters.

Parameters

u UartPl011
The UartPl011 instance used by this call (value receiver).

Returns

This call does not return a value.

(UartPl011) putc

XuAPI
pub fn (u UartPl011) putc(b u8)

Purpose

Execute putc on UartPl011.

Parameters

u UartPl011
The UartPl011 instance used by this call (value receiver).
b u8
b (u8)

Returns

This call does not return a value.

(UartPl011) puts

XuAPI
pub fn (u UartPl011) puts(s &string)

Purpose

Execute puts on UartPl011.

Parameters

u UartPl011
The UartPl011 instance used by this call (value receiver).
s &string
source string (read-only borrow; caller keeps the original; type &string)

Returns

This call does not return a value.

(UartPl011) try_getc

XuAPI
pub fn (u UartPl011) try_getc() int

Purpose

Operation on UartPl011: try getc.

Parameters

u UartPl011
The UartPl011 instance used by this call (value receiver).

Returns

int — a value of this type