PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
sio2Cmds.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SIO2_CMD_MAX   16
 
#define PAD_ID_FINDPADS   0x01
 
#define PAD_ID_MOUSE   0x12
 
#define PAD_ID_NEGICON   0x23
 
#define PAD_ID_KONAMIGUN   0x31
 
#define PAD_ID_DIGITAL   0x41
 
#define PAD_ID_JOYSTICK   0x53
 
#define PAD_ID_NAMCOGUN   0x63
 
#define PAD_ID_ANALOG   0x73
 
#define PAD_ID_ANALOG2   0x79
 
#define PAD_ID_MULTITAP   0x80
 
#define PAD_ID_JOGCON   0xE3
 
#define PAD_ID_JOGCON2   0xE5
 
#define PAD_ID_CONFIG   0xF3
 
#define PAD_ID_HI(id)   ((id)>>4)
 
#define PAD_ID_LO(id)   ((id)&0xF)
 

Functions

void sio2cmdReset (void)
 
void sio2cmdInitFindPads (void)
 
void sio2cmdInitMouse (void)
 
void sio2cmdInitNegicon (void)
 
void sio2cmdInitKonamiGun (void)
 
void sio2cmdInitDigital (void)
 
void sio2cmdInitJoystick (void)
 
void sio2cmdInitNamcoGun (void)
 
void sio2cmdInitAnalog (void)
 
void sio2cmdInitJogcon (void)
 
void sio2cmdInitConfig (void)
 
u32 sio2cmdCheckId (u8 id)
 
void sio2CmdSetReadData (u32 id, u8 *buf)
 
u32 sio2CmdSetEnterConfigMode (u32 id, u8 *buf)
 
u32 sio2CmdSetExitConfigMode (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryModel (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryAct (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryComb (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryMode (u32 id, u8 *buf)
 
u32 sio2CmdSetQueryButtonMask (u32 id, u8 *buf)
 
u32 sio2CmdSetSetButtonInfo (u32 id, u8 *buf)
 
u32 sio2CmdSetSetVrefParam (u32 id, u8 *buf)
 
u32 sio2CmdSetSetMainMode (u32 id, u8 *buf)
 
u32 sio2CmdSetSetActAlign (u32 id, u8 *buf)
 
u32 sio2CmdGetPortCtrl1 (u8 id, u32 b, u8 c)
 
u32 sio2CmdGetPortCtrl2 (u32 id, u32 b)
 

Detailed Description

IOP pad driver

Definition in file sio2Cmds.h.

Macro Definition Documentation

◆ SIO2_CMD_MAX

#define SIO2_CMD_MAX   16

Definition at line 15 of file sio2Cmds.h.

◆ PAD_ID_FINDPADS

#define PAD_ID_FINDPADS   0x01

Definition at line 17 of file sio2Cmds.h.

◆ PAD_ID_MOUSE

#define PAD_ID_MOUSE   0x12

Definition at line 18 of file sio2Cmds.h.

◆ PAD_ID_NEGICON

#define PAD_ID_NEGICON   0x23

Definition at line 19 of file sio2Cmds.h.

◆ PAD_ID_KONAMIGUN

#define PAD_ID_KONAMIGUN   0x31

Definition at line 20 of file sio2Cmds.h.

◆ PAD_ID_DIGITAL

#define PAD_ID_DIGITAL   0x41

Definition at line 21 of file sio2Cmds.h.

◆ PAD_ID_JOYSTICK

#define PAD_ID_JOYSTICK   0x53

Definition at line 22 of file sio2Cmds.h.

◆ PAD_ID_NAMCOGUN

#define PAD_ID_NAMCOGUN   0x63

Definition at line 23 of file sio2Cmds.h.

◆ PAD_ID_ANALOG

#define PAD_ID_ANALOG   0x73

Definition at line 24 of file sio2Cmds.h.

◆ PAD_ID_ANALOG2

#define PAD_ID_ANALOG2   0x79

Definition at line 25 of file sio2Cmds.h.

◆ PAD_ID_MULTITAP

#define PAD_ID_MULTITAP   0x80

Definition at line 26 of file sio2Cmds.h.

◆ PAD_ID_JOGCON

#define PAD_ID_JOGCON   0xE3

Definition at line 27 of file sio2Cmds.h.

◆ PAD_ID_JOGCON2

#define PAD_ID_JOGCON2   0xE5

Definition at line 28 of file sio2Cmds.h.

◆ PAD_ID_CONFIG

#define PAD_ID_CONFIG   0xF3

Definition at line 29 of file sio2Cmds.h.

◆ PAD_ID_HI

#define PAD_ID_HI (   id)    ((id)>>4)

Definition at line 31 of file sio2Cmds.h.

◆ PAD_ID_LO

#define PAD_ID_LO (   id)    ((id)&0xF)

Definition at line 32 of file sio2Cmds.h.

Function Documentation

◆ sio2cmdReset()

void sio2cmdReset ( void  )

Definition at line 42 of file sio2Cmds.c.

◆ sio2cmdInitFindPads()

void sio2cmdInitFindPads ( void  )

Definition at line 165 of file sio2Cmds.c.

◆ sio2cmdInitMouse()

void sio2cmdInitMouse ( void  )

Definition at line 253 of file sio2Cmds.c.

◆ sio2cmdInitNegicon()

void sio2cmdInitNegicon ( void  )

Definition at line 347 of file sio2Cmds.c.

◆ sio2cmdInitKonamiGun()

void sio2cmdInitKonamiGun ( void  )

Definition at line 431 of file sio2Cmds.c.

◆ sio2cmdInitDigital()

void sio2cmdInitDigital ( void  )

Definition at line 515 of file sio2Cmds.c.

◆ sio2cmdInitJoystick()

void sio2cmdInitJoystick ( void  )

Definition at line 607 of file sio2Cmds.c.

◆ sio2cmdInitNamcoGun()

void sio2cmdInitNamcoGun ( void  )

Definition at line 699 of file sio2Cmds.c.

◆ sio2cmdInitAnalog()

void sio2cmdInitAnalog ( void  )

Definition at line 812 of file sio2Cmds.c.

◆ sio2cmdInitJogcon()

void sio2cmdInitJogcon ( void  )

Definition at line 912 of file sio2Cmds.c.

◆ sio2cmdInitConfig()

void sio2cmdInitConfig ( void  )

Definition at line 1139 of file sio2Cmds.c.

◆ sio2cmdCheckId()

u32 sio2cmdCheckId ( u8  id)

Definition at line 1169 of file sio2Cmds.c.

◆ sio2CmdSetReadData()

void sio2CmdSetReadData ( u32  id,
u8 *  buf 
)

Definition at line 1218 of file sio2Cmds.c.

◆ sio2CmdSetEnterConfigMode()

u32 sio2CmdSetEnterConfigMode ( u32  id,
u8 *  buf 
)

Definition at line 1236 of file sio2Cmds.c.

◆ sio2CmdSetExitConfigMode()

u32 sio2CmdSetExitConfigMode ( u32  id,
u8 *  buf 
)

Definition at line 1339 of file sio2Cmds.c.

◆ sio2CmdSetQueryModel()

u32 sio2CmdSetQueryModel ( u32  id,
u8 *  buf 
)

Definition at line 1254 of file sio2Cmds.c.

◆ sio2CmdSetQueryAct()

u32 sio2CmdSetQueryAct ( u32  id,
u8 *  buf 
)

Definition at line 1288 of file sio2Cmds.c.

◆ sio2CmdSetQueryComb()

u32 sio2CmdSetQueryComb ( u32  id,
u8 *  buf 
)

Definition at line 1305 of file sio2Cmds.c.

◆ sio2CmdSetQueryMode()

u32 sio2CmdSetQueryMode ( u32  id,
u8 *  buf 
)

Definition at line 1322 of file sio2Cmds.c.

◆ sio2CmdSetQueryButtonMask()

u32 sio2CmdSetQueryButtonMask ( u32  id,
u8 *  buf 
)

Definition at line 1373 of file sio2Cmds.c.

◆ sio2CmdSetSetButtonInfo()

u32 sio2CmdSetSetButtonInfo ( u32  id,
u8 *  buf 
)

Definition at line 1408 of file sio2Cmds.c.

◆ sio2CmdSetSetVrefParam()

u32 sio2CmdSetSetVrefParam ( u32  id,
u8 *  buf 
)

Definition at line 1390 of file sio2Cmds.c.

◆ sio2CmdSetSetMainMode()

u32 sio2CmdSetSetMainMode ( u32  id,
u8 *  buf 
)

Definition at line 1271 of file sio2Cmds.c.

◆ sio2CmdSetSetActAlign()

u32 sio2CmdSetSetActAlign ( u32  id,
u8 *  buf 
)

Definition at line 1356 of file sio2Cmds.c.

◆ sio2CmdGetPortCtrl1()

u32 sio2CmdGetPortCtrl1 ( u8  id,
u32  b,
u8  c 
)

Definition at line 1184 of file sio2Cmds.c.

◆ sio2CmdGetPortCtrl2()

u32 sio2CmdGetPortCtrl2 ( u32  id,
u32  b 
)

Definition at line 1201 of file sio2Cmds.c.