GXGetFifoPtrs

Syntax

#include <revolution/gx.h>

void GXGetFifoPtrs( const 
    GXFifoObj* fifo,
    void**     read_ptr, 
    void**     write_ptr );

Arguments

fifo A pointer to the FIFO structure.
read_ptr Returns address of the FIFO read pointer.
write_ptr Returns address of the FIFO write pointer.

Return Values

None.

Description

This function reads the values of the read and write pointers of the specified FIFO object. It is used when you want to get the value of each setting from the FIFO state obtained using either GXGetCPUFifo or GXGetGPFifo.

Example:

GXFifoObj fifo;
void* read_ptr;
void* write_ptr;

GXGetCPUFifo(&fifo);
GXGetFifoPtrs(&fifo, &read_ptr, &write_ptr);

Note:  In contrast to the GAMECUBE SDK, GXGetFifoPtrs does not directly return the current FIFO data. As with other GXGetFifo type APIs, GXGetFifoPtrs runs either GXGetCPUFifo or GXGetGPFifo and reads the necessary information from the GXFifoObj structure, which has obtained the current FIFO state.

See Also

GXGetCPUFifo, GXGetGPFifo, GXInitFifoPtrs

Revision History

2006/06/16 Added a description of differences with the GameCube SDK.
2006/03/01 Initial version.


CONFIDENTIAL