embassy-nrf

Crates

git

Versions

nrf52840

Flavors

embassy_nrf::i2s

Trait Sample

Source
pub trait Sample:
    Sized
    + Copy
    + Default {
    const WIDTH: usize;
    const SCALE: Self;
}
Expand description

Sample details

Required Associated Constants§

Source

const WIDTH: usize

Width of this sample type.

Source

const SCALE: Self

Scale of this sample.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Sample for i8

Source§

const WIDTH: usize = 8usize

Source§

const SCALE: Self = -128i8

Source§

impl Sample for i16

Source§

const WIDTH: usize = 16usize

Source§

const SCALE: Self = -32_768i16

Source§

impl Sample for i32

Source§

const WIDTH: usize = 24usize

Source§

const SCALE: Self = 8_388_608i32

Implementors§