#include <revolution/gx.h>void GXGetFifoPtrs( const
GXFifoObj* fifo,
void** read_ptr,
void** write_ptr );fifo |
pointer to a FIFO structure. |
read_ptr |
returns address of the FIFO read pointer. |
write_ptr |
returns address of the FIFO write pointer. |
None.
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. It reads the necessary information from the GXFifoObj structure, which has the current FIFO state.
GXGetCPUFifo
GXGetGPFifo
GXInitFifoPtrs
6/16/2006 Added a description of differences with the GameCube SDK.
03/01/2006 Initial version.