ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
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 sceCdApplySCmd (u8 cmdNum, const void *inBuff, u16 inBuffSize, void *outBuff, u16 outBuffSize)
 
int sceCdApplyNCmd (u8 cmdNum, const void *inBuff, u16 inBuffSize, void *outBuff, u16 outBuffSize)
 
int sceCdOpenConfig (int block, int mode, int NumBlocks, u32 *status)
 
int sceCdSpinCtrlEE (u32 speed)
 

Detailed Description

Definitions for libcdvd on the EE

Definition in file libcdvd.h.

Function Documentation

◆ sceCdApplyNCmd()

int sceCdApplyNCmd ( u8  cmdNum,
const void *  inBuff,
u16  inBuffSize,
void *  outBuff,
u16  outBuffSize 
)

send an n-command by function number

Parameters
cmdNumcommand number
inBuffinput buffer (can be null)
inBuffSizesize of input buffer (0 - 16 bytes)
outBuffoutput buffer (can be null)
outBuffSizesize of output buffer (0 - 16 bytes)
Returns
1 if successful, 0 if error

◆ sceCdApplySCmd()

int sceCdApplySCmd ( u8  cmdNum,
const void *  inBuff,
u16  inBuffSize,
void *  outBuff,
u16  outBuffSize 
)

send an s-command by function number

Parameters
commandnumber
inputbuffer (can be null)
sizeof input buffer (0 - 16 bytes)
outputbuffer (can be null)
sizeof output buffer (0 - 16 bytes)
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

◆ sceCdOpenConfig()

int sceCdOpenConfig ( int  block,
int  mode,
int  NumBlocks,
u32 status 
)

Opens a specified configuration block, within NVRAM. Each block is 15 bytes long.

Parameters
blockBlock number.
modeMode (0 = read, 1 = write).
NumBlocksNumber of blocks.
statusResult code.
Returns
1 on success, 0 on failure.

◆ 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

◆ 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.