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: u64Where the SBRM is.
u3v_version: u32Major version in the upper 16 bits, minor in the lower.
u3vcp_capability: u64u3vcp_capability bits.
max_cmd_transfer: u32Largest command transfer the device accepts, in bytes.
max_ack_transfer: u32Largest acknowledge transfer it sends, in bytes.
num_stream_channels: u32Number of stream channels.
sirm_address: u640 when the device has no SIRM.
sirm_length: u32Length of the SIRM in bytes.
eirm_address: u640 when the device has no EIRM.
eirm_length: u32Length 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
impl Sbrm
Sourcepub fn read_from<T: UsbTransfer>(
control: &mut ControlChannel<T>,
base: u64,
) -> Result<Self, U3vError>
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§
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> 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