Trait capsules_extra::bus::BusAddr

source ·
pub trait BusAddr {
    const DATA_WIDTH: DataWidth;

    // Required method
    fn bytes(&self) -> impl Iterator<Item = u8>;

    // Provided method
    fn len(&self) -> usize { ... }
}
Expand description

The BusAddr trait is implemented for each BusAddr struct. It provides information about the data width and a way to access the underlying byte representation.

Required Associated Constants§

Required Methods§

source

fn bytes(&self) -> impl Iterator<Item = u8>

Provided Methods§

source

fn len(&self) -> usize

Object Safety§

This trait is not object safe.

Implementors§

source§

impl BusAddr for BusAddr8

source§

const DATA_WIDTH: DataWidth = DataWidth::Bits8

source§

impl BusAddr for BusAddr16BE

source§

const DATA_WIDTH: DataWidth = DataWidth::Bits16BE

source§

impl BusAddr for BusAddr16LE

source§

const DATA_WIDTH: DataWidth = DataWidth::Bits16LE

source§

impl BusAddr for BusAddr32BE

source§

const DATA_WIDTH: DataWidth = DataWidth::Bits32BE

source§

impl BusAddr for BusAddr32LE

source§

const DATA_WIDTH: DataWidth = DataWidth::Bits32LE

source§

impl BusAddr for BusAddr64BE

source§

const DATA_WIDTH: DataWidth = DataWidth::Bits64BE

source§

impl BusAddr for BusAddr64LE

source§

const DATA_WIDTH: DataWidth = DataWidth::Bits64LE