Expand description
§spmi-hwreg
Rust SPMI register access library matching the MMIO hwreg paradigm.
Re-exports§
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-hwregcrate. - Little
Endian - Little-endian byte order.
Traits§
- From
Bytes - Types for which any bit pattern is valid.
- From
Zeros - Types for which a sequence of
0bytes is a valid instance. - Immutable
- Types which are free from interior mutability.
- Into
Bytes - Types that can be converted to an immutable slice of initialized bytes.
Type Aliases§
- Device
Type - The device type used by this crate for hardware communication.
- Register
- A generic register accessor parameterized by value type, mode, and address.