pub struct Eirm {
pub base: u64,
pub maximum_event_transfer_length: u32,
}Expand description
What the device says about its event interface.
Fields§
§base: u64Where the EIRM is.
maximum_event_transfer_length: u32The longest event transfer the device sends, in bytes.
Implementations§
Source§impl Eirm
impl Eirm
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 EIRM at the given base address (from SBRM).
Sourcepub fn set_enabled<T: UsbTransfer>(
&self,
control: &mut ControlChannel<T>,
enabled: bool,
) -> Result<(), U3vError>
pub fn set_enabled<T: UsbTransfer>( &self, control: &mut ControlChannel<T>, enabled: bool, ) -> Result<(), U3vError>
Set or clear EventEnable: whether the device sends events on its event endpoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Eirm
impl RefUnwindSafe for Eirm
impl Send for Eirm
impl Sync for Eirm
impl Unpin for Eirm
impl UnsafeUnpin for Eirm
impl UnwindSafe for Eirm
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