PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
libcdvd.h File Reference
#include <libcdvd-common.h>
+ Include dependency graph for libcdvd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int sceCdReadIOPMem (u32 lbn, u32 sectors, void *buf, sceCdRMode *mode)
 
int sceCdNCmdDiskReady (void)
 
int sceCdSpinCtrlEE (u32 speed)
 

Detailed Description

Definitions for libcdvd on the EE

Definition in file libcdvd.h.

Function Documentation

◆ sceCdReadIOPMem()

int sceCdReadIOPMem ( u32  lbn,
u32  sectors,
void *  buf,
sceCdRMode mode 
)

read data to iop memory

Parameters
lbnsector location to read from
sectorsnumber of sectors to read
bufbuffer to read to (in iop memory)
moderead mode
Returns
1 if successful, 0 if error

◆ sceCdNCmdDiskReady()

int sceCdNCmdDiskReady ( void  )

wait for disc to finish all n-commands (shouldnt really need to call this yourself)

Returns
SCECdNotReady (6) if busy; SCECdComplete (2) if ready; 0 if error

◆ sceCdSpinCtrlEE()

int sceCdSpinCtrlEE ( u32  speed)

Controls spindle speed? Not sure what it really does. SUPPORTED IN XCDVDMAN/XCDVDFSV ONLY

Parameters
speedSpeed mode.
Returns
1 on success, 0 on failure.