PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
vblank.h File Reference
#include <irx.h>
+ Include dependency graph for vblank.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vblank_ll_
 
struct  vblank_item_
 
struct  vblank_internals_
 

Macros

#define vblank_IMPORTS_start   DECLARE_IMPORT_TABLE(vblank, 1, 1)
 
#define vblank_IMPORTS_end   END_IMPORT_TABLE
 
#define I_WaitVblankStart   DECLARE_IMPORT(4, WaitVblankStart)
 
#define I_WaitVblankEnd   DECLARE_IMPORT(5, WaitVblankEnd)
 
#define I_WaitVblank   DECLARE_IMPORT(6, WaitVblank)
 
#define I_WaitNonVblank   DECLARE_IMPORT(7, WaitNonVblank)
 
#define I_RegisterVblankHandler   DECLARE_IMPORT(8, RegisterVblankHandler)
 
#define I_ReleaseVblankHandler   DECLARE_IMPORT(9, ReleaseVblankHandler)
 

Typedefs

typedef struct vblank_ll_ vblank_ll_t
 
typedef struct vblank_item_ vblank_item_t
 
typedef struct vblank_internals_ vblank_internals_t
 

Functions

vblank_internals_tGetVblankInternalData (void)
 
void WaitVblankStart ()
 
void WaitVblankEnd ()
 
void WaitVblank ()
 
void WaitNonVblank ()
 
int RegisterVblankHandler (int startend, int priority, int(*handler)(void *), void *arg)
 
int ReleaseVblankHandler (int startend, int(*handler)(void *))
 

Detailed Description

Vertical blank interrupt routines.

Definition in file vblank.h.


Data Structure Documentation

◆ vblank_ll_

struct vblank_ll_

Definition at line 25 of file vblank.h.

+ Collaboration diagram for vblank_ll_:
Data Fields
struct vblank_ll_ * next
struct vblank_ll_ * prev

◆ vblank_internals_

struct vblank_internals_

Definition at line 39 of file vblank.h.

+ Collaboration diagram for vblank_internals_:
Data Fields
int ef
int item_count
vblank_ll_t list_00
vblank_ll_t list_11
vblank_ll_t list_free
vblank_item_t list_items[16]

Macro Definition Documentation

◆ vblank_IMPORTS_start

#define vblank_IMPORTS_start   DECLARE_IMPORT_TABLE(vblank, 1, 1)

Definition at line 60 of file vblank.h.

◆ vblank_IMPORTS_end

#define vblank_IMPORTS_end   END_IMPORT_TABLE

Definition at line 61 of file vblank.h.

◆ I_WaitVblankStart

#define I_WaitVblankStart   DECLARE_IMPORT(4, WaitVblankStart)

Definition at line 63 of file vblank.h.

◆ I_WaitVblankEnd

#define I_WaitVblankEnd   DECLARE_IMPORT(5, WaitVblankEnd)

Definition at line 64 of file vblank.h.

◆ I_WaitVblank

#define I_WaitVblank   DECLARE_IMPORT(6, WaitVblank)

Definition at line 65 of file vblank.h.

◆ I_WaitNonVblank

#define I_WaitNonVblank   DECLARE_IMPORT(7, WaitNonVblank)

Definition at line 66 of file vblank.h.

◆ I_RegisterVblankHandler

#define I_RegisterVblankHandler   DECLARE_IMPORT(8, RegisterVblankHandler)

Definition at line 67 of file vblank.h.

◆ I_ReleaseVblankHandler

#define I_ReleaseVblankHandler   DECLARE_IMPORT(9, ReleaseVblankHandler)

Definition at line 68 of file vblank.h.

Function Documentation

◆ GetVblankInternalData()

vblank_internals_t * GetVblankInternalData ( void  )

Definition at line 71 of file vblank.c.

◆ WaitVblankStart()

void WaitVblankStart ( )

Definition at line 254 of file vblank.c.

◆ WaitVblankEnd()

void WaitVblankEnd ( )

Definition at line 259 of file vblank.c.

◆ WaitVblank()

void WaitVblank ( )

Definition at line 264 of file vblank.c.

◆ WaitNonVblank()

void WaitNonVblank ( )

Definition at line 269 of file vblank.c.

◆ RegisterVblankHandler()

int RegisterVblankHandler ( int  startend,
int  priority,
int(*)(void *)  handler,
void *  arg 
)

Definition at line 76 of file vblank.c.

◆ ReleaseVblankHandler()

int ReleaseVblankHandler ( int  startend,
int(*)(void *)  handler 
)

Definition at line 132 of file vblank.c.