SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
OSRtc.h
Go to the documentation of this file.
1
#ifndef _DOLPHIN_OSRTC_H_
2
#define _DOLPHIN_OSRTC_H_
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
// make the assert happy
9
#define OS_SOUND_MODE_MONO 0
10
#define OS_SOUND_MODE_STEREO 1
11
12
// make the asserts happy
13
#define OS_VIDEO_MODE_NTSC 0
14
#define OS_VIDEO_MODE_MPAL 2
15
16
struct
SramControl
{
17
unsigned
char
sram
[64];
18
u32
offset
;
19
int
enabled
;
20
int
locked
;
21
int
sync
;
22
void (*
callback
)();
23
};
24
25
typedef
struct
OSSram
{
26
unsigned
short
checkSum
;
27
unsigned
short
checkSumInv
;
28
u32
ead0
;
29
u32
ead1
;
30
u32
counterBias
;
31
signed
char
displayOffsetH
;
32
unsigned
char
ntd
;
33
unsigned
char
language
;
34
unsigned
char
flags
;
35
}
OSSram
;
36
37
typedef
struct
OSSramEx
{
38
unsigned
char
flashID
[2][12];
39
u32
wirelessKeyboardID
;
40
unsigned
short
wirelessPadID
[4];
41
unsigned
char
dvdErrorCode
;
42
unsigned
char
_padding0
;
43
unsigned
char
flashIDCheckSum
[2];
44
unsigned
char
_padding1
[4];
45
}
OSSramEx
;
46
47
u32
OSGetSoundMode
();
48
void
OSSetSoundMode
(
u32
mode);
49
u32
OSGetVideoMode
();
50
void
OSSetVideoMode
(
u32
mode);
51
unsigned
char
OSGetLanguage
();
52
void
OSSetLanguage
(
unsigned
char
language);
53
u32
OSGetProgressiveMode
(
void
);
54
void
OSSetProgressiveMode
(
u32
mode);
55
u16
OSGetWirelessID
(
s32
);
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
// _DOLPHIN_OSRTC_H_
OSGetWirelessID
u16 OSGetWirelessID(s32)
Definition
OSRtc.c:376
OSSetSoundMode
void OSSetSoundMode(u32 mode)
Definition
OSRtc.c:327
OSSetProgressiveMode
void OSSetProgressiveMode(u32 mode)
Definition
OSRtc.c:357
OSGetLanguage
unsigned char OSGetLanguage()
Definition
OSRtc.c:416
OSSetLanguage
void OSSetLanguage(unsigned char language)
Definition
OSRtc.c:425
OSSetVideoMode
void OSSetVideoMode(u32 mode)
Definition
OSRtc.c:397
OSGetProgressiveMode
u32 OSGetProgressiveMode(void)
Definition
OSRtc.c:346
OSGetSoundMode
u32 OSGetSoundMode()
Definition
OSRtc.c:318
OSGetVideoMode
u32 OSGetVideoMode()
Definition
OSRtc.c:388
s32
signed int s32
Definition
types.h:12
u32
unsigned int u32
Definition
types.h:13
u16
unsigned short int u16
Definition
types.h:7
OSSramEx
Definition
OSRtc.h:37
OSSramEx::wirelessKeyboardID
u32 wirelessKeyboardID
Definition
OSRtc.h:39
OSSramEx::wirelessPadID
unsigned short wirelessPadID[4]
Definition
OSRtc.h:40
OSSramEx::_padding0
unsigned char _padding0
Definition
OSRtc.h:42
OSSramEx::flashIDCheckSum
unsigned char flashIDCheckSum[2]
Definition
OSRtc.h:43
OSSramEx::flashID
unsigned char flashID[2][12]
Definition
OSRtc.h:38
OSSramEx::_padding1
unsigned char _padding1[4]
Definition
OSRtc.h:44
OSSramEx::dvdErrorCode
unsigned char dvdErrorCode
Definition
OSRtc.h:41
OSSram
Definition
OSRtc.h:25
OSSram::flags
unsigned char flags
Definition
OSRtc.h:34
OSSram::displayOffsetH
signed char displayOffsetH
Definition
OSRtc.h:31
OSSram::checkSumInv
unsigned short checkSumInv
Definition
OSRtc.h:27
OSSram::ead0
u32 ead0
Definition
OSRtc.h:28
OSSram::ead1
u32 ead1
Definition
OSRtc.h:29
OSSram::counterBias
u32 counterBias
Definition
OSRtc.h:30
OSSram::ntd
unsigned char ntd
Definition
OSRtc.h:32
OSSram::checkSum
unsigned short checkSum
Definition
OSRtc.h:26
OSSram::language
unsigned char language
Definition
OSRtc.h:33
SramControl
Definition
OSRtc.h:16
SramControl::enabled
int enabled
Definition
OSRtc.h:19
SramControl::locked
int locked
Definition
OSRtc.h:20
SramControl::callback
void(* callback)()
Definition
OSRtc.h:22
SramControl::offset
u32 offset
Definition
OSRtc.h:18
SramControl::sram
unsigned char sram[64]
Definition
OSRtc.h:17
SramControl::sync
int sync
Definition
OSRtc.h:21
libs
dolphin
include
dolphin
os
OSRtc.h
Generated by
1.17.0