#[repr(C)]pub struct UsbDriver {Show 17 fields
pub name: *const c_char,
pub endpoints: c_int,
pub endp: *mut UsbEndpoint,
pub intp: *mut UsbInterface,
pub devp_hi: *mut c_void,
pub confp_hi: *mut c_void,
pub devp: *mut c_void,
pub confp: *mut c_void,
pub str: *mut StringDescriptor,
pub recvctl: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, req: *mut DeviceRequest) -> c_int>,
pub func28: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, arg3: c_int) -> c_int>,
pub attach: Option<unsafe extern "C" fn(speed: c_int, arg2: *mut c_void, arg3: *mut c_void) -> c_int>,
pub detach: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, arg3: c_int) -> c_int>,
pub unk34: c_int,
pub start_func: Option<unsafe extern "C" fn(size: c_int, args: *mut c_void) -> c_int>,
pub stop_func: Option<unsafe extern "C" fn(size: c_int, args: *mut c_void) -> c_int>,
pub link: *mut UsbDriver,
}Expand description
USB driver structure used by ::sceUsbbdRegister and ::sceUsbbdUnregister
Fields§
§name: *const c_charName of the USB driver
endpoints: c_intNumber of endpoints in this driver (including default control)
endp: *mut UsbEndpointList of endpoint structures (used when calling other functions)
intp: *mut UsbInterfaceInterface list
devp_hi: *mut c_voidPointer to hi-speed device descriptor
confp_hi: *mut c_voidPointer to hi-speed device configuration
devp: *mut c_voidPointer to full-speed device descriptor
confp: *mut c_voidPointer to full-speed device configuration
str: *mut StringDescriptorDefault String descriptor
recvctl: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, req: *mut DeviceRequest) -> c_int>Received a control request arg0 is endpoint, arg1 is possibly data arg2 is data buffer
func28: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, arg3: c_int) -> c_int>Unknown
attach: Option<unsafe extern "C" fn(speed: c_int, arg2: *mut c_void, arg3: *mut c_void) -> c_int>Configuration set (attach) function
detach: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, arg3: c_int) -> c_int>Configuration unset (detach) function
unk34: c_intUnknown set to 0
start_func: Option<unsafe extern "C" fn(size: c_int, args: *mut c_void) -> c_int>Function called when the driver is started
stop_func: Option<unsafe extern "C" fn(size: c_int, args: *mut c_void) -> c_int>Function called when the driver is stopped
link: *mut UsbDriverLink to next USB driver in the chain, set to NULL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UsbDriver
impl RefUnwindSafe for UsbDriver
impl !Send for UsbDriver
impl !Sync for UsbDriver
impl Unpin for UsbDriver
impl UnsafeUnpin for UsbDriver
impl UnwindSafe for UsbDriver
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