NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
OSRtc.h
1#ifndef RVL_SDK_OS_RTC_H
2#define RVL_SDK_OS_RTC_H
3#include <types.h>
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef struct OSSram {
9 u16 checksum; // at 0x0
10 u16 invchecksum; // at 0x2
11 u32 ead0; // at 0x4
12 u32 ead1; // at 0x8
13 u32 counterBias; // at 0xC
14 u8 dispOfsH; // at 0x10
15 u8 ntd; // at 0x11
16 u8 lang; // at 0x12
17 u8 flags; // at 0x13
18} OSSram;
19
20typedef struct OSSramEx {
21 char UNK_0x0[0x1C];
22 u16 wirelessPadId[4]; // at 0x1C
23 char UNK_0x38[0x3C - 0x38];
24 u16 gbs; // at 0x3C
25 char UNK_0x3E[0x40 - 0x3E];
26} OSSramEx;
27
28void __OSInitSram(void);
29OSSramEx* __OSLockSramEx(void);
30BOOL __OSUnlockSramEx(BOOL save);
31BOOL __OSSyncSram(void);
32BOOL __OSReadROM(void* dst, s32 size, const void* src);
33u16 OSGetWirelessID(s32 pad);
34void OSSetWirelessID(s32 pad, u16 id);
35u16 OSGetGbsMode(void);
36void OSSetGbsMode(u16 gbs);
37BOOL __OSGetRTCFlags(u32* out);
38BOOL __OSClearRTCFlags(void);
39
40#ifdef __cplusplus
41}
42#endif
43#endif
Definition OSRtc.h:8