Skip to main content

Register

Type Alias Register 

Source
pub type Register<'a, T, M, const ADDR: u16> = _Register<'a, T, M, DeviceType, ADDR>;
Expand description

A generic register accessor parameterized by value type, mode, and address.

This is a convenience alias that binds Register to the platform-specific DeviceType.

§Generics

  • T - The typed register value (e.g., generated by spmi_register!).
  • M - The access mode (ReadOnly, WriteOnly, ReadWrite).
  • ADDR - The register address.

Aliased Type§

pub struct Register<'a, T, M, const ADDR: u16> {
    pub spmi: &'a DeviceProxy,
    /* private fields */
}

Fields§

§spmi: &'a DeviceProxy

The underlying SPMI device.