SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
msghndlr.h
Go to the documentation of this file.
1
#ifndef _METROTRK_MSGHNDLR_H
2
#define _METROTRK_MSGHNDLR_H
3
4
#include <
Runtime/platform.h
>
5
6
#include <
MetroTRK/dserror.h
>
7
#include <
MetroTRK/msgbuf.h
>
8
#include <
MetroTRK/msgcmd.h
>
9
10
typedef
struct
msgbuf_t
{
11
/* 0x00 */
u32
msgLength
;
13
/* 0x04 */
union
{
14
u8
commandId
;
15
MessageCommandID
commandIdInt
;
16
};
17
/* 0x08 */
union
{
18
u8
replyError
;
19
DSReplyError
replyErrorInt
;
20
};
21
/* 0x0C */
u32
unk0C
;
22
/* 0x10 */
u8
unk10
[0x30];
23
}
msgbuf_t
;
// size = 0x40
24
25
void
TRKMessageIntoReply
(
MessageBuffer
*,
MessageCommandID
,
DSReplyError
);
26
DSError
TRKDoUnsupported
(
MessageBuffer
*);
27
DSError
TRKDoCPUType
(
MessageBuffer
*);
28
DSError
TRKDoFlushCache
(
MessageBuffer
*);
29
bool
GetTRKConnected
(
void
);
30
DSError
TRKDoConnect
(
MessageBuffer
*
buf
);
31
DSError
TRKDoDisconnect
(
MessageBuffer
*
buf
);
32
DSError
TRKDoReset
(
MessageBuffer
*
buf
);
33
DSError
TRKDoOverride
(
MessageBuffer
*
buf
);
34
DSError
TRKDoVersions
(
MessageBuffer
*
buf
);
35
DSError
TRKDoSupportMask
(
MessageBuffer
*
buf
);
36
DSError
TRKDoReadMemory
(
MessageBuffer
*
buf
);
37
DSError
TRKDoWriteMemory
(
MessageBuffer
*
buf
);
38
DSError
TRKDoReadRegisters
(
MessageBuffer
*
buf
);
39
DSError
TRKDoWriteRegisters
(
MessageBuffer
*
buf
);
40
DSError
TRKDoContinue
(
MessageBuffer
*
buf
);
41
DSError
TRKDoStep
(
MessageBuffer
*
buf
);
42
DSError
TRKDoStop
(
MessageBuffer
*
buf
);
43
DSError
TRKDoSetOption
(
MessageBuffer
*
buf
);
44
DSError
TRKStandardACK
(
MessageBuffer
* b,
MessageCommandID
commandId,
45
DSReplyError
replyError);
46
47
#endif
buf
char buf[0x5A4]
Definition
dbanim.c:14
dserror.h
DSError
DSError
Definition
dserror.h:4
u32
unsigned long u32
Definition
types.h:9
u8
unsigned char u8
Definition
types.h:5
msgbuf.h
msgcmd.h
MessageCommandID
MessageCommandID
Definition
msgcmd.h:23
DSReplyError
DSReplyError
Reply errors.
Definition
msgcmd.h:270
TRKStandardACK
DSError TRKStandardACK(MessageBuffer *b, MessageCommandID commandId, DSReplyError replyError)
Definition
msghndlr.c:45
TRKDoContinue
DSError TRKDoContinue(MessageBuffer *buf)
Definition
msghndlr.c:604
TRKDoWriteMemory
DSError TRKDoWriteMemory(MessageBuffer *buf)
Definition
msghndlr.c:283
TRKDoSetOption
DSError TRKDoSetOption(MessageBuffer *buf)
TRKDoConnect
DSError TRKDoConnect(MessageBuffer *buf)
Definition
msghndlr.c:57
TRKDoReset
DSError TRKDoReset(MessageBuffer *buf)
Definition
msghndlr.c:75
TRKDoStep
DSError TRKDoStep(MessageBuffer *buf)
Definition
msghndlr.c:621
TRKDoWriteRegisters
DSError TRKDoWriteRegisters(MessageBuffer *buf)
Definition
msghndlr.c:458
TRKDoReadRegisters
DSError TRKDoReadRegisters(MessageBuffer *buf)
Definition
msghndlr.c:371
TRKDoCPUType
DSError TRKDoCPUType(MessageBuffer *)
Definition
msghndlr.c:152
TRKDoDisconnect
DSError TRKDoDisconnect(MessageBuffer *buf)
Definition
msghndlr.c:62
GetTRKConnected
bool GetTRKConnected(void)
TRKDoVersions
DSError TRKDoVersions(MessageBuffer *buf)
Definition
msghndlr.c:89
TRKDoFlushCache
DSError TRKDoFlushCache(MessageBuffer *)
Definition
msghndlr.c:548
TRKDoOverride
DSError TRKDoOverride(MessageBuffer *buf)
Definition
msghndlr.c:82
TRKDoSupportMask
DSError TRKDoSupportMask(MessageBuffer *buf)
Definition
msghndlr.c:124
TRKMessageIntoReply
void TRKMessageIntoReply(MessageBuffer *, MessageCommandID, DSReplyError)
Definition
msghndlr.c:12
TRKDoStop
DSError TRKDoStop(MessageBuffer *buf)
Definition
msghndlr.c:702
TRKDoUnsupported
DSError TRKDoUnsupported(MessageBuffer *)
Definition
msghndlr.c:52
TRKDoReadMemory
DSError TRKDoReadMemory(MessageBuffer *buf)
Definition
msghndlr.c:199
platform.h
MessageBuffer
Definition
msgbuf.h:16
msgbuf_t
Definition
msghndlr.h:10
msgbuf_t::replyError
u8 replyError
Definition
msghndlr.h:18
msgbuf_t::unk10
u8 unk10[0x30]
Definition
msghndlr.h:22
msgbuf_t::replyErrorInt
DSReplyError replyErrorInt
Definition
msghndlr.h:19
msgbuf_t::msgLength
u32 msgLength
Definition
msghndlr.h:11
msgbuf_t::commandIdInt
MessageCommandID commandIdInt
Definition
msghndlr.h:15
msgbuf_t::unk0C
u32 unk0C
Definition
msghndlr.h:21
msgbuf_t::commandId
u8 commandId
Definition
msghndlr.h:14
src
MetroTRK
msghndlr.h
Generated by
1.17.0