OldSchool Library
usb.h File Reference

USB Module Header File. More...

#include <pspusb.h>
#include <pspusbstor.h>
#include <pspsdk.h>

Macros

#define oslGetUsbState   sceUsbGetState
 Gets the current USB state.
 

Enumerations

enum  { OSL_USB_ACTIVATED = PSP_USB_ACTIVATED , OSL_USB_CABLE_CONNECTED = PSP_USB_CABLE_CONNECTED , OSL_USB_CONNECTION_ESTABLISHED = PSP_USB_CONNECTION_ESTABLISHED }
 USB State Enum. More...
 

Functions

int oslInitUsbStorage ()
 Initializes the USB storage modules.
 
int oslStartUsbStorage ()
 Starts USB storage.
 
int oslStopUsbStorage ()
 Stops USB storage.
 
int oslDeinitUsbStorage ()
 Deinitializes the USB storage modules.
 

Detailed Description

USB Module Header File.

This file contains functions and definitions related to USB operations, including initializing, starting, stopping, and deinitializing USB storage.

Macro Definition Documentation

◆ oslGetUsbState

#define oslGetUsbState   sceUsbGetState

Gets the current USB state.

This macro retrieves the current state of the USB connection. It maps directly to sceUsbGetState.