-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathpadData.h
More file actions
48 lines (30 loc) · 1.09 KB
/
padData.h
File metadata and controls
48 lines (30 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright (c) 2007 Lukasz Bruun <mail@lukasz.dk>
*
* See the file LICENSE included with this distribution for licensing terms.
*/
/**
* @file
* IOP pad driver
*/
#ifndef __FREEPAD_PADDATA_H__
#define __FREEPAD_PADDATA_H__
extern void pdReset(void);
extern void pdTransfer(void);
extern u32 pdSetCtrl1(u32 port, u32 slot, u32 ctrl);
extern u32 pdSetCtrl2(u32 port, u32 slot, u32 ctrl);
extern u32 pdSetInBuffer(u32 port, u32 slot, u32 size, const u8 *buf);
extern u32 pdGetOutBuffer(u32 port, u32 slot, u32 size, u8 *buf);
extern u32 pdSetInSize(u32 port, u32 slot, u32 size);
extern u32 pdSetOutSize(u32 port, u32 slot, u32 size);
extern u32 pdGetInSize(u8 id);
extern u32 pdGetOutSize(u8 id);
extern u32 pdSetRegData(u32 port, u32 slot, u32 reg_data);
extern u32 pdGetRegData(u32 id);
extern u32 pdIsActive(u32 port, u32 slot);
extern u32 pdSetActive(u32 port, u32 slot, u32 active);
extern u32 pdGetStat70bit(u32 port, u32 slot);
extern u32 pdSetStat70bit(u32 port, u32 slot, u32 val);
extern s32 pdGetError(u32 port, u32 slot);
extern u32 pdCheckConnection(u32 port, u32 slot);
#endif