PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
padData.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007 Lukasz Bruun <mail@lukasz.dk>
3 *
4 * See the file LICENSE included with this distribution for licensing terms.
5 */
6
12#ifndef __FREEPAD_PADDATA_H__
13#define __FREEPAD_PADDATA_H__
14
15
16void pdReset(void);
17void pdTransfer(void);
18
19u32 pdSetCtrl1(u32 port, u32 slot, u32 ctrl);
20u32 pdSetCtrl2(u32 port, u32 slot, u32 ctrl);
21
22u32 pdSetInBuffer(u32 port, u32 slot, u32 size, const u8 *buf);
23u32 pdGetOutBuffer(u32 port, u32 slot, u32 size, u8 *buf);
24
25u32 pdSetInSize(u32 port, u32 slot, u32 size);
26u32 pdSetOutSize(u32 port, u32 slot, u32 size);
27
28u32 pdGetInSize(u8 id);
29u32 pdGetOutSize(u8 id);
30
31u32 pdSetRegData(u32 port, u32 slot, u32 reg_data);
32u32 pdGetRegData(u32 id);
33
34u32 pdIsActive(u32 port, u32 slot);
35u32 pdSetActive(u32 port, u32 slot, u32 active);
36
37u32 pdGetStat70bit(u32 port, u32 slot);
38u32 pdSetStat70bit(u32 port, u32 slot, u32 val);
39
40s32 pdGetError(u32 port, u32 slot);
41
42u32 pdCheckConnection(u32 port, u32 slot);
43
44
45
46
47#endif
48