pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
pspmscm.h
Go to the documentation of this file.
1
/*
2
* PSP Software Development Kit - http://www.pspdev.org
3
* -----------------------------------------------------------------------
4
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5
*
6
* pspmscm.h - Memory stick utility functions
7
*
8
* Copyright (c) 2006 Adrahil
9
*
10
* $Id: pspmscm.h 2005 2006-09-17 21:36:52Z tyranid $
11
*/
12
#ifndef PSPMSCM_H
13
#define PSPMSCM_H
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
24
static
__inline__
int
MScmIsMediumInserted(
void
)
25
{
26
int
status, ret;
27
28
ret =
sceIoDevctl
(
"mscmhc0:"
, 0x02025806, 0, 0, &status,
sizeof
(status));
29
if
(ret < 0)
return
ret;
30
if
(status != 1)
return
0;
31
32
return
1;
33
}
34
35
/* Event which has occurred in the memory stick ejection callback, passed in arg2 */
36
#define MS_CB_EVENT_INSERTED 1
37
#define MS_CB_EVENT_EJECTED 2
38
46
static
__inline__
int
MScmRegisterMSInsertEjectCallback(
SceUID
cbid)
47
{
48
return
sceIoDevctl
(
"fatms0:"
, 0x02415821, &cbid,
sizeof
(cbid), 0, 0);
49
}
50
58
static
__inline__
int
MScmUnregisterMSInsertEjectCallback(
SceUID
cbid)
59
{
60
return
sceIoDevctl
(
"fatms0:"
, 0x02415822, &cbid,
sizeof
(cbid), 0, 0);
61
}
62
63
#ifdef __cplusplus
64
}
65
#endif
66
67
#endif
/* PSPMSCM_H */
src
user
pspmscm.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2