Skip to main content

FrameScheduler

Struct FrameScheduler 

Source
pub struct FrameScheduler {
    kind: Kind,
    pub state: State,
    tries: i32,
    next_frame: u32,
    pub nak_restarts: u32,
    xacterr_budget: i32,
}
Expand description

1 トランザクション分のフレームスケジューラ状態。

Fields§

§kind: Kind§state: State§tries: i32§next_frame: u32§nak_restarts: u32

CSPLIT が NAK を受けて SSPLIT からやり直した回数(診断用)。

§xacterr_budget: i32

XactErr (バス転送エラー) の残りリトライ回数。tries と違い NAK 再開で リセットされない、サイクル全体を通した予算。

Implementations§

Source§

impl FrameScheduler

Source

pub fn new_no_split(is_periodic: bool) -> Self

Source

pub fn new_non_periodic() -> Self

Source

pub fn new_periodic() -> Self

Source

pub fn is_split(&self) -> bool

この転送がスプリットを使うか(NoSplit なら false)。

Source

pub fn is_complete(&self) -> bool

スプリットサイクルが成功完了したか。

Source

pub fn is_failed(&self) -> bool

スプリットサイクルが失敗終了したか。

Source

pub fn start_split(&mut self)

新しい Start-Split サイクルを開始する。

Source

pub fn complete_split(&mut self) -> bool

Complete-Split を今発行すべきか返す。false なら CSPLIT は出さない(完了/失敗 or 待機)。

Source

pub fn transaction_complete(&mut self, status: u32)

直前トランザクションのチャネル割り込みステータスを与えて状態を進める。

Source

pub fn wait_for_frame(&mut self)

Start-Split を発行する正しいフレームまで待つ(実 HFNUM 参照)。

Source

pub fn is_odd_frame(&self) -> bool

HCCHAR の Odd-Frame ビットに設定すべき値。

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> Same for T

Source§

type Output = T

Should always be Self
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.