pub struct FPGAEmulator { /* private fields */ }
Implementations§
Source§impl FPGAEmulator
impl FPGAEmulator
Source§impl FPGAEmulator
impl FPGAEmulator
pub fn modulation_freq_divide(&self, segment: Segment) -> u16
pub fn modulation_cycle(&self, segment: Segment) -> usize
pub fn modulation_loop_behavior(&self, segment: Segment) -> LoopBehavior
pub fn modulation(&self) -> u8
pub fn modulation_at(&self, segment: Segment, idx: usize) -> u8
pub fn modulation_buffer(&self, segment: Segment) -> Vec<u8> ⓘ
pub fn modulation_buffer_inplace(&self, segment: Segment, dst: &mut [u8])
pub fn modulation_transition_mode(&self) -> TransitionMode
pub fn req_modulation_segment(&self) -> Segment
Source§impl FPGAEmulator
impl FPGAEmulator
pub fn output_mask(&self, segment: Segment) -> Vec<bool>
pub fn output_mask_inplace(&self, segment: Segment, dst: &mut [bool])
Source§impl FPGAEmulator
impl FPGAEmulator
pub fn phase_correction(&self) -> Vec<Phase>
pub fn phase_correction_inplace(&self, dst: &mut [Phase])
Source§impl FPGAEmulator
impl FPGAEmulator
pub fn pulse_width_encoder_table_at(&self, idx: usize) -> PulseWidth<9, u16>
pub fn pulse_width_encoder_table(&self) -> Vec<PulseWidth<9, u16>>
pub fn pulse_width_encoder_table_inplace(&self, dst: &mut [PulseWidth<9, u16>])
pub fn to_pulse_width(&self, a: Intensity, b: u8) -> PulseWidth<9, u16>
Source§impl FPGAEmulator
impl FPGAEmulator
pub fn silencer_update_rate(&self) -> FixedUpdateRate
pub fn silencer_completion_steps(&self) -> FixedCompletionSteps
pub fn silencer_fixed_update_rate_mode(&self) -> bool
pub fn silencer_fixed_completion_steps_mode(&self) -> bool
pub fn silencer_emulator_phase(&self, initial: u8) -> SilencerEmulator<Phase>
pub fn silencer_emulator_phase_continue_with( &self, prev: SilencerEmulator<Phase>, ) -> SilencerEmulator<Phase>
pub fn silencer_emulator_intensity( &self, initial: u8, ) -> SilencerEmulator<Intensity>
pub fn silencer_emulator_intensity_continue_with( &self, prev: SilencerEmulator<Intensity>, ) -> SilencerEmulator<Intensity>
Source§impl FPGAEmulator
impl FPGAEmulator
pub fn sound_speed(&self, segment: Segment) -> u16
pub fn num_foci(&self, segment: Segment) -> u8
pub fn local_tr_pos(&self) -> &[u64]
pub fn local_tr_pos_at(&self, idx: usize) -> u64
Source§impl FPGAEmulator
impl FPGAEmulator
pub fn is_stm_gain_mode(&self, segment: Segment) -> bool
pub fn stm_freq_divide(&self, segment: Segment) -> u16
pub fn stm_cycle(&self, segment: Segment) -> usize
pub fn stm_loop_behavior(&self, segment: Segment) -> LoopBehavior
pub fn stm_transition_mode(&self) -> TransitionMode
pub fn req_stm_segment(&self) -> Segment
pub fn drives(&self) -> Vec<Drive>
pub fn drives_at(&self, segment: Segment, idx: usize) -> Vec<Drive>
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
impl FPGAEmulator
pub const fn current_mod_segment(&self) -> Segment
pub const fn current_stm_segment(&self) -> Segment
pub const fn current_mod_idx(&self) -> usize
pub const fn current_stm_idx(&self) -> usize
Source§impl FPGAEmulator
impl FPGAEmulator
Source§impl FPGAEmulator
impl FPGAEmulator
Source§impl FPGAEmulator
impl FPGAEmulator
pub fn update(&mut self)
pub fn update_with_sys_time(&mut self, sys_time: DcSysTime)
pub fn fpga_state(&self) -> u16
pub fn assert_thermal_sensor(&mut self)
pub fn deassert_thermal_sensor(&mut self)
pub fn is_thermo_asserted(&self) -> bool
pub fn is_force_fan(&self) -> bool
Auto Trait Implementations§
impl !Freeze for FPGAEmulator
impl !RefUnwindSafe for FPGAEmulator
impl Send for FPGAEmulator
impl !Sync for FPGAEmulator
impl Unpin for FPGAEmulator
impl UnwindSafe for FPGAEmulator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.