summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/AgbRfu_LinkManager.h50
-rw-r--r--include/link_rfu.h50
2 files changed, 50 insertions, 50 deletions
diff --git a/include/AgbRfu_LinkManager.h b/include/AgbRfu_LinkManager.h
index 3820a5005..53c623e5a 100644
--- a/include/AgbRfu_LinkManager.h
+++ b/include/AgbRfu_LinkManager.h
@@ -110,42 +110,6 @@
#define LMAN_FORCED_STOP_AND_RFU_RESET 0x17 // Attempt to forcibly stop Link Manager using rfu_LMAN_stopLMAN(1).
#define LMAN_STATE_WAIT_CHANGE_CLOCK_MASTER 0x18 // Attempt to return to AGB clock master after child fails in sending game name.
-// RfuTgtData.gname is read as these structs.
-struct GFtgtGnameSub
-{
- u16 language:4;
- u16 hasNews:1;
- u16 hasCard:1;
- u16 unk_00_6:1;
- u16 isChampion:1;
- u16 hasNationalDex:1;
- u16 gameClear:1;
- u16 version:4;
- u16 unk_01_6:2;
- u8 playerTrainerId[2];
-};
-
-struct __attribute__((packed, aligned(2))) GFtgtGname
-{
- struct GFtgtGnameSub unk_00;
- u8 child_sprite_gender[RFU_CHILD_MAX]; // u8 sprite_idx:3;
- // u8 gender:1;
- // u8 unk_4:3
- // u8 active:1
- u16 species:10;
- u16 type:6;
- u8 activity:7;
- u8 started:1;
- u8 playerGender:1;
- u8 level:7;
- u8 padding;
-}; // size: RFU_GNAME_SIZE
-
-struct Padded_U8
-{
- u8 value;
-};
-
// Parameter group used in initial setting run of the link manager (rfu_LMAN_initializeRFU)
typedef struct InitializeParametersTag {
// rfu_REQ_configSystem argument
@@ -178,20 +142,6 @@ typedef struct VblankTimerTag {
u16 count[RFU_CHILD_MAX]; // Current count value (x 16.7 ms) for each connected slot
}VBL_TIMER;
-struct UnkLinkRfuStruct_02022B44
-{
- u8 fill_00[6];
- u16 unk_06;
- u8 fill_08[6];
- vu8 unk_0e;
- u8 unk_0f;
- u8 fill_10[0x54];
- u16 unk_64;
- u8 fill_66[0x1d];
- u8 unk_83;
- u8 fill_84[0x58];
-};
-
typedef struct linkManagerTag
{
/* 0x000 */ u8 acceptSlot_flag;
diff --git a/include/link_rfu.h b/include/link_rfu.h
index 86d55047d..aff5d93d0 100644
--- a/include/link_rfu.h
+++ b/include/link_rfu.h
@@ -17,6 +17,56 @@
#define RFU_COMMAND_0xee00 0xee00
#define RFU_COMMAND_0xed00 0xed00
+// RfuTgtData.gname is read as these structs.
+struct GFtgtGnameSub
+{
+ u16 language:4;
+ u16 hasNews:1;
+ u16 hasCard:1;
+ u16 unk_00_6:1;
+ u16 isChampion:1;
+ u16 hasNationalDex:1;
+ u16 gameClear:1;
+ u16 version:4;
+ u16 unk_01_6:2;
+ u8 playerTrainerId[2];
+};
+
+struct __attribute__((packed, aligned(2))) GFtgtGname
+{
+ struct GFtgtGnameSub unk_00;
+ u8 child_sprite_gender[RFU_CHILD_MAX]; // u8 sprite_idx:3;
+ // u8 gender:1;
+ // u8 unk_4:3
+ // u8 active:1
+ u16 species:10;
+ u16 type:6;
+ u8 activity:7;
+ u8 started:1;
+ u8 playerGender:1;
+ u8 level:7;
+ u8 padding;
+}; // size: RFU_GNAME_SIZE
+
+struct Padded_U8
+{
+ u8 value;
+};
+
+struct UnkLinkRfuStruct_02022B44
+{
+ u8 fill_00[6];
+ u16 unk_06;
+ u8 fill_08[6];
+ vu8 unk_0e;
+ u8 unk_0f;
+ u8 fill_10[0x54];
+ u16 unk_64;
+ u8 fill_66[0x1d];
+ u8 unk_83;
+ u8 fill_84[0x58];
+};
+
struct RfuBlockSend
{
/* 0x00 */ u16 next;