Skip to main content

Sbrm

Struct Sbrm 

Source
pub struct Sbrm {
    pub base: u64,
    pub u3v_version: u32,
    pub u3vcp_capability: u64,
    pub max_cmd_transfer: u32,
    pub max_ack_transfer: u32,
    pub num_stream_channels: u32,
    pub sirm_address: u64,
    pub sirm_length: u32,
    pub eirm_address: u64,
    pub eirm_length: u32,
    pub current_speed: Option<UsbSpeed>,
}
Expand description

USB3 Vision’s technology-specific Bootstrap Register Map.

Fields§

§base: u64

Where the SBRM is.

§u3v_version: u32

Major version in the upper 16 bits, minor in the lower.

§u3vcp_capability: u64§max_cmd_transfer: u32

Largest command transfer the device accepts, in bytes.

§max_ack_transfer: u32

Largest acknowledge transfer it sends, in bytes.

§num_stream_channels: u32

Number of stream channels.

§sirm_address: u64

0 when the device has no SIRM.

§sirm_length: u32

Length of the SIRM in bytes.

§eirm_address: u64

0 when the device has no EIRM.

§eirm_length: u32

Length of the EIRM in bytes.

§current_speed: Option<UsbSpeed>

The bus speed the device says it runs at; None when it does not say, or refuses the register.

Implementations§

Source§

impl Sbrm

Source

pub fn read_from<T: UsbTransfer>( control: &mut ControlChannel<T>, base: u64, ) -> Result<Self, U3vError>

Read the SBRM from the device at the given base address (from ABRM).

The SIRM and EIRM registers are read whatever the capability bits say, as aravis does, and a refusal reads as “absent”: a device whose bit and register disagree still streams.

Trait Implementations§

Source§

impl Clone for Sbrm

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Sbrm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Sbrm

§

impl RefUnwindSafe for Sbrm

§

impl Send for Sbrm

§

impl Sync for Sbrm

§

impl Unpin for Sbrm

§

impl UnsafeUnpin for Sbrm

§

impl UnwindSafe for Sbrm

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more