#[non_exhaustive]pub struct BringUpConfig {
pub ratio_wait: Duration,
pub scrambling_deadline: Duration,
pub check_window: Duration,
pub check_interval: Duration,
pub clear_frl: ClearFrl,
pub source_version: SourceVersionWrite,
pub output_during_sink_write: OutputDuringSinkWrite,
pub tmds_config_write: TmdsConfigWrite,
pub on_tmds_config_failure: OnTmdsConfigFailure,
pub tear_down_on_error: bool,
pub tear_down: TearDownConfig,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ratio_wait: DurationHow long to wait after the sink’s TMDS_Config write before starting the output, so
the sink can switch its clock ratio. Default 1 ms.
scrambling_deadline: DurationThe longest time from the sink’s TMDS_Config write to scrambled output reaching
the sink: to the output’s start, or with OutputDuringSinkWrite::Running to the
scrambler coming on. The wait counts towards it. Later is a warning
(DeadlineMissed), not a failure. Default
100 ms.
check_window: DurationHow long the scrambling check reads Scrambling_Status, from the output’s start (from
the scrambler coming on, with OutputDuringSinkWrite::Running and in the quick
restore). Default 200 ms.
check_interval: DurationThe time between two reads of the check, and the longest slice of the ratio wait between two reads of the cancel flag. Default 1 ms.
clear_frl: ClearFrlWhich sinks get the FRL clear before a bring-up.
source_version: SourceVersionWriteWhen the source writes Source_Version.
output_during_sink_write: OutputDuringSinkWriteWhether the output is stopped while the sink’s TMDS_Config is written.
tmds_config_write: TmdsConfigWriteHow TMDS_Config is written.
on_tmds_config_failure: OnTmdsConfigFailureWhat a failed TMDS_Config write does to the bring-up.
tear_down_on_error: boolWhether an error is followed by a tear-down, so no half-started output is left
behind. Default true; off leaves both ends as the error left them.
tear_down: TearDownConfigThe tear-down settings used after an error and when the bring-up is cancelled.
Implementations§
Source§impl BringUpConfig
impl BringUpConfig
Sourcepub const DEFAULT: BringUpConfig
pub const DEFAULT: BringUpConfig
Every field at its default.
Sourcepub const fn validate(&self) -> Result<(), ConfigError>
pub const fn validate(&self) -> Result<(), ConfigError>
Checks the timings for combinations that defeat their purpose; the procedures run with any values.
§Errors
ConfigError with every problem found: a scrambling deadline not longer than the
ratio wait, which counts towards it, so every bring-up misses it; a check interval
not shorter than the check window, so the check reads once; a check interval of 0,
so the check reads back to back, as fast as the bus answers.
Sourcepub const fn with_ratio_wait(self, ratio_wait: Duration) -> BringUpConfig
pub const fn with_ratio_wait(self, ratio_wait: Duration) -> BringUpConfig
Sets ratio_wait.
Sourcepub const fn with_scrambling_deadline(
self,
scrambling_deadline: Duration,
) -> BringUpConfig
pub const fn with_scrambling_deadline( self, scrambling_deadline: Duration, ) -> BringUpConfig
Sets scrambling_deadline.
Sourcepub const fn with_check_window(self, check_window: Duration) -> BringUpConfig
pub const fn with_check_window(self, check_window: Duration) -> BringUpConfig
Sets check_window.
Sourcepub const fn with_check_interval(
self,
check_interval: Duration,
) -> BringUpConfig
pub const fn with_check_interval( self, check_interval: Duration, ) -> BringUpConfig
Sets check_interval.
Sourcepub const fn with_clear_frl(self, clear_frl: ClearFrl) -> BringUpConfig
pub const fn with_clear_frl(self, clear_frl: ClearFrl) -> BringUpConfig
Sets clear_frl.
Sourcepub const fn with_source_version(
self,
source_version: SourceVersionWrite,
) -> BringUpConfig
pub const fn with_source_version( self, source_version: SourceVersionWrite, ) -> BringUpConfig
Sets source_version.
Sourcepub const fn with_output_during_sink_write(
self,
output_during_sink_write: OutputDuringSinkWrite,
) -> BringUpConfig
pub const fn with_output_during_sink_write( self, output_during_sink_write: OutputDuringSinkWrite, ) -> BringUpConfig
Sets output_during_sink_write.
Sourcepub const fn with_tmds_config_write(
self,
tmds_config_write: TmdsConfigWrite,
) -> BringUpConfig
pub const fn with_tmds_config_write( self, tmds_config_write: TmdsConfigWrite, ) -> BringUpConfig
Sets tmds_config_write.
Sourcepub const fn with_on_tmds_config_failure(
self,
on_tmds_config_failure: OnTmdsConfigFailure,
) -> BringUpConfig
pub const fn with_on_tmds_config_failure( self, on_tmds_config_failure: OnTmdsConfigFailure, ) -> BringUpConfig
Sets on_tmds_config_failure.
Sourcepub const fn with_tear_down_on_error(
self,
tear_down_on_error: bool,
) -> BringUpConfig
pub const fn with_tear_down_on_error( self, tear_down_on_error: bool, ) -> BringUpConfig
Sets tear_down_on_error.
Sourcepub const fn with_tear_down(self, tear_down: TearDownConfig) -> BringUpConfig
pub const fn with_tear_down(self, tear_down: TearDownConfig) -> BringUpConfig
Sets tear_down.
Trait Implementations§
Source§impl Clone for BringUpConfig
impl Clone for BringUpConfig
Source§fn clone(&self) -> BringUpConfig
fn clone(&self) -> BringUpConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more