sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
packet.h
Go to the documentation of this file.
1
6
7
#ifndef __PACKET_H__
8
#define __PACKET_H__
9
10
#include <
tamtypes.h
>
11
13
#define QWC_MAX 65535
14
15
#define PACKET_NORMAL 0x00
16
#define PACKET_UCAB 0x01
17
#define PACKET_SPR 0x02
24
typedef
struct
{
25
u32 qwords;
26
u16 qwc;
27
u16 type;
28
qword_t *data __attribute__((aligned(64)));
29
}
packet_t
;
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
36
extern
packet_t
*
packet_init
(
int
qwords,
int
type);
37
39
extern
void
packet_reset
(
packet_t
*packet);
40
42
extern
void
packet_free
(
packet_t
*packet);
43
45
extern
qword_t *
packet_increment_qwc
(
packet_t
*packet,
int
num);
46
48
static
inline
qword_t *packet_get_qword(
packet_t
*packet)
49
{
50
return
packet->data;
51
}
52
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
/* __PACKET_H__ */
packet_init
packet_t * packet_init(int qwords, int type)
Definition
packet.c:8
packet_free
void packet_free(packet_t *packet)
Definition
packet.c:63
packet_increment_qwc
qword_t * packet_increment_qwc(packet_t *packet, int num)
packet_reset
void packet_reset(packet_t *packet)
Definition
packet.c:89
packet_t
Definition
packet.h:24
tamtypes.h
core
packet
include
packet.h
Generated by
1.18.0