Loading [MathJax]/extensions/MathMenu.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
OSRtc.h
Go to the documentation of this file.
1#ifndef _DOLPHIN_OSRTC_H_
2#define _DOLPHIN_OSRTC_H_
3
4#include <dolphin/types.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10// make the assert happy
11#define OS_SOUND_MODE_MONO 0
12#define OS_SOUND_MODE_STEREO 1
13
14// make the asserts happy
15#define OS_VIDEO_MODE_NTSC 0
16#define OS_VIDEO_MODE_MPAL 2
17
18#define OS_PROGRESSIVE_MODE_OFF 0
19#define OS_PROGRESSIVE_MODE_ON 1
20
21#define OS_EURGB60_OFF 0
22#define OS_EURGB60_ON 1
23
35
46
47#define SRAM_SIZE (sizeof(OSSram) + sizeof(OSSramEx))
48
49typedef struct SramControl {
50 u8 sram[SRAM_SIZE]; // dummy for OSSram + OSSramEx
54 int sync;
55 void (*callback)();
57
62u8 OSGetLanguage(void);
63void OSSetLanguage(u8 language);
64u16 OSGetGbsMode(void);
69void OSSetEuRgb60Mode(u32 on);
71void OSSetWirelessID(s32 chan, u16 id);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif // _DOLPHIN_OSRTC_H_
u32 mode
Definition GXTev.c:56
void OSSetLanguage(u8 language)
Definition OSRtc.c:397
void OSSetProgressiveMode(u32 on)
Definition OSRtc.c:333
u8 OSGetLanguage(void)
Definition OSRtc.c:389
void OSSetSoundMode(u32 mode)
Definition OSRtc.c:306
u16 OSGetWirelessID(s32 chan)
Definition OSRtc.c:461
u16 OSGetGbsMode(void)
Definition OSRtc.c:484
void OSSetEuRgb60Mode(u32 on)
Definition OSRtc.c:441
u32 OSGetSoundMode(void)
Definition OSRtc.c:298
void OSSetVideoMode(u32 mode)
Definition OSRtc.c:368
u32 OSGetProgressiveMode(void)
Definition OSRtc.c:323
u32 OSGetEuRgb60Mode(void)
Definition OSRtc.c:431
void OSSetGbsMode(u16 mode)
Definition OSRtc.c:494
void OSSetWirelessID(s32 chan, u16 id)
Definition OSRtc.c:471
u32 OSGetVideoMode(void)
Definition OSRtc.c:355
struct OSSramEx OSSramEx
struct SramControl SramControl
struct OSSram OSSram
Definition OSRtc.h:36
u32 wirelessKeyboardID
Definition OSRtc.h:38
u8 dvdErrorCode
Definition OSRtc.h:40
u8 flashID[2][12]
Definition OSRtc.h:37
u8 _padding1[2]
Definition OSRtc.h:44
u8 _padding0
Definition OSRtc.h:41
u8 flashIDCheckSum[2]
Definition OSRtc.h:42
u16 gbs
Definition OSRtc.h:43
u16 wirelessPadID[4]
Definition OSRtc.h:39
Definition OSRtc.h:24
u16 checkSum
Definition OSRtc.h:25
u32 ead0
Definition OSRtc.h:27
u16 checkSumInv
Definition OSRtc.h:26
u32 ead1
Definition OSRtc.h:28
u8 flags
Definition OSRtc.h:33
u32 counterBias
Definition OSRtc.h:29
s8 displayOffsetH
Definition OSRtc.h:30
u8 language
Definition OSRtc.h:32
u8 ntd
Definition OSRtc.h:31
Definition OSRtc.h:49
BOOL enabled
Definition OSRtc.h:52
u8 sram[SRAM_SIZE]
Definition OSRtc.h:50
void(* callback)()
Definition OSRtc.h:55
u32 offset
Definition OSRtc.h:51
BOOL locked
Definition OSRtc.h:53
int sync
Definition OSRtc.h:54
int BOOL
Definition types.h:30
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:9
unsigned short int u16
Definition types.h:7
signed long s32
Definition types.h:8
unsigned char u8
Definition types.h:5