Skip to main content

Crate spmi_hwreg

Crate spmi_hwreg 

Source
Expand description

§spmi-hwreg

Rust SPMI register access library matching the MMIO hwreg paradigm.

Re-exports§

pub use zerocopy as zerocopy_reexport;
pub use common::*;

Modules§

common
Common definitions and macros for SPMI registers.

Macros§

spmi_read_contiguous
Reads multiple contiguous registers in a single async call to the hardware.
spmi_register
Defines a module for accessing a single SPMI hardware register.
spmi_register_block
Defines a struct to group multiple SPMI registers.
spmi_write_contiguous
Writes multiple contiguous registers in a single async call to the hardware.

Structs§

U16
A 16-bit unsigned integer stored in a given byte order.
U32
A 32-bit unsigned integer stored in a given byte order.

Enums§

BigEndian
Big-endian byte order.
Error
Error type for the spmi-hwreg crate.
LittleEndian
Little-endian byte order.

Traits§

FromBytes
Types for which any bit pattern is valid.
FromZeros
Types for which a sequence of 0 bytes is a valid instance.
Immutable
Types which are free from interior mutability.
IntoBytes
Types that can be converted to an immutable slice of initialized bytes.

Type Aliases§

DeviceType
The device type used by this crate for hardware communication.
Register
A generic register accessor parameterized by value type, mode, and address.

Derive Macros§

FromBytes
FromZeros
Immutable
IntoBytes