Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
card.h File Reference

Go to the source code of this file.

Classes

struct  CARDFileInfo
 
struct  CARDStat
 

Typedefs

typedef struct CARDFileInfo CARDFileInfo
 
typedef struct CARDStat CARDStat
 
typedef void(* CARDCallback) (s32 chan, s32 result)
 

Functions

void CARDInit (void)
 
BOOL CARDGetFastMode (void)
 
s32 CARDFreeBlocks (s32 chan, s32 *byteNotUsed, s32 *filesNotUsed)
 
s32 CARDCheck (s32 chan)
 
static s32 CARDCheckExAsync (s32 chan, s32 *xferBytes, CARDCallback callback)
 
static s32 CARDCreateAsync (s32 chan, const char *fileName, u32 size, CARDFileInfo *fileInfo, CARDCallback callback)
 
s32 CARDCreate (s32 chan, const char *fileName, u32 size, CARDFileInfo *fileInfo)
 
s32 CARDFormat (s32 chan)
 
s32 CARDProbe (s32 chan)
 
s32 CARDProbeEx (s32 chan, s32 *memSize, s32 *sectorSize)
 
s32 CARDMount (s32 chan, void *workArea, CARDCallback attachCb)
 
s32 CARDUnmount (s32 chan)
 
static s32 CARDMountAsync (s32 chan, void *workArea, CARDCallback detachCb, CARDCallback attachCb)
 
s32 CARDGetSerialNo (s32 chan, u64 *serialNo)
 
s32 CARDOpen (s32 chan, const char *fileName, CARDFileInfo *fileInfo)
 
s32 CARDClose (CARDFileInfo *fileInfo)
 
static s32 CARDReadAsync (CARDFileInfo *fileInfo, void *buf, s32 length, s32 offset, CARDCallback callback)
 
s32 CARDRead (CARDFileInfo *fileInfo, void *buf, s32 length, s32 offset)
 
s32 CARDSetStatus (s32 chan, s32 fileNo, CARDStat *stat)
 
s32 CARDGetStatus (s32 chan, s32 fileNo, CARDStat *stat)
 
static s32 CARDSetStatusAsync (s32 chan, s32 fileNo, CARDStat *stat, CARDCallback callback)
 
static s32 CARDWriteAsync (CARDFileInfo *fileInfo, const void *buf, s32 length, s32 offset, CARDCallback callback)
 
s32 CARDWrite (CARDFileInfo *fileInfo, const void *buf, s32 length, s32 offset)
 

Typedef Documentation

◆ CARDCallback

typedef void(* CARDCallback) (s32 chan, s32 result)

◆ CARDFileInfo

◆ CARDStat

Function Documentation

◆ CARDCheck()

s32 CARDCheck ( s32  chan)

◆ CARDCheckExAsync()

static s32 CARDCheckExAsync ( s32  chan,
s32 xferBytes,
CARDCallback  callback 
)
static

◆ CARDClose()

s32 CARDClose ( CARDFileInfo fileInfo)

◆ CARDCreate()

s32 CARDCreate ( s32  chan,
const char fileName,
u32  size,
CARDFileInfo fileInfo 
)

◆ CARDCreateAsync()

static s32 CARDCreateAsync ( s32  chan,
const char fileName,
u32  size,
CARDFileInfo fileInfo,
CARDCallback  callback 
)
static

◆ CARDFormat()

s32 CARDFormat ( s32  chan)

◆ CARDFreeBlocks()

s32 CARDFreeBlocks ( s32  chan,
s32 byteNotUsed,
s32 filesNotUsed 
)

◆ CARDGetFastMode()

BOOL CARDGetFastMode ( void  )

◆ CARDGetSerialNo()

s32 CARDGetSerialNo ( s32  chan,
u64 serialNo 
)

◆ CARDGetStatus()

s32 CARDGetStatus ( s32  chan,
s32  fileNo,
CARDStat stat 
)

◆ CARDInit()

void CARDInit ( void  )

◆ CARDMount()

s32 CARDMount ( s32  chan,
void workArea,
CARDCallback  attachCb 
)

◆ CARDMountAsync()

static s32 CARDMountAsync ( s32  chan,
void workArea,
CARDCallback  detachCb,
CARDCallback  attachCb 
)
static

◆ CARDOpen()

s32 CARDOpen ( s32  chan,
const char fileName,
CARDFileInfo fileInfo 
)

◆ CARDProbe()

s32 CARDProbe ( s32  chan)

◆ CARDProbeEx()

s32 CARDProbeEx ( s32  chan,
s32 memSize,
s32 sectorSize 
)

◆ CARDRead()

s32 CARDRead ( CARDFileInfo fileInfo,
void buf,
s32  length,
s32  offset 
)

◆ CARDReadAsync()

static s32 CARDReadAsync ( CARDFileInfo fileInfo,
void buf,
s32  length,
s32  offset,
CARDCallback  callback 
)
static

◆ CARDSetStatus()

s32 CARDSetStatus ( s32  chan,
s32  fileNo,
CARDStat stat 
)

◆ CARDSetStatusAsync()

static s32 CARDSetStatusAsync ( s32  chan,
s32  fileNo,
CARDStat stat,
CARDCallback  callback 
)
static

◆ CARDUnmount()

s32 CARDUnmount ( s32  chan)

◆ CARDWrite()

s32 CARDWrite ( CARDFileInfo fileInfo,
const void buf,
s32  length,
s32  offset 
)

◆ CARDWriteAsync()

static s32 CARDWriteAsync ( CARDFileInfo fileInfo,
const void buf,
s32  length,
s32  offset,
CARDCallback  callback 
)
static