summaryrefslogtreecommitdiff
path: root/include/librfu.h
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-01-15 11:07:17 -0500
committerGitHub <noreply@github.com>2020-01-15 11:07:17 -0500
commit411f4852c60356c8595470e2d0873be2b4eebbe2 (patch)
treeaf6bf0e3674fff0aaaa7b81ac6f5fde9e10f03f0 /include/librfu.h
parent2f81b4a204d051aeb88580dc63381011ec49fcbb (diff)
parenta97ef533d204c263cf72a9f05a74eeb21c28d87b (diff)
Merge pull request #216 from PikalaxALT/link_rfu
Port link_rfu from Emerald
Diffstat (limited to 'include/librfu.h')
-rw-r--r--include/librfu.h30
1 files changed, 1 insertions, 29 deletions
diff --git a/include/librfu.h b/include/librfu.h
index cf409ca69..97fd8044e 100644
--- a/include/librfu.h
+++ b/include/librfu.h
@@ -275,34 +275,6 @@
// Status data for UNI-type communication (refer to gRfuSlotStatusUNI[x]->send.state)
#define SLOT_STATE_SEND_UNI (SLOT_BUSY_FLAG | SLOT_SEND_FLAG | LCOM_UNI) // Transmitting
-// TODO: move the 2 structs to some other header as they're declared by GF
-struct UnkLinkRfuStruct_02022B14Substruct
-{
- u16 unk_00_0:4;
- u16 unk_00_4:1;
- u16 unk_00_5:1;
- u16 unk_00_6:1;
- u16 isChampion:1;
- u16 hasNationalDex:1;
- u16 gameClear:1;
- u16 unk_01_2:4;
- u16 unk_01_6:2;
- u8 playerTrainerId[2];
-};
-
-struct __attribute__((packed, aligned(2))) UnkLinkRfuStruct_02022B14
-{
- struct UnkLinkRfuStruct_02022B14Substruct unk_00;
- u8 unk_04[4];
- u16 species:10;
- u16 type:6;
- u8 unk_0a_0:7;
- u8 unk_0a_7:1;
- u8 playerGender:1;
- u8 level:7;
- u8 unk_0c;
-};
-
// the following structs are not documented in SDK
struct RfuPacket8
{
@@ -616,7 +588,7 @@ u16 rfu_changeSendTarget(u8 connType, u8 slotStatusIndex, u8 bmNewTgtSlot);
// Functions for sending/receiving data to RFU
// Data transmission
-void rfu_REQ_sendData(u8 clockChangeFlag);
+void rfu_REQ_sendData(bool8 clockChangeFlag);
// Used only by parent device. Resend previous sent data (packet)
void rfu_REQ_PARENT_resumeRetransmitAndChange(void);
// Read receive data