struct VolatileU8
pub struct VolatileU8 {
}Purpose
VolatileU8 context or state structure.
Public fields
This type has no public fields.
#core/mmioStrongly-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 VolatileU8pub struct VolatileU8 {
}VolatileU8 context or state structure.
This type has no public fields.
struct VolatileU16pub struct VolatileU16 {
}VolatileU16 context or state structure.
This type has no public fields.
struct VolatileU32pub struct VolatileU32 {
}VolatileU32 context or state structure.
This type has no public fields.
struct VolatileU64pub struct VolatileU64 {
}VolatileU64 context or state structure.
This type has no public fields.
struct ReadOnlyU8pub struct ReadOnlyU8 {
}ReadOnlyU8 context or state structure.
This type has no public fields.
struct ReadOnlyU16pub struct ReadOnlyU16 {
}ReadOnlyU16 context or state structure.
This type has no public fields.
struct ReadOnlyU32pub struct ReadOnlyU32 {
}ReadOnlyU32 context or state structure.
This type has no public fields.
struct ReadOnlyU64pub struct ReadOnlyU64 {
}ReadOnlyU64 context or state structure.
This type has no public fields.
struct WriteOnlyU8pub struct WriteOnlyU8 {
}WriteOnlyU8 context or state structure.
This type has no public fields.
struct WriteOnlyU16pub struct WriteOnlyU16 {
}WriteOnlyU16 context or state structure.
This type has no public fields.
struct WriteOnlyU32pub struct WriteOnlyU32 {
}WriteOnlyU32 context or state structure.
This type has no public fields.
struct WriteOnlyU64pub struct WriteOnlyU64 {
}WriteOnlyU64 context or state structure.
This type has no public fields.
(&VolatileU8) readpub fn (r &VolatileU8) read() u8Operation on &VolatileU8: read up to max bytes.
r &VolatileU8VolatileU8 instance used by this call (borrow).u8 — a value of this type
($&VolatileU8) writepub fn (r $&VolatileU8) write(val u8)Operation on $&VolatileU8: write data and return the byte count.
r $&VolatileU8VolatileU8 instance used by this call (exclusive borrow).val u8This call does not return a value.
($&VolatileU8) set_bitspub fn (r $&VolatileU8) set_bits(bits u8)Operation on $&VolatileU8: set bits.
r $&VolatileU8VolatileU8 instance used by this call (exclusive borrow).bits u8This call does not return a value.
($&VolatileU8) clear_bitspub fn (r $&VolatileU8) clear_bits(bits u8)Operation on $&VolatileU8: clear bits.
r $&VolatileU8VolatileU8 instance used by this call (exclusive borrow).bits u8This call does not return a value.
(&VolatileU16) readpub fn (r &VolatileU16) read() u16Operation on &VolatileU16: read up to max bytes.
r &VolatileU16VolatileU16 instance used by this call (borrow).u16 — a value of this type
($&VolatileU16) writepub fn (r $&VolatileU16) write(val u16)Operation on $&VolatileU16: write data and return the byte count.
r $&VolatileU16VolatileU16 instance used by this call (exclusive borrow).val u16This call does not return a value.
($&VolatileU16) set_bitspub fn (r $&VolatileU16) set_bits(bits u16)Operation on $&VolatileU16: set bits.
r $&VolatileU16VolatileU16 instance used by this call (exclusive borrow).bits u16This call does not return a value.
($&VolatileU16) clear_bitspub fn (r $&VolatileU16) clear_bits(bits u16)Operation on $&VolatileU16: clear bits.
r $&VolatileU16VolatileU16 instance used by this call (exclusive borrow).bits u16This call does not return a value.
(&VolatileU32) readpub fn (r &VolatileU32) read() u32Operation on &VolatileU32: read up to max bytes.
r &VolatileU32VolatileU32 instance used by this call (borrow).u32 — a value of this type
($&VolatileU32) writepub fn (r $&VolatileU32) write(val u32)Operation on $&VolatileU32: write data and return the byte count.
r $&VolatileU32VolatileU32 instance used by this call (exclusive borrow).val u32This call does not return a value.
($&VolatileU32) set_bitspub fn (r $&VolatileU32) set_bits(bits u32)Operation on $&VolatileU32: set bits.
r $&VolatileU32VolatileU32 instance used by this call (exclusive borrow).bits u32This call does not return a value.
($&VolatileU32) clear_bitspub fn (r $&VolatileU32) clear_bits(bits u32)Operation on $&VolatileU32: clear bits.
r $&VolatileU32VolatileU32 instance used by this call (exclusive borrow).bits u32This call does not return a value.
(&VolatileU64) readpub fn (r &VolatileU64) read() u64Operation on &VolatileU64: read up to max bytes.
r &VolatileU64VolatileU64 instance used by this call (borrow).u64 — a value of this type
($&VolatileU64) writepub fn (r $&VolatileU64) write(val u64)Operation on $&VolatileU64: write data and return the byte count.
r $&VolatileU64VolatileU64 instance used by this call (exclusive borrow).val u64This call does not return a value.
($&VolatileU64) set_bitspub fn (r $&VolatileU64) set_bits(bits u64)Operation on $&VolatileU64: set bits.
r $&VolatileU64VolatileU64 instance used by this call (exclusive borrow).bits u64This call does not return a value.
($&VolatileU64) clear_bitspub fn (r $&VolatileU64) clear_bits(bits u64)Operation on $&VolatileU64: clear bits.
r $&VolatileU64VolatileU64 instance used by this call (exclusive borrow).bits u64This call does not return a value.
(&ReadOnlyU8) readpub fn (r &ReadOnlyU8) read() u8Operation on &ReadOnlyU8: read up to max bytes.
r &ReadOnlyU8ReadOnlyU8 instance used by this call (borrow).u8 — a value of this type
(&ReadOnlyU16) readpub fn (r &ReadOnlyU16) read() u16Operation on &ReadOnlyU16: read up to max bytes.
r &ReadOnlyU16ReadOnlyU16 instance used by this call (borrow).u16 — a value of this type
(&ReadOnlyU32) readpub fn (r &ReadOnlyU32) read() u32Operation on &ReadOnlyU32: read up to max bytes.
r &ReadOnlyU32ReadOnlyU32 instance used by this call (borrow).u32 — a value of this type
(&ReadOnlyU64) readpub fn (r &ReadOnlyU64) read() u64Operation on &ReadOnlyU64: read up to max bytes.
r &ReadOnlyU64ReadOnlyU64 instance used by this call (borrow).u64 — a value of this type
($&WriteOnlyU8) writepub fn (r $&WriteOnlyU8) write(val u8)Operation on $&WriteOnlyU8: write data and return the byte count.
r $&WriteOnlyU8WriteOnlyU8 instance used by this call (exclusive borrow).val u8This call does not return a value.
($&WriteOnlyU16) writepub fn (r $&WriteOnlyU16) write(val u16)Operation on $&WriteOnlyU16: write data and return the byte count.
r $&WriteOnlyU16WriteOnlyU16 instance used by this call (exclusive borrow).val u16This call does not return a value.
($&WriteOnlyU32) writepub fn (r $&WriteOnlyU32) write(val u32)Operation on $&WriteOnlyU32: write data and return the byte count.
r $&WriteOnlyU32WriteOnlyU32 instance used by this call (exclusive borrow).val u32This call does not return a value.
($&WriteOnlyU64) writepub fn (r $&WriteOnlyU64) write(val u64)Operation on $&WriteOnlyU64: write data and return the byte count.
r $&WriteOnlyU64WriteOnlyU64 instance used by this call (exclusive borrow).val u64This call does not return a value.
read8pub fn read8(base u64, off u64) u8Execute read8.
base u64off u64u8 — a value of this type
read16pub fn read16(base u64, off u64) u16Execute read16.
base u64off u64u16 — a value of this type
read32pub fn read32(base u64, off u64) u32Execute read32.
base u64off u64u32 — a value of this type
read64pub fn read64(base u64, off u64) u64Execute read64.
base u64off u64u64 — a value of this type
write8pub fn write8(base u64, off u64, val u8)Execute write8.
base u64off u64val u8This call does not return a value.
write16pub fn write16(base u64, off u64, val u16)Execute write16.
base u64off u64val u16This call does not return a value.
write32pub fn write32(base u64, off u64, val u32)Execute write32.
base u64off u64val u32This call does not return a value.
write64pub fn write64(base u64, off u64, val u64)Execute write64.
base u64off u64val u64This call does not return a value.