Trait ni_fpga::Datatype[][src]

pub trait Datatype: Sized {
    const SIZE_IN_BITS: usize;

    fn pack(fpga_bits: &mut FpgaBits, data: &Self) -> Result<(), Error>;
fn unpack(fpga_bits: &FpgaBits) -> Result<Self, Error>; }

Associated Constants

Loading content...

Required methods

fn pack(fpga_bits: &mut FpgaBits, data: &Self) -> Result<(), Error>[src]

fn unpack(fpga_bits: &FpgaBits) -> Result<Self, Error>[src]

Loading content...

Implementations on Foreign Types

impl<T: Datatype, const N: usize> Datatype for [T; N][src]

impl Datatype for bool[src]

impl Datatype for u8[src]

impl Datatype for u16[src]

impl Datatype for u32[src]

impl Datatype for u64[src]

impl Datatype for i8[src]

impl Datatype for i16[src]

impl Datatype for i32[src]

impl Datatype for i64[src]

impl Datatype for f32[src]

impl Datatype for f64[src]

Loading content...

Implementors

impl<const WORD_LENGTH: u8, const INTEGER_LENGTH: u8, const SIGNED: bool> Datatype for FXP<WORD_LENGTH, INTEGER_LENGTH, SIGNED>[src]

Loading content...