Struct FPGAEmulator

Source
pub struct FPGAEmulator { /* private fields */ }

Implementations§

Source§

impl FPGAEmulator

Source

pub fn gpio_in(&self) -> [bool; 4]

Source

pub fn gpio_out_types(&self) -> [u8; 4]

Source

pub fn gpio_out_values(&self) -> [u64; 4]

Source§

impl FPGAEmulator

Source

pub fn modulation_freq_divide(&self, segment: Segment) -> u16

Source

pub fn modulation_cycle(&self, segment: Segment) -> usize

Source

pub fn modulation_loop_behavior(&self, segment: Segment) -> LoopBehavior

Source

pub fn modulation(&self) -> u8

Source

pub fn modulation_at(&self, segment: Segment, idx: usize) -> u8

Source

pub fn modulation_buffer(&self, segment: Segment) -> Vec<u8>

Source

pub fn modulation_buffer_inplace(&self, segment: Segment, dst: &mut [u8])

Source

pub fn modulation_transition_mode(&self) -> TransitionMode

Source

pub fn req_modulation_segment(&self) -> Segment

Source§

impl FPGAEmulator

Source

pub fn output_mask(&self, segment: Segment) -> Vec<bool>

Source

pub fn output_mask_inplace(&self, segment: Segment, dst: &mut [bool])

Source§

impl FPGAEmulator

Source

pub fn phase_correction(&self) -> Vec<Phase>

Source

pub fn phase_correction_inplace(&self, dst: &mut [Phase])

Source§

impl FPGAEmulator

Source§

impl FPGAEmulator

Source§

impl FPGAEmulator

Source

pub fn sound_speed(&self, segment: Segment) -> u16

Source

pub fn num_foci(&self, segment: Segment) -> u8

Source

pub fn local_tr_pos(&self) -> &[u64]

Source

pub fn local_tr_pos_at(&self, idx: usize) -> u64

Source§

impl FPGAEmulator

Source

pub fn is_stm_gain_mode(&self, segment: Segment) -> bool

Source

pub fn stm_freq_divide(&self, segment: Segment) -> u16

Source

pub fn stm_cycle(&self, segment: Segment) -> usize

Source

pub fn stm_loop_behavior(&self, segment: Segment) -> LoopBehavior

Source

pub fn stm_transition_mode(&self) -> TransitionMode

Source

pub fn req_stm_segment(&self) -> Segment

Source

pub fn drives(&self) -> Vec<Drive>

Source

pub fn drives_at(&self, segment: Segment, idx: usize) -> Vec<Drive>

Source

pub fn drives_at_inplace( &self, segment: Segment, idx: usize, phase_corr_buf: &mut [Phase], output_mask_buf: &mut [bool], dst: &mut [Drive], )

Source§

impl FPGAEmulator

Source

pub const fn current_mod_segment(&self) -> Segment

Source

pub const fn current_stm_segment(&self) -> Segment

Source

pub const fn current_mod_idx(&self) -> usize

Source

pub const fn current_stm_idx(&self) -> usize

Source§

impl FPGAEmulator

Source

pub fn mem(&self) -> &Memory

Source§

impl FPGAEmulator

Source

pub fn mem_mut(&mut self) -> &mut Memory

Source§

impl FPGAEmulator

Source

pub fn update(&mut self)

Source

pub fn update_with_sys_time(&mut self, sys_time: DcSysTime)

Source

pub fn fpga_state(&self) -> u16

Source

pub fn assert_thermal_sensor(&mut self)

Source

pub fn deassert_thermal_sensor(&mut self)

Source

pub fn is_thermo_asserted(&self) -> bool

Source

pub fn is_force_fan(&self) -> bool

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.