sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
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
13#ifndef __FREEPAD_PADDATA_H__
14#define __FREEPAD_PADDATA_H__
15
16
17extern void pdReset(void);
18extern void pdTransfer(void);
19
20extern u32 pdSetCtrl1(u32 port, u32 slot, u32 ctrl);
21extern u32 pdSetCtrl2(u32 port, u32 slot, u32 ctrl);
22
23extern u32 pdSetInBuffer(u32 port, u32 slot, u32 size, const u8 *buf);
24extern u32 pdGetOutBuffer(u32 port, u32 slot, u32 size, u8 *buf);
25
26extern u32 pdSetInSize(u32 port, u32 slot, u32 size);
27extern u32 pdSetOutSize(u32 port, u32 slot, u32 size);
28
29extern u32 pdGetInSize(u8 id);
30extern u32 pdGetOutSize(u8 id);
31
32extern u32 pdSetRegData(u32 port, u32 slot, u32 reg_data);
33extern u32 pdGetRegData(u32 id);
34
35extern u32 pdIsActive(u32 port, u32 slot);
36extern u32 pdSetActive(u32 port, u32 slot, u32 active);
37
38extern u32 pdGetStat70bit(u32 port, u32 slot);
39extern u32 pdSetStat70bit(u32 port, u32 slot, u32 val);
40
41extern s32 pdGetError(u32 port, u32 slot);
42
43extern u32 pdCheckConnection(u32 port, u32 slot);
44
45
46
47
48#endif
49