#[repr(C)]pub struct UhciTd {
pub link_pointer: u32,
pub control_status: u32,
pub token: u32,
pub buffer_pointer: u32,
}Expand description
UHCI Transfer Descriptor
Fields§
§link_pointer: u32Link pointer to next TD or QH
control_status: u32Control and status
token: u32Token (PID, device address, endpoint, data toggle)
buffer_pointer: u32Buffer pointer
Implementations§
Source§impl UhciTd
impl UhciTd
pub const fn new() -> Self
Sourcepub fn setup_packet(
&mut self,
device_addr: u8,
endpoint: u8,
data_toggle: bool,
max_len: u16,
)
pub fn setup_packet( &mut self, device_addr: u8, endpoint: u8, data_toggle: bool, max_len: u16, )
Set up a SETUP packet TD
Sourcepub fn in_packet(
&mut self,
device_addr: u8,
endpoint: u8,
data_toggle: bool,
max_len: u16,
)
pub fn in_packet( &mut self, device_addr: u8, endpoint: u8, data_toggle: bool, max_len: u16, )
Set up an IN packet TD
Sourcepub fn out_packet(
&mut self,
device_addr: u8,
endpoint: u8,
data_toggle: bool,
max_len: u16,
)
pub fn out_packet( &mut self, device_addr: u8, endpoint: u8, data_toggle: bool, max_len: u16, )
Set up an OUT packet TD
Sourcepub fn actual_length(&self) -> u16
pub fn actual_length(&self) -> u16
Get actual length transferred
Trait Implementations§
impl Copy for UhciTd
Auto Trait Implementations§
impl Freeze for UhciTd
impl RefUnwindSafe for UhciTd
impl Send for UhciTd
impl Sync for UhciTd
impl Unpin for UhciTd
impl UnwindSafe for UhciTd
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)