sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
packet.h File Reference
#include <tamtypes.h>

Go to the source code of this file.

Classes

struct  packet_t

Macros

#define QWC_MAX   65535
#define PACKET_NORMAL   0x00
#define PACKET_UCAB   0x01
#define PACKET_SPR   0x02

Functions

packet_t * packet_init (int qwords, int type)
void packet_reset (packet_t *packet)
void packet_free (packet_t *packet)
qword_t * packet_increment_qwc (packet_t *packet, int num)

Detailed Description

Packet library functions.

Definition in file packet.h.

Macro Definition Documentation

◆ PACKET_NORMAL

#define PACKET_NORMAL   0x00

Definition at line 15 of file packet.h.

◆ PACKET_SPR

#define PACKET_SPR   0x02

Definition at line 17 of file packet.h.

◆ PACKET_UCAB

#define PACKET_UCAB   0x01

Definition at line 16 of file packet.h.

◆ QWC_MAX

#define QWC_MAX   65535

Maximum number allowed, but each channel has its own limitations.

Definition at line 13 of file packet.h.

Function Documentation

◆ packet_free()

void packet_free ( packet_t * packet)
extern

Free the space allocated by packet.

Definition at line 63 of file packet.c.

◆ packet_increment_qwc()

qword_t * packet_increment_qwc ( packet_t * packet,
int num )
extern

Advances the qwc and returns the current qword count.

◆ packet_init()

packet_t * packet_init ( int qwords,
int type )
extern

Allocate a new packet for use, size in quadwords.

Definition at line 8 of file packet.c.

◆ packet_reset()

void packet_reset ( packet_t * packet)
extern

Reset the packet quadword counter and zero out data.

Definition at line 89 of file packet.c.