sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
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
24typedef struct {
25 u32 qwords;
26 u16 qwc;
27 u16 type;
28 qword_t *data __attribute__((aligned(64)));
29} packet_t;
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
36extern packet_t *packet_init(int qwords, int type);
37
39extern void packet_reset(packet_t *packet);
40
42extern void packet_free(packet_t *packet);
43
45extern qword_t *packet_increment_qwc(packet_t *packet, int num);
46
48static 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_t * packet_init(int qwords, int type)
Definition packet.c:8
void packet_free(packet_t *packet)
Definition packet.c:63
qword_t * packet_increment_qwc(packet_t *packet, int num)
void packet_reset(packet_t *packet)
Definition packet.c:89