SSBM Decomp
Loading...
Searching...
No Matches
mcc.h File Reference

Go to the source code of this file.

Data Structures

struct  MCC_Info
struct  MCC_Hdr
struct  MCC_HdrFio
struct  MCC_ChannelInfo
struct  FIO_Date
struct  FIO_Daytime
struct  FIO_Timestamp
struct  FIO_Stat
struct  FIO_Finddata

Typedefs

typedef void(* MCC_CBEvent) (enum MCC_CHANNEL channel, u32, u32)
typedef void(* MCC_CBSysEvent) (enum MCC_SYSEVENT sysEvent)
typedef int(* MCC_CBEnumDevices) (long)

Enumerations

enum  MCC_CHANNEL {
  MCC_CHANNEL_SYSTEM = 0 ,
  MCC_CHANNEL_1 = 1 ,
  MCC_CHANNEL_2 = 2 ,
  MCC_CHANNEL_3 = 3 ,
  MCC_CHANNEL_4 = 4 ,
  MCC_CHANNEL_5 = 5 ,
  MCC_CHANNEL_6 = 6 ,
  MCC_CHANNEL_7 = 7 ,
  MCC_CHANNEL_8 = 8 ,
  MCC_CHANNEL_9 = 9 ,
  MCC_CHANNEL_10 = 10 ,
  MCC_CHANNEL_11 = 11 ,
  MCC_CHANNEL_12 = 12 ,
  MCC_CHANNEL_13 = 13 ,
  MCC_CHANNEL_14 = 14 ,
  MCC_CHANNEL_15 = 15
}
enum  MCC_EXI {
  MCC_EXI_0 = 0 ,
  MCC_EXI_1 = 1 ,
  MCC_EXI_2 = 2
}
enum  MCC_SYSEVENT {
  MCC_SYSEVENT_UNKNOWN = 0 ,
  MCC_SYSEVENT_REBOOT = 1 ,
  MCC_SYSEVENT_INITIALIZED = 2 ,
  MCC_SYSEVENT_PING = 3 ,
  MCC_SYSEVENT_PING_RESULT = 4 ,
  MCC_SYSEVENT_FLUSH = 5
}
enum  MCC_MODE {
  MCC_MODE_MIN = 0 ,
  MCC_MODE_MAX = 1 ,
  MCC_MODE_ALL = 2
}
enum  MCC_CONNECT {
  MCC_CONNECT_DISCONNECT = 0 ,
  MCC_CONNECT_HOST_OPEN = 1 ,
  MCC_CONNECT_TARGET_OPEN = 2 ,
  MCC_CONNECT_CONNECTED = 3
}
enum  MCC_SYNC_STATE {
  MCC_SYNC = 0 ,
  MCC_ASYNC = 1
}
enum  FIO_ASYNC_STATE {
  FIO_ASYNC_STATE_IDOL = 0 ,
  FIO_ASYNC_STATE_BUSY = 1 ,
  FIO_ASYNC_STATE_DONE = 2
}

Functions

int FIOInit (enum MCC_EXI exiChannel, enum MCC_CHANNEL chID, u8 blockSize)
void FIOExit (void)
int FIOQuery (void)
u8 FIOGetLastError ()
int FIOFopen (const char *filename, u32 mode)
int FIOFclose (int handle)
u32 FIOFread (int handle, void *data, u32 size)
u32 FIOFwrite (int handle, void *data, u32 size)
u32 FIOFseek (int handle, long offset, u32 mode)
int FIOFprintf (int handle, const char *format,...)
int FIOFflush (int handle)
int FIOFstat (int handle, struct FIO_Stat *stat)
int FIOFerror (int handle)
int FIOFindFirst (const char *filename, struct FIO_Finddata *finddata)
int FIOFindNext (struct FIO_Finddata *finddata)
u32 FIOGetAsyncBufferSize (void)
int FIOFreadAsync (int handle, void *data, u32 size)
int FIOFwriteAsync (int handle, void *data, u32 size)
int FIOCheckAsyncDone (u32 *result)
int MCCStreamOpen (enum MCC_CHANNEL chID, u8 blockSize)
int MCCStreamClose (enum MCC_CHANNEL chID)
int MCCStreamWrite (enum MCC_CHANNEL chID, void *data, u32 dataBlockSize)
u32 MCCStreamRead (enum MCC_CHANNEL chID, void *data)
int MCCInit (enum MCC_EXI exiChannel, u8 timeout, MCC_CBSysEvent callbackSysEvent)
void MCCExit (void)
int MCCPing (void)
int MCCEnumDevices (MCC_CBEnumDevices callbackEnumDevices)
u8 MCCGetFreeBlocks (enum MCC_MODE mode)
u8 MCCGetLastError (void)
int MCCGetChannelInfo (enum MCC_CHANNEL chID, MCC_Info *info)
int MCCGetConnectionStatus (enum MCC_CHANNEL chID, enum MCC_CONNECT *connect)
int MCCNotify (enum MCC_CHANNEL chID, u32 notify)
u32 MCCSetChannelEventMask (enum MCC_CHANNEL chID, u32 event)
int MCCOpen (enum MCC_CHANNEL chID, u8 blockSize, MCC_CBEvent callbackEvent)
int MCCClose (enum MCC_CHANNEL chID)
int MCCLock (enum MCC_CHANNEL chID)
int MCCUnlock (enum MCC_CHANNEL chID)
int MCCRead (enum MCC_CHANNEL chID, u32 offset, void *data, long size, enum MCC_SYNC_STATE async)
int MCCWrite (enum MCC_CHANNEL chID, u32 offset, void *data, long size, enum MCC_SYNC_STATE async)
int MCCCheckAsyncDone ()

Typedef Documentation

◆ MCC_CBEvent

typedef void(* MCC_CBEvent) (enum MCC_CHANNEL channel, u32, u32)

◆ MCC_CBSysEvent

typedef void(* MCC_CBSysEvent) (enum MCC_SYSEVENT sysEvent)

◆ MCC_CBEnumDevices

typedef int(* MCC_CBEnumDevices) (long)

Enumeration Type Documentation

◆ MCC_CHANNEL

Enumerator
MCC_CHANNEL_SYSTEM 
MCC_CHANNEL_1 
MCC_CHANNEL_2 
MCC_CHANNEL_3 
MCC_CHANNEL_4 
MCC_CHANNEL_5 
MCC_CHANNEL_6 
MCC_CHANNEL_7 
MCC_CHANNEL_8 
MCC_CHANNEL_9 
MCC_CHANNEL_10 
MCC_CHANNEL_11 
MCC_CHANNEL_12 
MCC_CHANNEL_13 
MCC_CHANNEL_14 
MCC_CHANNEL_15 

◆ MCC_EXI

enum MCC_EXI
Enumerator
MCC_EXI_0 
MCC_EXI_1 
MCC_EXI_2 

◆ MCC_SYSEVENT

Enumerator
MCC_SYSEVENT_UNKNOWN 
MCC_SYSEVENT_REBOOT 
MCC_SYSEVENT_INITIALIZED 
MCC_SYSEVENT_PING 
MCC_SYSEVENT_PING_RESULT 
MCC_SYSEVENT_FLUSH 

◆ MCC_MODE

enum MCC_MODE
Enumerator
MCC_MODE_MIN 
MCC_MODE_MAX 
MCC_MODE_ALL 

◆ MCC_CONNECT

Enumerator
MCC_CONNECT_DISCONNECT 
MCC_CONNECT_HOST_OPEN 
MCC_CONNECT_TARGET_OPEN 
MCC_CONNECT_CONNECTED 

◆ MCC_SYNC_STATE

Enumerator
MCC_SYNC 
MCC_ASYNC 

◆ FIO_ASYNC_STATE

Enumerator
FIO_ASYNC_STATE_IDOL 
FIO_ASYNC_STATE_BUSY 
FIO_ASYNC_STATE_DONE 

Function Documentation

◆ FIOInit()

int FIOInit ( enum MCC_EXI exiChannel,
enum MCC_CHANNEL chID,
u8 blockSize )

◆ FIOExit()

void FIOExit ( void )

◆ FIOQuery()

int FIOQuery ( void )

◆ FIOGetLastError()

u8 FIOGetLastError ( )

◆ FIOFopen()

int FIOFopen ( const char * filename,
u32 mode )

◆ FIOFclose()

int FIOFclose ( int handle)

◆ FIOFread()

u32 FIOFread ( int handle,
void * data,
u32 size )

◆ FIOFwrite()

u32 FIOFwrite ( int handle,
void * data,
u32 size )

◆ FIOFseek()

u32 FIOFseek ( int handle,
long offset,
u32 mode )

◆ FIOFprintf()

int FIOFprintf ( int handle,
const char * format,
... )

◆ FIOFflush()

int FIOFflush ( int handle)

◆ FIOFstat()

int FIOFstat ( int handle,
struct FIO_Stat * stat )

◆ FIOFerror()

int FIOFerror ( int handle)

◆ FIOFindFirst()

int FIOFindFirst ( const char * filename,
struct FIO_Finddata * finddata )

◆ FIOFindNext()

int FIOFindNext ( struct FIO_Finddata * finddata)

◆ FIOGetAsyncBufferSize()

u32 FIOGetAsyncBufferSize ( void )

◆ FIOFreadAsync()

int FIOFreadAsync ( int handle,
void * data,
u32 size )

◆ FIOFwriteAsync()

int FIOFwriteAsync ( int handle,
void * data,
u32 size )

◆ FIOCheckAsyncDone()

int FIOCheckAsyncDone ( u32 * result)

◆ MCCStreamOpen()

int MCCStreamOpen ( enum MCC_CHANNEL chID,
u8 blockSize )

◆ MCCStreamClose()

int MCCStreamClose ( enum MCC_CHANNEL chID)

◆ MCCStreamWrite()

int MCCStreamWrite ( enum MCC_CHANNEL chID,
void * data,
u32 dataBlockSize )

◆ MCCStreamRead()

u32 MCCStreamRead ( enum MCC_CHANNEL chID,
void * data )

◆ MCCInit()

int MCCInit ( enum MCC_EXI exiChannel,
u8 timeout,
MCC_CBSysEvent callbackSysEvent )

◆ MCCExit()

void MCCExit ( void )

◆ MCCPing()

int MCCPing ( void )

◆ MCCEnumDevices()

int MCCEnumDevices ( MCC_CBEnumDevices callbackEnumDevices)

◆ MCCGetFreeBlocks()

u8 MCCGetFreeBlocks ( enum MCC_MODE mode)

◆ MCCGetLastError()

u8 MCCGetLastError ( void )

◆ MCCGetChannelInfo()

int MCCGetChannelInfo ( enum MCC_CHANNEL chID,
MCC_Info * info )

◆ MCCGetConnectionStatus()

int MCCGetConnectionStatus ( enum MCC_CHANNEL chID,
enum MCC_CONNECT * connect )

◆ MCCNotify()

int MCCNotify ( enum MCC_CHANNEL chID,
u32 notify )

◆ MCCSetChannelEventMask()

u32 MCCSetChannelEventMask ( enum MCC_CHANNEL chID,
u32 event )

◆ MCCOpen()

int MCCOpen ( enum MCC_CHANNEL chID,
u8 blockSize,
MCC_CBEvent callbackEvent )

◆ MCCClose()

int MCCClose ( enum MCC_CHANNEL chID)

◆ MCCLock()

int MCCLock ( enum MCC_CHANNEL chID)

◆ MCCUnlock()

int MCCUnlock ( enum MCC_CHANNEL chID)

◆ MCCRead()

int MCCRead ( enum MCC_CHANNEL chID,
u32 offset,
void * data,
long size,
enum MCC_SYNC_STATE async )

◆ MCCWrite()

int MCCWrite ( enum MCC_CHANNEL chID,
u32 offset,
void * data,
long size,
enum MCC_SYNC_STATE async )

◆ MCCCheckAsyncDone()

int MCCCheckAsyncDone ( )