XU XUv0.16.0

#core/mmio

import: #core/mmio

counts: 8 functions, 24 methods, 12 types, 0 constants, 0 method sets

Strongly-typed volatile MMIO register wrappers for baremetal kernels and drivers. Each wrapper has exact C layout matching its scalar width (`u8`/`u16`/`u32`/`u64`).

struct VolatileU8

XuAPI
pub struct VolatileU8 {

}

Purpose

VolatileU8 context or state structure.

Public fields

This type has no public fields.

struct VolatileU16

XuAPI
pub struct VolatileU16 {

}

Purpose

VolatileU16 context or state structure.

Public fields

This type has no public fields.

struct VolatileU32

XuAPI
pub struct VolatileU32 {

}

Purpose

VolatileU32 context or state structure.

Public fields

This type has no public fields.

struct VolatileU64

XuAPI
pub struct VolatileU64 {

}

Purpose

VolatileU64 context or state structure.

Public fields

This type has no public fields.

struct ReadOnlyU8

XuAPI
pub struct ReadOnlyU8 {

}

Purpose

ReadOnlyU8 context or state structure.

Public fields

This type has no public fields.

struct ReadOnlyU16

XuAPI
pub struct ReadOnlyU16 {

}

Purpose

ReadOnlyU16 context or state structure.

Public fields

This type has no public fields.

struct ReadOnlyU32

XuAPI
pub struct ReadOnlyU32 {

}

Purpose

ReadOnlyU32 context or state structure.

Public fields

This type has no public fields.

struct ReadOnlyU64

XuAPI
pub struct ReadOnlyU64 {

}

Purpose

ReadOnlyU64 context or state structure.

Public fields

This type has no public fields.

struct WriteOnlyU8

XuAPI
pub struct WriteOnlyU8 {

}

Purpose

WriteOnlyU8 context or state structure.

Public fields

This type has no public fields.

struct WriteOnlyU16

XuAPI
pub struct WriteOnlyU16 {

}

Purpose

WriteOnlyU16 context or state structure.

Public fields

This type has no public fields.

struct WriteOnlyU32

XuAPI
pub struct WriteOnlyU32 {

}

Purpose

WriteOnlyU32 context or state structure.

Public fields

This type has no public fields.

struct WriteOnlyU64

XuAPI
pub struct WriteOnlyU64 {

}

Purpose

WriteOnlyU64 context or state structure.

Public fields

This type has no public fields.

(&VolatileU8) read

XuAPI
pub fn (r &VolatileU8) read() u8

Purpose

Operation on &VolatileU8: read up to max bytes.

Parameters

r &VolatileU8
The VolatileU8 instance used by this call (borrow).

Returns

u8 — a value of this type

($&VolatileU8) write

XuAPI
pub fn (r $&VolatileU8) write(val u8)

Purpose

Operation on $&VolatileU8: write data and return the byte count.

Parameters

r $&VolatileU8
The VolatileU8 instance used by this call (exclusive borrow).
val u8
value (u8)

Returns

This call does not return a value.

($&VolatileU8) set_bits

XuAPI
pub fn (r $&VolatileU8) set_bits(bits u8)

Purpose

Operation on $&VolatileU8: set bits.

Parameters

r $&VolatileU8
The VolatileU8 instance used by this call (exclusive borrow).
bits u8
bit count (u8)

Returns

This call does not return a value.

($&VolatileU8) clear_bits

XuAPI
pub fn (r $&VolatileU8) clear_bits(bits u8)

Purpose

Operation on $&VolatileU8: clear bits.

Parameters

r $&VolatileU8
The VolatileU8 instance used by this call (exclusive borrow).
bits u8
bit count (u8)

Returns

This call does not return a value.

(&VolatileU16) read

XuAPI
pub fn (r &VolatileU16) read() u16

Purpose

Operation on &VolatileU16: read up to max bytes.

Parameters

r &VolatileU16
The VolatileU16 instance used by this call (borrow).

Returns

u16 — a value of this type

($&VolatileU16) write

XuAPI
pub fn (r $&VolatileU16) write(val u16)

Purpose

Operation on $&VolatileU16: write data and return the byte count.

Parameters

r $&VolatileU16
The VolatileU16 instance used by this call (exclusive borrow).
val u16
value (u16)

Returns

This call does not return a value.

($&VolatileU16) set_bits

XuAPI
pub fn (r $&VolatileU16) set_bits(bits u16)

Purpose

Operation on $&VolatileU16: set bits.

Parameters

r $&VolatileU16
The VolatileU16 instance used by this call (exclusive borrow).
bits u16
bit count (u16)

Returns

This call does not return a value.

($&VolatileU16) clear_bits

XuAPI
pub fn (r $&VolatileU16) clear_bits(bits u16)

Purpose

Operation on $&VolatileU16: clear bits.

Parameters

r $&VolatileU16
The VolatileU16 instance used by this call (exclusive borrow).
bits u16
bit count (u16)

Returns

This call does not return a value.

(&VolatileU32) read

XuAPI
pub fn (r &VolatileU32) read() u32

Purpose

Operation on &VolatileU32: read up to max bytes.

Parameters

r &VolatileU32
The VolatileU32 instance used by this call (borrow).

Returns

u32 — a value of this type

($&VolatileU32) write

XuAPI
pub fn (r $&VolatileU32) write(val u32)

Purpose

Operation on $&VolatileU32: write data and return the byte count.

Parameters

r $&VolatileU32
The VolatileU32 instance used by this call (exclusive borrow).
val u32
value (u32)

Returns

This call does not return a value.

($&VolatileU32) set_bits

XuAPI
pub fn (r $&VolatileU32) set_bits(bits u32)

Purpose

Operation on $&VolatileU32: set bits.

Parameters

r $&VolatileU32
The VolatileU32 instance used by this call (exclusive borrow).
bits u32
bit count (u32)

Returns

This call does not return a value.

($&VolatileU32) clear_bits

XuAPI
pub fn (r $&VolatileU32) clear_bits(bits u32)

Purpose

Operation on $&VolatileU32: clear bits.

Parameters

r $&VolatileU32
The VolatileU32 instance used by this call (exclusive borrow).
bits u32
bit count (u32)

Returns

This call does not return a value.

(&VolatileU64) read

XuAPI
pub fn (r &VolatileU64) read() u64

Purpose

Operation on &VolatileU64: read up to max bytes.

Parameters

r &VolatileU64
The VolatileU64 instance used by this call (borrow).

Returns

u64 — a value of this type

($&VolatileU64) write

XuAPI
pub fn (r $&VolatileU64) write(val u64)

Purpose

Operation on $&VolatileU64: write data and return the byte count.

Parameters

r $&VolatileU64
The VolatileU64 instance used by this call (exclusive borrow).
val u64
value (u64)

Returns

This call does not return a value.

($&VolatileU64) set_bits

XuAPI
pub fn (r $&VolatileU64) set_bits(bits u64)

Purpose

Operation on $&VolatileU64: set bits.

Parameters

r $&VolatileU64
The VolatileU64 instance used by this call (exclusive borrow).
bits u64
bit count (u64)

Returns

This call does not return a value.

($&VolatileU64) clear_bits

XuAPI
pub fn (r $&VolatileU64) clear_bits(bits u64)

Purpose

Operation on $&VolatileU64: clear bits.

Parameters

r $&VolatileU64
The VolatileU64 instance used by this call (exclusive borrow).
bits u64
bit count (u64)

Returns

This call does not return a value.

(&ReadOnlyU8) read

XuAPI
pub fn (r &ReadOnlyU8) read() u8

Purpose

Operation on &ReadOnlyU8: read up to max bytes.

Parameters

r &ReadOnlyU8
The ReadOnlyU8 instance used by this call (borrow).

Returns

u8 — a value of this type

(&ReadOnlyU16) read

XuAPI
pub fn (r &ReadOnlyU16) read() u16

Purpose

Operation on &ReadOnlyU16: read up to max bytes.

Parameters

r &ReadOnlyU16
The ReadOnlyU16 instance used by this call (borrow).

Returns

u16 — a value of this type

(&ReadOnlyU32) read

XuAPI
pub fn (r &ReadOnlyU32) read() u32

Purpose

Operation on &ReadOnlyU32: read up to max bytes.

Parameters

r &ReadOnlyU32
The ReadOnlyU32 instance used by this call (borrow).

Returns

u32 — a value of this type

(&ReadOnlyU64) read

XuAPI
pub fn (r &ReadOnlyU64) read() u64

Purpose

Operation on &ReadOnlyU64: read up to max bytes.

Parameters

r &ReadOnlyU64
The ReadOnlyU64 instance used by this call (borrow).

Returns

u64 — a value of this type

($&WriteOnlyU8) write

XuAPI
pub fn (r $&WriteOnlyU8) write(val u8)

Purpose

Operation on $&WriteOnlyU8: write data and return the byte count.

Parameters

r $&WriteOnlyU8
The WriteOnlyU8 instance used by this call (exclusive borrow).
val u8
value (u8)

Returns

This call does not return a value.

($&WriteOnlyU16) write

XuAPI
pub fn (r $&WriteOnlyU16) write(val u16)

Purpose

Operation on $&WriteOnlyU16: write data and return the byte count.

Parameters

r $&WriteOnlyU16
The WriteOnlyU16 instance used by this call (exclusive borrow).
val u16
value (u16)

Returns

This call does not return a value.

($&WriteOnlyU32) write

XuAPI
pub fn (r $&WriteOnlyU32) write(val u32)

Purpose

Operation on $&WriteOnlyU32: write data and return the byte count.

Parameters

r $&WriteOnlyU32
The WriteOnlyU32 instance used by this call (exclusive borrow).
val u32
value (u32)

Returns

This call does not return a value.

($&WriteOnlyU64) write

XuAPI
pub fn (r $&WriteOnlyU64) write(val u64)

Purpose

Operation on $&WriteOnlyU64: write data and return the byte count.

Parameters

r $&WriteOnlyU64
The WriteOnlyU64 instance used by this call (exclusive borrow).
val u64
value (u64)

Returns

This call does not return a value.

read8

XuAPI
pub fn read8(base u64, off u64) u8

Purpose

Execute read8.

Parameters

base u64
numeric base (u64)
off u64
offset (u64)

Returns

u8 — a value of this type

read16

XuAPI
pub fn read16(base u64, off u64) u16

Purpose

Execute read16.

Parameters

base u64
numeric base (u64)
off u64
offset (u64)

Returns

u16 — a value of this type

read32

XuAPI
pub fn read32(base u64, off u64) u32

Purpose

Execute read32.

Parameters

base u64
numeric base (u64)
off u64
offset (u64)

Returns

u32 — a value of this type

read64

XuAPI
pub fn read64(base u64, off u64) u64

Purpose

Execute read64.

Parameters

base u64
numeric base (u64)
off u64
offset (u64)

Returns

u64 — a value of this type

write8

XuAPI
pub fn write8(base u64, off u64, val u8)

Purpose

Execute write8.

Parameters

base u64
numeric base (u64)
off u64
offset (u64)
val u8
value (u8)

Returns

This call does not return a value.

write16

XuAPI
pub fn write16(base u64, off u64, val u16)

Purpose

Execute write16.

Parameters

base u64
numeric base (u64)
off u64
offset (u64)
val u16
value (u16)

Returns

This call does not return a value.

write32

XuAPI
pub fn write32(base u64, off u64, val u32)

Purpose

Execute write32.

Parameters

base u64
numeric base (u64)
off u64
offset (u64)
val u32
value (u32)

Returns

This call does not return a value.

write64

XuAPI
pub fn write64(base u64, off u64, val u64)

Purpose

Execute write64.

Parameters

base u64
numeric base (u64)
off u64
offset (u64)
val u64
value (u64)

Returns

This call does not return a value.